Hi Stephan et al,
The JVM installs a signal handler, so whenever soffice crashes after
the JVM has been started in process (and whether or not that crash is
in any way releated to using Java), you will see some error output
from the JVM. However, this output usually does not help to track
down the problem (as usually the crash is in some part of soffice
unrelated to Java). The best might be to run soffice from within a
debugger to get some more meaningful stacktrace.
Further investigation of this issue reveals that the problems I'm seeing
involve a jni_uno::BridgeRuntimeError exception being thrown, as a
result of a 'java.lang.OutOfMemoryError' being thrown by the JVM. The
call stack in the debugger is:
kernel32.dll!7c81eb33()
kernel32.dll!7c81eb33()
jvm.dll!0803d3a6()
sal3.dll!63651f9e()
sal3.dll!6365688f()
msvcr71.dll!7c359aed()
java_uno.dll!jni_uno::JNI_context::java_exc_occured() + 0x2d3 C++
java_uno.dll!jni_uno::ustring_to_jstring() + 0x28 C++
java_uno.dll!jni_uno::Bridge::map_to_java() + 0x5f7 C++
java_uno.dll!jni_uno::Bridge::call_uno() + 0x2e2 C++
[EMAIL PROTECTED]()
+ 0x3af C++
081f8ec0()
jvm.dll!080363e1()
Which means that when jni->NewString is called, the JVM is throwing an
OutOfMemoryError. I've increased the JVM memory with the following set
of parameters:
<param>-XX:MaxPermSize=128m</param>
<param>-XX:NewSize=128m</param>
<param>-XX:MaxNewSize=128m</param>
<param>-XX:PermSize=128m</param>
<param>-Xmx384m</param>
<param>-Xms384m</param>
This means that I now have a crash every 100 to 300 documents, which is
better but still not ideal. How does the Java UNO bridge recover from a
jni_uno::BridgeRunTimeException ? In my case, what happens is the following:
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: jni_uno::BridgeRuntimeError @ 0x06e1e3e8.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: [rethrow] @ 0x00000000.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::xml::sax::SAXException @ 0x06e1ead4.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::ucb::InteractiveAugmentedIOException @
0x06e1f0d0.
(35 times): First-chance exception at 0x7c81eb33 in soffice.bin:
Microsoft C++ exception: com::sun::star::uno::RuntimeException @ 0x0bdef8a8.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::container::NoSuchElementException @ 0x00e1f9ac.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::container::NoSuchElementException @ 0x06e1f8e4.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::frame::UnknownModuleException @ 0x06e1f800.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::frame::UnknownModuleException @ 0x06e1f9e0.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::frame::UnknownModuleException @ 0x06e1fa40.
The thread 'Win32 Thread' (0xe64) has exited with code 0 (0x0).
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::container::NoSuchElementException @ 0x06e1f8b4.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::container::NoSuchElementException @ 0x06e1f84c.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::container::NoSuchElementException @ 0x06e1f524.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::container::NoSuchElementException @ 0x06e1f544.
First-chance exception at 0x7c81eb33 in soffice.bin: Microsoft C++
exception: com::sun::star::lang::ServiceNotRegisteredException @ 0x06e1ed00.
(67 times):Heap corruption detected at 0F657538
First-chance exception at 0x6365547b in soffice.bin: 0xC0000005: Access
violation writing location 0x60636cf8.
First-chance exception at 0x6225150f in soffice.bin: 0xC0000005: Access
violation reading location 0x6225150f.
The thread 'Win32 Thread' (0xa0c) has exited with code -1 (0xffffffff).
The thread 'Win32 Thread' (0xd08) has exited with code -1 (0xffffffff).
The thread 'Win32 Thread' (0x494) has exited with code -1 (0xffffffff).
The thread 'Win32 Thread' (0xa48) has exited with code -1 (0xffffffff).
<process dies>
My hs_err_pidXXXX.log file has the following information:
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 118016K, used 209K [0x202d0000, 0x282d0000,
0x282d0000)
eden space 104960K, 0% used [0x202d0000, 0x20304770, 0x26950000)
from space 13056K, 0% used [0x26950000, 0x26950000, 0x27610000)
to space 13056K, 0% used [0x27610000, 0x27610000, 0x282d0000)
tenured generation total 262144K, used 3564K [0x282d0000, 0x382d0000,
0x382d0000)
the space 262144K, 1% used [0x282d0000, 0x2864b250, 0x2864b400,
0x382d0000)
compacting perm gen total 131072K, used 2868K [0x382d0000, 0x402d0000,
0x402d0000)
the space 131072K, 2% used [0x382d0000, 0x3859d160, 0x3859d200,
0x402d0000)
Dynamic libraries:
0x00400000 - 0x0048a000 C:\Program Files\OpenOffice.org
2.0\program\soffice.BIN
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
0x60930000 - 0x60b20000 C:\Program Files\OpenOffice.org
2.0\program\vcl680mi.dll
0x62540000 - 0x62572000 C:\Program Files\OpenOffice.org
2.0\program\sot680mi.dll
0x60fd0000 - 0x61039000 C:\Program Files\OpenOffice.org
2.0\program\tl680mi.dll
0x66af0000 - 0x66b0c000 C:\Program Files\OpenOffice.org
2.0\program\cppu3.dll
0x7c340000 - 0x7c396000 C:\Program Files\OpenOffice.org
2.0\program\MSVCR71.dll
0x63650000 - 0x637f2000 C:\Program Files\OpenOffice.org
2.0\program\sal3.dll
0x60b30000 - 0x60b48000 C:\Program Files\OpenOffice.org
2.0\program\uwinapi.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f56000 C:\WINDOWS\system32\GDI32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71b20000 - 0x71b32000 C:\WINDOWS\system32\MPR.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x62410000 - 0x6249e000 C:\Program Files\OpenOffice.org
2.0\program\stlport_vc7145.dll
0x7c3a0000 - 0x7c41b000 C:\Program Files\OpenOffice.org
2.0\program\MSVCP71.dll
0x608d0000 - 0x608de000 C:\Program Files\OpenOffice.org
2.0\program\vos3MSC.dll
0x67d70000 - 0x67d94000 C:\Program Files\OpenOffice.org
2.0\program\basegfx680mi.dll
0x7c9c0000 - 0x7d1d5000 C:\WINDOWS\system32\SHELL32.dll
0x60bb0000 - 0x60bf4000 C:\Program Files\OpenOffice.org
2.0\program\utl680mi.dll
0x63630000 - 0x63636000 C:\Program Files\OpenOffice.org
2.0\program\salhelper3MSC.dll
0x66cc0000 - 0x66d1f000 C:\Program Files\OpenOffice.org
2.0\program\comphelp4MSC.dll
0x66ab0000 - 0x66ade000 C:\Program Files\OpenOffice.org
2.0\program\cppuhelper3MSC.dll
0x60ec0000 - 0x60efa000 C:\Program Files\OpenOffice.org
2.0\program\ucbhelper3MSC.dll
0x64d40000 - 0x64dc0000 C:\Program Files\OpenOffice.org
2.0\program\icuuc26.dll
0x64ed0000 - 0x6528c000 C:\Program Files\OpenOffice.org
2.0\program\icudt26l.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x62190000 - 0x621ec000 C:\Program Files\OpenOffice.org
2.0\program\svl680mi.dll
0x61fa0000 - 0x6217e000 C:\Program Files\OpenOffice.org
2.0\program\svt680mi.dll
0x61050000 - 0x61166000 C:\Program Files\OpenOffice.org
2.0\program\tk680mi.dll
0x64850000 - 0x64864000 C:\Program Files\OpenOffice.org
2.0\program\jvmfwk3.dll
0x645b0000 - 0x64685000 C:\Program Files\OpenOffice.org
2.0\program\libxml2.dll
0x773d0000 - 0x774d2000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x5d090000 - 0x5d127000 C:\WINDOWS\system32\comctl32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x62b10000 - 0x62b24000 C:\Program Files\OpenOffice.org
2.0\program\servicemgr.uno.dll
0x628c0000 - 0x628c8000 C:\Program Files\OpenOffice.org
2.0\program\shlibloader.uno.dll
0x62800000 - 0x6280e000 C:\Program Files\OpenOffice.org
2.0\program\simplereg.uno.dll
0x64020000 - 0x6402d000 C:\Program Files\OpenOffice.org
2.0\program\nestedreg.uno.dll
0x60f50000 - 0x60f66000 C:\Program Files\OpenOffice.org
2.0\program\typemgr.uno.dll
0x64cb0000 - 0x64cc0000 C:\Program Files\OpenOffice.org
2.0\program\implreg.uno.dll
0x62b40000 - 0x62b51000 C:\Program Files\OpenOffice.org
2.0\program\security.uno.dll
0x63980000 - 0x63998000 C:\Program Files\OpenOffice.org
2.0\program\reg3.dll
0x622f0000 - 0x62301000 C:\Program Files\OpenOffice.org
2.0\program\store3.dll
0x63890000 - 0x638ac000 C:\Program Files\OpenOffice.org
2.0\program\regtypeprov.uno.dll
0x66b80000 - 0x66ca9000 C:\Program Files\OpenOffice.org
2.0\program\configmgr2.uno.dll
0x60f80000 - 0x60f8b000 C:\Program Files\OpenOffice.org
2.0\program\typeconverter.uno.dll
0x612c0000 - 0x612cb000 C:\Program Files\OpenOffice.org
2.0\program\sysmgr1.uno.dll
0x63600000 - 0x6361f000 C:\Program Files\OpenOffice.org
2.0\program\sax.uno.dll
0x64310000 - 0x64318000 C:\Program Files\OpenOffice.org
2.0\program\localebe1.uno.dll
0x67d00000 - 0x67d0a000 C:\Program Files\OpenOffice.org
2.0\program\behelper.uno.dll
0x60c40000 - 0x60c4d000 C:\Program Files\OpenOffice.org
2.0\program\uriproc.uno.dll
0x63f50000 - 0x63f59000 C:\Program Files\OpenOffice.org
2.0\program\offacc680mi.dll
0x67fb0000 - 0x67fbd000 C:\Program Files\OpenOffice.org
2.0\program\acceptor.uno.dll
0x66fb0000 - 0x66fbc000 C:\Program Files\OpenOffice.org
2.0\program\bridgefac.uno.dll
0x63830000 - 0x63837000 C:\Program Files\OpenOffice.org
2.0\program\rmcxt3.dll
0x60f10000 - 0x60f35000 C:\Program Files\OpenOffice.org
2.0\program\ucb1.dll
0x65810000 - 0x65823000 C:\Program Files\OpenOffice.org
2.0\program\fwl680mi.dll
0x65990000 - 0x659ad000 C:\Program Files\OpenOffice.org
2.0\program\fwi680mi.dll
0x60da0000 - 0x60dce000 C:\Program Files\OpenOffice.org
2.0\program\ucpfile1.dll
0x628e0000 - 0x62af7000 C:\Program Files\OpenOffice.org
2.0\program\sfx680mi.dll
0x659c0000 - 0x659ff000 C:\Program Files\OpenOffice.org
2.0\program\fwe680mi.dll
0x63570000 - 0x635ef000 C:\Program Files\OpenOffice.org
2.0\program\sb680mi.dll
0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.dll
0x607a0000 - 0x607e7000 C:\Program Files\OpenOffice.org
2.0\program\xcr680mi.dll
0x64af0000 - 0x64af8000 C:\Program Files\OpenOffice.org
2.0\program\j680mi_g.dll
0x64880000 - 0x64887000 C:\Program Files\OpenOffice.org
2.0\program\jvmaccess3MSC.dll
0x65840000 - 0x65974000 C:\Program Files\OpenOffice.org
2.0\program\fwk680mi.dll
0x10000000 - 0x1000d000 C:\Program Files\OpenOffice.org
2.0\program\msci_uno.dll
0x624e0000 - 0x624fa000 C:\Program Files\OpenOffice.org
2.0\program\spl680mi.dll
0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll
0x619d0000 - 0x61f59000 C:\Program Files\OpenOffice.org
2.0\program\svx680mi.dll
0x67e60000 - 0x67e70000 C:\Program Files\OpenOffice.org
2.0\program\avmedia680mi.dll
0x604e0000 - 0x606b3000 C:\Program Files\OpenOffice.org
2.0\program\xo680mi.dll
0x657a0000 - 0x657db000 C:\Program Files\OpenOffice.org
2.0\program\go680mi.dll
0x64450000 - 0x64489000 C:\Program Files\OpenOffice.org
2.0\program\lng680mi.dll
0x63ee0000 - 0x63f1c000 C:\Program Files\OpenOffice.org
2.0\program\oleautobridge.uno.dll
0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
0x20000000 - 0x202c5000 C:\WINDOWS\system32\xpsp2res.dll
0x65ea0000 - 0x65ebe000 C:\Program Files\OpenOffice.org
2.0\program\emser680mi.dll
0x63870000 - 0x6387a000 C:\Program Files\OpenOffice.org
2.0\program\remotebridge.uno.dll
0x60c10000 - 0x60c26000 C:\Program Files\OpenOffice.org
2.0\program\urp_uno.dll
0x65cd0000 - 0x65cf7000 C:\Program Files\OpenOffice.org
2.0\program\filterconfig1.dll
0x66010000 - 0x66028000 C:\Program Files\OpenOffice.org
2.0\program\dnd.dll
0x61420000 - 0x619b6000 C:\Program Files\OpenOffice.org
2.0\program\sw680mi.dll
0x652f0000 - 0x65301000 C:\Program Files\OpenOffice.org
2.0\program\i18nutilMSC.dll
0x65360000 - 0x6568e000 C:\Program Files\OpenOffice.org
2.0\program\i18npool.uno.dll
0x64e20000 - 0x64eb4000 C:\Program Files\OpenOffice.org
2.0\program\icuin26.dll
0x642e0000 - 0x642f6000 C:\Program Files\OpenOffice.org
2.0\program\localedata_en.dll
0x64a80000 - 0x64a8a000 C:\Program Files\OpenOffice.org
2.0\program\javaloader.uno.dll
0x64a50000 - 0x64a65000 C:\Program Files\OpenOffice.org
2.0\program\javavm.uno.dll
0x608b0000 - 0x608ba000 C:\Program Files\OpenOffice.org
2.0\program\wininetbe1.uno.dll
0x771b0000 - 0x77256000 C:\WINDOWS\system32\wininet.dll
0x77a80000 - 0x77b14000 C:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x77260000 - 0x772ff000 C:\WINDOWS\system32\urlmon.dll
0x76ee0000 - 0x76f1c000 C:\WINDOWS\system32\RASAPI32.DLL
0x76e90000 - 0x76ea2000 C:\WINDOWS\system32\rasman.dll
0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
0x76eb0000 - 0x76edf000 C:\WINDOWS\system32\TAPI32.dll
0x76e80000 - 0x76e8e000 C:\WINDOWS\system32\rtutils.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x77c70000 - 0x77c93000 C:\WINDOWS\system32\msv1_0.dll
0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
0x722b0000 - 0x722b5000 C:\WINDOWS\system32\sensapi.dll
0x769c0000 - 0x76a73000 C:\WINDOWS\system32\USERENV.dll
0x08000000 - 0x0813e000 C:\j2sdk1.4.2_10\jre\bin\client\jvm.dll
0x07ae0000 - 0x07ae7000 C:\j2sdk1.4.2_10\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x07b00000 - 0x07b0e000 C:\j2sdk1.4.2_10\jre\bin\verify.dll
0x07b10000 - 0x07b29000 C:\j2sdk1.4.2_10\jre\bin\java.dll
0x07b30000 - 0x07b3e000 C:\j2sdk1.4.2_10\jre\bin\zip.dll
0x07ec0000 - 0x07ed5000 C:\Program Files\OpenOffice.org
2.0\program\java_uno.dll
0x60490000 - 0x604c4000 C:\Program Files\OpenOffice.org
2.0\program\xof680mi.dll
0x603a0000 - 0x603c0000 C:\Program Files\OpenOffice.org
2.0\program\xstor.dll
0x63e00000 - 0x63e32000 C:\Program Files\OpenOffice.org
2.0\program\package2.dll
0x65d10000 - 0x65d1d000 C:\Program Files\OpenOffice.org
2.0\program\fileacc.dll
VM Arguments:
jvm_args: abort -Dorg.openoffice.native= -XX:MaxPermSize=128m
-XX:NewSize=128m -XX:MaxNewSize=128m -XX:PermSize=128m -Xmx384m -Xms384m
-Duser.language=en -Duser.country=US -Dappletviewer.security.mode=host
-Dstardiv.security.disableSecurity=false
java_command: <unknown>
Launcher Type: generic
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 1047892k(78988k free), swap 2519300k(1252116k
free)
vm_info: Java HotSpot(TM) Client VM (1.4.2_10-b03) for windows-x86,
built on Oct 10 2005 14:53:46 by "java_re" with MS VC++ 6.0
Any assistance gratefully received!
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]