Need to work around applet crashing JVM in specific circumstances - java

I have been tasked with updating our ancient Java applet from applet tags to object tags, since applet tags have been deprecated for some time now. The applet must work as far back as earlier Java 1.6 versions, on browsers going back to IE6. I made the following object tags to handle this, switching them out based on if the user is using IE or not. The statements in <% %>'s are evaluating fine and just fill in jar files etc.
<% If userIsIE > 0 Then %>
<object type="application/x-java-applet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="0" width="0">
<param name="code" value="<% =MainClass %>" />
<param name="archive" value="<% =Archives %>" />
<param name="persistState" value="false" />
</object>
<% Else %>
<object classid="java:<% =MainClass %>" type="application/x-java-applet" archive="<% =Archives %>" height="0" width="0">
<param name="code" value="<% =MainClass %>" />
<param name="archive" value="<% =Archives %>" />
<param name="persistState" value="false" />
</object>
<% End If %>
It works in every browser I've tried it in, and all versions of Java I've tried it in, except one specific case my coworker found: Running IE9 with Java 1.6.0_20 (And possibly a few other older versions, unconfirmed) causes the page to crash, leaving this on my desktop:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d413f5f, pid=2444, tid=4660
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [jp2iexp.dll+0x3f5f]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00b09000): JavaThread "main" [_thread_in_native, id=4660, stack(0x027c0000,0x029c0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x3420a218, ECX=0x0041f5e0, EDX=0x029bd5bc
ESP=0x029bd598, EBP=0x029bd5a8, ESI=0x00000000, EDI=0x00b09000
EIP=0x6d413f5f, EFLAGS=0x00010206
Top of Stack: (sp=0x029bd598)
0x029bd598: 029bd5bc 029bd5a4 3420a218 00000000
0x029bd5a8: 029bd5e8 05e89f47 00b09110 029bd5f0
0x029bd5b8: 00442258 00000000 00b096ac fffffffe
0x029bd5c8: 029bd5c8 3420a218 029bd5fc 34213020
0x029bd5d8: 00000000 3420a218 00000000 029bd5f8
0x029bd5e8: 029bd624 05e82f07 34212a30 05e88286
0x029bd5f8: 00442258 00000000 32298a58 029bd604
0x029bd608: 3420a187 029bd62c 34213020 00000000
Instructions: (pc=0x6d413f5f)
0x6d413f4f: 33 f6 85 c0 7c 3a 8b 45 fc 8d 55 14 52 89 75 14
0x6d413f5f: 8b 08 50 ff 91 a0 00 00 00 85 c0 7c 1a 8b 75 14
Stack: [0x027c0000,0x029c0000], sp=0x029bd598, free space=7f5029bd0cck
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [jp2iexp.dll+0x3f5f]
j sun.plugin2.main.server.IExplorerPlugin.getDocumentBase0(J)Ljava/lang/String;+0
j sun.plugin2.main.server.IExplorerPlugin.getDocumentBase()Ljava/lang/String;+31
j sun.plugin2.main.server.JVMInstance.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZIZZ)Z+14
j sun.plugin2.main.server.JVMManager.startAppletImpl(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZLjava/lang/String;ZIZ)Lsun/plugin2/main/server/AppletID;+240
j sun.plugin2.main.server.JVMManager.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZLjava/lang/String;)Lsun/plugin2/main/server/AppletID;+16
j sun.plugin2.main.server.JVMManager.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZ)Lsun/plugin2/main/server/AppletID;+19
j sun.plugin2.main.server.IExplorerPlugin.maybeStartApplet()V+192
j sun.plugin2.main.server.IExplorerPlugin.access$200(Lsun/plugin2/main/server/IExplorerPlugin;)V+1
j sun.plugin2.main.server.IExplorerPlugin$BackgroundStarter$1.run()V+7
v ~StubRoutines::call_stub
V [jvm.dll+0xf049c]
V [jvm.dll+0x17fcf1]
V [jvm.dll+0xf051d]
V [jvm.dll+0xf9e0f]
V [jvm.dll+0xfcc07]
C [jp2iexp.dll+0x17a5]
C [jp2iexp.dll+0x853b]
C [jp2iexp.dll+0x7a32]
C [USER32.dll+0x1fd72]
C [USER32.dll+0x1fe4a]
C [USER32.dll+0x2018d]
C [USER32.dll+0x2022b]
C [IEFRAME.dll+0xf1c24]
C [IEFRAME.dll+0x111afe]
C [iertutil.dll+0x1416c0]
C [IEFRAME.dll+0xffe3b]
C [kernel32.dll+0x4d0e9]
C [ntdll.dll+0x41603]
C [ntdll.dll+0x415d6]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.plugin2.main.server.IExplorerPlugin.getDocumentBase0(J)Ljava/lang/String;+0
j sun.plugin2.main.server.IExplorerPlugin.getDocumentBase()Ljava/lang/String;+31
j sun.plugin2.main.server.JVMInstance.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZIZZ)Z+14
j sun.plugin2.main.server.JVMManager.startAppletImpl(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZLjava/lang/String;ZIZ)Lsun/plugin2/main/server/AppletID;+240
j sun.plugin2.main.server.JVMManager.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZLjava/lang/String;)Lsun/plugin2/main/server/AppletID;+16
j sun.plugin2.main.server.JVMManager.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZ)Lsun/plugin2/main/server/AppletID;+19
j sun.plugin2.main.server.IExplorerPlugin.maybeStartApplet()V+192
j sun.plugin2.main.server.IExplorerPlugin.access$200(Lsun/plugin2/main/server/IExplorerPlugin;)V+1
j sun.plugin2.main.server.IExplorerPlugin$BackgroundStarter$1.run()V+7
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x056d0400 JavaThread "JRE 1.6.0.20 Heartbeat Thread" [_thread_blocked, id=5860, stack(0x085d0000,0x086d0000)]
0x056dc000 JavaThread "JRE 1.6.0.20 Worker Thread" [_thread_blocked, id=3760, stack(0x09580000,0x09680000)]
0x056db800 JavaThread "JRE 1.6.0.20 Output Reader Thread" [_thread_in_native, id=3828, stack(0x09390000,0x09490000)]
0x056db400 JavaThread "JRE 1.6.0.20 Output Reader Thread" [_thread_in_native, id=5472, stack(0x09120000,0x09220000)]
0x056d9c00 JavaThread "Thread-0" [_thread_in_native, id=3572, stack(0x08d10000,0x08e10000)]
0x056d8400 JavaThread "Java Plug-In Pipe Worker Thread (Server-Side)" daemon [_thread_in_native, id=3944, stack(0x08f10000,0x09010000)]
0x05668800 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3620, stack(0x08ab0000,0x08bb0000)]
0x05640000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=6092, stack(0x08940000,0x08a40000)]
0x0563b800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2788, stack(0x086d0000,0x087d0000)]
0x05639400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3728, stack(0x08060000,0x08160000)]
0x05637400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2912, stack(0x084c0000,0x085c0000)]
0x0562f800 JavaThread "Finalizer" daemon [_thread_blocked, id=4596, stack(0x082d0000,0x083d0000)]
0x0562e400 JavaThread "Reference Handler" daemon [_thread_blocked, id=4676, stack(0x08160000,0x08260000)]
=>0x00b09000 JavaThread "main" [_thread_in_native, id=4660, stack(0x027c0000,0x029c0000)]
Other Threads:
0x0562c000 VMThread [stack: 0x07f50000,0x08050000] [id=4684]
0x05647000 WatcherThread [stack: 0x08840000,0x08940000] [id=760]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 1321K [0x32200000, 0x32750000, 0x32ca0000)
eden space 4416K, 29% used [0x32200000, 0x3234a460, 0x32650000)
from space 512K, 0% used [0x32650000, 0x32650000, 0x326d0000)
to space 512K, 0% used [0x326d0000, 0x326d0000, 0x32750000)
tenured generation total 10944K, used 0K [0x32ca0000, 0x33750000, 0x34200000)
the space 10944K, 0% used [0x32ca0000, 0x32ca0000, 0x32ca0200, 0x33750000)
compacting perm gen total 12288K, used 705K [0x34200000, 0x34e00000, 0x38200000)
the space 12288K, 5% used [0x34200000, 0x342b05f8, 0x342b0600, 0x34e00000)
ro space 10240K, 51% used [0x38200000, 0x3872ae00, 0x3872ae00, 0x38c00000)
rw space 12288K, 54% used [0x38c00000, 0x392972d8, 0x39297400, 0x39800000)
Dynamic libraries:
0x01100000 - 0x011b8000 C:\Program Files\Internet Explorer\iexplore.exe
0x77910000 - 0x77a38000 C:\Windows\system32\ntdll.dll
0x77650000 - 0x7772c000 C:\Windows\system32\kernel32.dll
0x77730000 - 0x777f6000 C:\Windows\system32\ADVAPI32.dll
0x77aa0000 - 0x77b63000 C:\Windows\system32\RPCRT4.dll
0x77870000 - 0x7790d000 C:\Windows\system32\USER32.dll
0x77800000 - 0x7784b000 C:\Windows\system32\GDI32.dll
0x760f0000 - 0x7619a000 C:\Windows\system32\msvcrt.dll
0x77490000 - 0x774e9000 C:\Windows\system32\SHLWAPI.dll
0x761d0000 - 0x76ce1000 C:\Windows\system32\SHELL32.dll
0x76f40000 - 0x77085000 C:\Windows\system32\ole32.dll
0x75fd0000 - 0x760e1000 C:\Windows\system32\urlmon.dll
0x774f0000 - 0x7757d000 C:\Windows\system32\OLEAUT32.dll
0x77120000 - 0x772d8000 C:\Windows\system32\iertutil.dll
0x77370000 - 0x7748b000 C:\Windows\system32\WININET.dll
0x77a40000 - 0x77a43000 C:\Windows\system32\Normaliz.dll
0x77850000 - 0x7786e000 C:\Windows\system32\IMM32.DLL
0x77580000 - 0x77648000 C:\Windows\system32\MSCTF.dll
0x77110000 - 0x77119000 C:\Windows\system32\LPK.DLL
0x77090000 - 0x7710d000 C:\Windows\system32\USP10.dll
0x74a90000 - 0x74c2e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18305_none_5cb72f2a088b0ed3\comctl32.dll
0x6d630000 - 0x6df76000 C:\Windows\system32\IEFRAME.dll
0x75fc0000 - 0x75fc7000 C:\Windows\system32\PSAPI.DLL
0x74350000 - 0x7438e000 C:\Windows\system32\OLEACC.dll
0x76d20000 - 0x76d93000 C:\Windows\system32\comdlg32.dll
0x71ac0000 - 0x71af1000 C:\Program Files\Internet Explorer\IEShims.dll
0x75e60000 - 0x75e74000 C:\Windows\system32\Secur32.dll
0x76cf0000 - 0x76d1d000 C:\Windows\system32\WS2_32.dll
0x76da0000 - 0x76da6000 C:\Windows\system32\NSI.dll
0x75830000 - 0x75849000 C:\Windows\system32\iphlpapi.dll
0x757f0000 - 0x75825000 C:\Windows\system32\dhcpcsvc.DLL
0x75a70000 - 0x75a9c000 C:\Windows\system32\DNSAPI.dll
0x757e0000 - 0x757e7000 C:\Windows\system32\WINNSI.DLL
0x757b0000 - 0x757d2000 C:\Windows\system32\dhcpcsvc6.DLL
0x6c5a0000 - 0x6d15b000 C:\Windows\system32\MSHTML.dll
0x752c0000 - 0x752c8000 C:\Windows\system32\VERSION.dll
0x75370000 - 0x753ab000 C:\Windows\system32\rsaenh.dll
0x772e0000 - 0x77364000 C:\Windows\system32\CLBCatQ.DLL
0x714a0000 - 0x714d2000 C:\Program Files\Internet Explorer\ieproxy.dll
0x71e60000 - 0x71eb3000 C:\Windows\system32\ACTXPRXY.DLL
0x75e00000 - 0x75e2c000 C:\Windows\system32\apphelp.dll
0x71aa0000 - 0x71ab1000 C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroIEHelperShim.dll
0x714e0000 - 0x7157b000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4016_none_d0893820442e7fe4\MSVCR80.dll
0x715b0000 - 0x71637000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4016_none_d0893820442e7fe4\MSVCP80.dll
0x73490000 - 0x734a0000 C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroIEHelper.dll
0x6d440000 - 0x6d44c000 C:\Program Files\Java\jre6\bin\jp2ssv.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\MSVCR71.dll
0x75d40000 - 0x75d9f000 C:\Windows\system32\SXS.DLL
0x73c20000 - 0x73c50000 C:\Windows\system32\MLANG.dll
0x74470000 - 0x744ba000 C:\Windows\system32\RASAPI32.dll
0x746e0000 - 0x746f4000 C:\Windows\system32\rasman.dll
0x75cc0000 - 0x75d36000 C:\Windows\system32\NETAPI32.dll
0x74430000 - 0x74461000 C:\Windows\system32\TAPI32.dll
0x74620000 - 0x7462c000 C:\Windows\system32\rtutils.dll
0x74390000 - 0x743c2000 C:\Windows\system32\WINMM.dll
0x75e80000 - 0x75e9e000 C:\Windows\system32\USERENV.dll
0x758d0000 - 0x759c2000 C:\Windows\system32\CRYPT32.dll
0x75a30000 - 0x75a42000 C:\Windows\system32\MSASN1.dll
0x73020000 - 0x73026000 C:\Windows\system32\sensapi.dll
0x75700000 - 0x75707000 C:\Windows\system32\credssp.dll
0x753b0000 - 0x753f7000 C:\Windows\system32\schannel.dll
0x70c60000 - 0x70ccc000 C:\Windows\system32\ieapfltr.dll
0x6f570000 - 0x6f72b000 C:\Windows\System32\jscript9.dll
0x73000000 - 0x7300b000 C:\Windows\system32\msimtf.dll
0x74930000 - 0x749eb000 C:\Windows\system32\PROPSYS.dll
0x71970000 - 0x71a64000 C:\Windows\system32\windowscodecs.dll
0x76db0000 - 0x76f3a000 C:\Windows\system32\setupapi.dll
0x70bb0000 - 0x70c5b000 C:\Windows\system32\d2d1.dll
0x70020000 - 0x70128000 C:\Windows\system32\DWrite.dll
0x70b30000 - 0x70bb0000 C:\Windows\system32\dxgi.dll
0x737f0000 - 0x737fc000 C:\Windows\system32\dwmapi.dll
0x74690000 - 0x746bd000 C:\Windows\system32\WINTRUST.dll
0x761a0000 - 0x761c9000 C:\Windows\system32\imagehlp.dll
0x716b0000 - 0x716dc000 C:\Windows\system32\d3d10_1.dll
0x713f0000 - 0x7142a000 C:\Windows\system32\d3d10_1core.dll
0x6fef0000 - 0x7001c000 C:\Windows\system32\D3D10Warp.dll
0x6f460000 - 0x6f562000 C:\Windows\system32\d3d10.dll
0x70db0000 - 0x70de3000 C:\Windows\system32\d3d10core.dll
0x752f0000 - 0x75311000 C:\Windows\system32\NTMARTA.DLL
0x77a50000 - 0x77a99000 C:\Windows\system32\WLDAP32.dll
0x75a50000 - 0x75a61000 C:\Windows\system32\SAMLIB.dll
0x755f0000 - 0x7562b000 C:\Windows\system32\mswsock.dll
0x751f0000 - 0x751f5000 C:\Windows\System32\wshtcpip.dll
0x752b0000 - 0x752bf000 C:\Windows\system32\NLAapi.dll
0x73440000 - 0x73446000 C:\Windows\system32\rasadhlp.dll
0x70af0000 - 0x70b23000 C:\Windows\system32\windowscodecsext.dll
0x72940000 - 0x72a9b000 C:\Windows\System32\msxml6.dll
0x6d410000 - 0x6d42e000 C:\Program Files\Java\jre6\bin\jp2iexp.dll
0x737d0000 - 0x737d7000 C:\Windows\system32\wsock32.dll
0x732d0000 - 0x732df000 C:\Windows\system32\napinsp.dll
0x732c0000 - 0x732c8000 C:\Windows\System32\winrnr.dll
0x744c0000 - 0x74545000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6002.18305_none_88f3a38569c2c436\comctl32.dll
0x05be0000 - 0x05e77000 C:\PROGRA~1\Java\jre6\bin\client\jvm.dll
0x01fe0000 - 0x01fec000 C:\PROGRA~1\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 C:\PROGRA~1\Java\jre6\bin\java.dll
0x6d290000 - 0x6d298000 C:\PROGRA~1\Java\jre6\bin\hpi.dll
0x02420000 - 0x0242f000 C:\PROGRA~1\Java\jre6\bin\zip.dll
0x6d430000 - 0x6d436000 C:\Program Files\Java\jre6\bin\jp2native.dll
0x6d1d0000 - 0x6d1e3000 C:\Program Files\Java\jre6\bin\deploy.dll
0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
0x75650000 - 0x75655000 C:\Windows\System32\wship6.dll
0x025b0000 - 0x025b9000 C:\Program Files\Java\jre6\bin\nio.dll
0x02760000 - 0x027a4000 C:\Program Files\Java\jre6\bin\regutils.dll
0x08bb0000 - 0x08cfa000 C:\Program Files\Java\jre6\bin\awt.dll
0x72d30000 - 0x72d72000 C:\Windows\system32\WINSPOOL.DRV
VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\jre6\lib\deploy.jar;C:\PROGRA~1\Java\jre6\lib\javaws.jar;C:\PROGRA~1\Java\jre6\lib\plugin.jar -Xmx32m -Djava.awt.headless=true -Dkernel.background.download=false -Dkernel.download.dialog=false -XX:MaxDirectMemorySize=64m
java_command: <unknown>
Launcher Type: generic
Environment Variables:
JAVA_HOME=C:\j2sdk1.4.2_04\
PATH=C:\Program Files\Internet Explorer;;C:\Windows\System32;C:\j2sdk1.4.2_04\bin;C:\Windows\System32\WindowsPowerShell\v1.0\
USERNAME=mlebson
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 30 Stepping 5, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Server 2008 Build 6002 Service Pack 2
CPU:total 4 (8 cores per cpu, 2 threads per core) family 6 model 30 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
Memory: 4k page, physical 4183352k(3147268k free), swap 8613472k(7704200k free)
vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)
time: Wed Dec 12 14:31:46 2012
elapsed time: 0 seconds
It looks like a null pointer exception in the JVM itself. It still occurs if I get rid of the "IE specific" version I have and just use the second one, after the Else. I've also tried changing the height and width to nonzero values, thinking it might be doing something weird with those, but no. It does not occur if I go back to using applet tags, while keeping all the parameters and settings the same. Now, if I were doing this purely for myself I would just accept it was a bug in an old JVM and require people to upgrade to the latest version of Java (which works fine), but many of our customers are corporate users with very "sticky" IT departments who take ages to roll out updates, or users who don't even know what Java is, let alone know how to update it. Do I just give up and continue using applet tags until browsers outright stop supporting them? Is there a trick to make this work that I haven't tried?
EDIT: I did some more testing, and it looks like the java test page itself (http://www.java.com/en/download/testjava.jsp) also causes the same crash. Maybe I'll just have to use applet tags until all our customers have updated, if it's so bad that the official java test applet can't even load.

Use deployJava.js to write the applet element. It is designed to ensure the correct element for that browser is written.

The issue is in the native C frame and looks like a JDK bug.
A similar bug with JDK 6u 19 and above was reported here.
The fix looks like is to move on to Java 7

Related

EXCEPTION_ACCESS_VIOLATION at printing ticket

Im having this hs_err_pid when I try to print a ticket from Openbravo POS:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77036018, pid=3436, tid=1096
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [ntdll.dll+0x56018]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x04a13c00): JavaThread "pool-1-thread-1" [_thread_in_native, id=1096, stack(0x04470000,0x044c0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000004
Registers:
EAX=0x002f1488, EBX=0x002c8200, ECX=0x00000000, EDX=0x0000a202
ESP=0x044bf874, EBP=0x044bf89c, ESI=0x002f1480, EDI=0x00270000
EIP=0x77036018, EFLAGS=0x00010246
Top of Stack: (sp=0x044bf874)
0x044bf874: 00270000 002c8200 00000000 53944b40
0x044bf884: 0000000a 044bf868 00000000 044bf984
0x044bf894: 76ffe115 00149a2e 044bf994 77036287
0x044bf8a4: 00270000 002f1480 044bf964 00000000
0x044bf8b4: 735c7ef2 00000000 00270000 002c8208
0x044bf8c4: 77032fe7 735c7e2a 00000008 00270194
0x044bf8d4: 00270000 00360024 00000050 fffffffe
0x044bf8e4: 77032fe7 00270000 00275908 00340025
Instructions: (pc=0x77036018)
0x77036008: 85 56 3b 03 00 8b 56 0c 8d 46 08 8b 08 89 4d f0
0x77036018: 8b 49 04 89 55 f4 8b 12 3b d1 0f 85 b7 55 fd ff
Stack: [0x04470000,0x044c0000], sp=0x044bf874, free space=13e044bf390k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x56018]
C [ntdll.dll+0x56287]
C [ntdll.dll+0x565a6]
C [kernel32.dll+0x4c484]
C [crtdll.dll+0xc4d7]
j gnu.io.LPRPort.writeArray([BII)V+0
j gnu.io.LPRPort$ParallelOutputStream.write([B)V+26
j com.openbravo.pos.printer.escpos.PrinterWritterRXTX.internalWrite([B)V+78
j com.openbravo.pos.printer.escpos.PrinterWritter$1.run()V+8
j java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [jvm.dll+0xf049c]
V [jvm.dll+0x17fcf1]
V [jvm.dll+0xf0667]
V [jvm.dll+0xf06dd]
V [jvm.dll+0x11a2a0]
V [jvm.dll+0x1ddb14]
V [jvm.dll+0x17f96c]
C [msvcr71.dll+0x9565]
C [kernel32.dll+0x4ee1c]
C [ntdll.dll+0x637eb]
C [ntdll.dll+0x637be]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j gnu.io.LPRPort.writeArray([BII)V+0
j gnu.io.LPRPort$ParallelOutputStream.write([B)V+26
j com.openbravo.pos.printer.escpos.PrinterWritterRXTX.internalWrite([B)V+78
j com.openbravo.pos.printer.escpos.PrinterWritter$1.run()V+8
j java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x04acb000 JavaThread "Trident pulse source thread" daemon [_thread_blocked, id=3124, stack(0x04620000,0x04670000)]
0x04aca800 JavaThread "Trident callback thread" daemon [_thread_blocked, id=3412, stack(0x045d0000,0x04620000)]
0x04a16000 JavaThread "TimerQueue" daemon [_thread_blocked, id=2432, stack(0x044c0000,0x04510000)]
=>0x04a13c00 JavaThread "pool-1-thread-1" [_thread_in_native, id=1096, stack(0x04470000,0x044c0000)]
0x0129b000 JavaThread "DestroyJavaVM" [_thread_blocked, id=4004, stack(0x00370000,0x003c0000)]
0x01b8a000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2116, stack(0x04140000,0x04190000)]
0x01b89400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2840, stack(0x040f0000,0x04140000)]
0x01b88c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=3044, stack(0x040a0000,0x040f0000)]
0x01b86800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3160, stack(0x04050000,0x040a0000)]
0x01ae7800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2608, stack(0x03de0000,0x03e30000)]
0x01ae2800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2476, stack(0x03d90000,0x03de0000)]
0x01ae1800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2468, stack(0x03d40000,0x03d90000)]
0x01ade800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2204, stack(0x03cf0000,0x03d40000)]
0x01ad6800 JavaThread "Finalizer" daemon [_thread_blocked, id=4008, stack(0x03ca0000,0x03cf0000)]
0x01ad2000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2976, stack(0x03c50000,0x03ca0000)]
Other Threads:
0x01ad0c00 VMThread [stack: 0x01240000,0x01290000] [id=2728]
0x01af1c00 WatcherThread [stack: 0x03e30000,0x03e80000] [id=3768]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 8320K, used 1394K [0x23ac0000, 0x243c0000, 0x29010000)
eden space 7424K, 10% used [0x23ac0000, 0x23b8ac98, 0x24200000)
from space 896K, 65% used [0x24200000, 0x24291f48, 0x242e0000)
to space 896K, 0% used [0x242e0000, 0x242e0000, 0x243c0000)
tenured generation total 18344K, used 16823K [0x29010000, 0x2a1fa000, 0x33ac0000)
the space 18344K, 91% used [0x29010000, 0x2a07dc38, 0x2a07de00, 0x2a1fa000)
compacting perm gen total 12288K, used 10625K [0x33ac0000, 0x346c0000, 0x37ac0000)
the space 12288K, 86% used [0x33ac0000, 0x345207e8, 0x34520800, 0x346c0000)
ro space 10240K, 51% used [0x37ac0000, 0x37feae00, 0x37feae00, 0x384c0000)
rw space 12288K, 54% used [0x384c0000, 0x38b572d8, 0x38b57400, 0x390c0000)
Dynamic libraries:
0x00400000 - 0x00424000 C:\Windows\system32\javaw.exe
0x76fe0000 - 0x7711c000 C:\Windows\SYSTEM32\ntdll.dll
0x75810000 - 0x758e4000 C:\Windows\system32\kernel32.dll
0x75140000 - 0x7518b000 C:\Windows\system32\KERNELBASE.dll
0x77130000 - 0x771d0000 C:\Windows\system32\ADVAPI32.dll
0x76b00000 - 0x76bac000 C:\Windows\system32\msvcrt.dll
0x767c0000 - 0x767d9000 C:\Windows\SYSTEM32\sechost.dll
0x769f0000 - 0x76a92000 C:\Windows\system32\RPCRT4.dll
0x75710000 - 0x757d9000 C:\Windows\system32\USER32.dll
0x767e0000 - 0x7682e000 C:\Windows\system32\GDI32.dll
0x75410000 - 0x7541a000 C:\Windows\system32\LPK.dll
0x76880000 - 0x7691d000 C:\Windows\system32\USP10.dll
0x756f0000 - 0x7570f000 C:\Windows\system32\IMM32.DLL
0x76920000 - 0x769ec000 C:\Windows\system32\MSCTF.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d800000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x72780000 - 0x727b2000 C:\Windows\system32\WINMM.dll
0x74f30000 - 0x74f7c000 C:\Windows\system32\apphelp.dll
0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll
0x75360000 - 0x75365000 C:\Windows\system32\PSAPI.DLL
0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll
0x6d000000 - 0x6d14a000 C:\Program Files\Java\jre6\bin\awt.dll
0x70320000 - 0x70371000 C:\Windows\system32\WINSPOOL.DRV
0x76e80000 - 0x76fdc000 C:\Windows\system32\ole32.dll
0x73e60000 - 0x73ffe000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
0x76aa0000 - 0x76af7000 C:\Windows\system32\SHLWAPI.dll
0x739b0000 - 0x739c3000 C:\Windows\system32\DWMAPI.DLL
0x73ce0000 - 0x73d20000 C:\Windows\system32\uxtheme.dll
0x74f80000 - 0x74f8c000 C:\Windows\system32\CRYPTBASE.dll
0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
0x771d0000 - 0x77205000 C:\Windows\system32\WS2_32.dll
0x75370000 - 0x75376000 C:\Windows\system32\NSI.dll
0x74a30000 - 0x74a6c000 C:\Windows\system32\mswsock.dll
0x74a20000 - 0x74a26000 C:\Windows\System32\wship6.dll
0x72520000 - 0x72530000 C:\Windows\system32\NLAapi.dll
0x6f420000 - 0x6f430000 C:\Windows\system32\napinsp.dll
0x6f400000 - 0x6f412000 C:\Windows\system32\pnrpnsp.dll
0x748f0000 - 0x74934000 C:\Windows\system32\DNSAPI.dll
0x6f3f0000 - 0x6f3f8000 C:\Windows\System32\winrnr.dll
0x74580000 - 0x74585000 C:\Windows\System32\wshtcpip.dll
0x72320000 - 0x7233c000 C:\Windows\system32\IPHLPAPI.DLL
0x72310000 - 0x72317000 C:\Windows\system32\WINNSI.DLL
0x6fbb0000 - 0x6fbb6000 C:\Windows\system32\rasadhlp.dll
0x72230000 - 0x72268000 C:\Windows\System32\fwpuclnt.dll
0x74a70000 - 0x74a86000 C:\Windows\system32\CRYPTSP.dll
0x74810000 - 0x7484b000 C:\Windows\system32\rsaenh.dll
0x74650000 - 0x74667000 C:\Windows\system32\USERENV.dll
0x75000000 - 0x7500b000 C:\Windows\system32\profapi.dll
0x75b70000 - 0x767ba000 C:\Windows\system32\shell32.dll
0x6d230000 - 0x6d284000 C:\Program Files\Java\jre6\bin\fontmanager.dll
0x6d630000 - 0x6d639000 C:\Program Files\Java\jre6\bin\nio.dll
0x6d1a0000 - 0x6d1c3000 C:\Program Files\Java\jre6\bin\dcpr.dll
0x10000000 - 0x10012000 C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\lib\Windows\i368-mingw32\rxtxSerial.dll
0x6c240000 - 0x6c267000 C:\Windows\system32\crtdll.dll
0x75380000 - 0x7540f000 C:\Windows\system32\OLEAUT32.DLL
0x012c0000 - 0x012cd000 C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\lib\Windows\i368-mingw32\rxtxParallel.dll
VM Arguments:
jvm_args: -Djava.library.path=C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\lib/Windows/i368-mingw32;C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\lib/Windows/jacob -Ddirname.path=C:\Sistematpv\app\OpenbravoPOS\OpenbravoPOS\./
java_command: com.openbravo.pos.forms.StartPOS C:\Sistematpv\app\OpenbravoPOS\openbravopos.properties
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_33
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Program Files\Java\jre6\bin
USERNAME=Utilisateur
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7601 Service Pack 1
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
Memory: 4k page, physical 2027120k(1262220k free), swap 4054240k(3091592k free)
vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)
time: Wed Apr 23 12:41:52 2014
elapsed time: 16 seconds
I tried a all I know and all I searched.
Changing the ntdll.dll , kerne32.dll and ctrdll.dll from mine (Cause this problem is only running in a PC that's not mine, and the proyect is running well in others 86 pc's)
I updated java, and followed all this points to help:
http://pcsupport.about.com/od/fixtheproblem/a/ntdlldll.htm
For more information:
Windows 7 32 bits
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
and the printer is an EPSON TM88T IV using LPT port.
It's a virtual port that epson creates itself
This is a problem than jvm send when executes any functionality of the native code.
Maybe your problem comes caused by the use of the rxtx libraries, so i reccomend you to change the 'serial' into 'file' of the printer mode.

JVM Fatal Error in native code, Not sure what to do

I'm developing a game in Java using LWJGL. Along with the main game, I'm developing a few Swing-based applications (a launcher, a configuration editor, and a map editor).
When I run the launcher, I sometimes (about 10% of the time) get a fatal JVM crash. It's very strange - I can run the program a few seconds later and everything works. I have zero compilation errors or warnings, and when the program does work, it's completely functional.
I haven't gotten the error when I run my LWJGL game, it's only when I run the launcher first. The process I use to initialize the launcher is:
Tell swing to use a Substance Look and Feel for window decoration.
Setup a directory on the user's computer in which to store files (save games, configurations, etc).
Check if extracting the LWJGL required libraries to the previously mentioned directory is necessary; if so, extract them. Then, set the LWJGL path property of the JVM (this allows LWJGL methods to function). (This has been extensively tested by itself; I don't know if it would somehow interfere with the Substance LaF. I wouldn't expect it to.)
Initialize the launcher window. It has a central image and a series of JButtons.
Begin looping a background soundtrack for ambiance using JLayer. This error would occur before I implemented this feature, and adding it did not change anything.
The error I get is as follows:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefd800c7b, pid=6128, tid=4364
#
# JRE version: 6.0_27-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b06 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [ole32.dll+0x10c7b]
#
# An error report file with more information is saved as:
# J:\Development\workspace\Crypt Utils\hs_err_pid6128.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Then, the error log file:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefd800c7b, pid=6128, tid=4364
#
# JRE version: 6.0_27-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b06 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [ole32.dll+0x10c7b]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x000000000713d000): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4364, stack(0x0000000007e30000,0x0000000007f30000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x0000000000000038
Registers:
RAX=0x0000000000000000, RBX=0x000000000b933c70, RCX=0x000000000000110c, RDX=0x000007fefd996620
RSP=0x0000000007f2dfa0, RBP=0x000000000026dc90, RSI=0x0000000000000000, RDI=0x000000000b933c70
R8 =0x00000000000003d4, R9 =0x000007fefd977f18, R10=0x0000000000000000, R11=0x0000000007f2dec0
R12=0x0000000000000000, R13=0x000000000b90a3c0, R14=0x0000000000000000, R15=0x0000000000000000
RIP=0x000007fefd800c7b, EFLAGS=0x0000000000010246
Top of Stack: (sp=0x0000000007f2dfa0)
0x0000000007f2dfa0: 000000000b933c70 0000000000000000
0x0000000007f2dfb0: 0000000000000000 000007fefd81311b
0x0000000007f2dfc0: 0000000000000000 0000000007f2e050
0x0000000007f2dfd0: 000017f000001000 d0b221343c39b318
0x0000000007f2dfe0: 000081de6b223eb8 000007fefd813032
0x0000000007f2dff0: 0000000000000001 00000000070e9c18
0x0000000007f2e000: 0000000000000000 000000000026dc90
0x0000000007f2e010: 000000000713d1d0 000007fefd801225
0x0000000007f2e020: 0000000007f2e080 000000000026dc90
0x0000000007f2e030: 0000000000000000 000000000000008c
0x0000000007f2e040: 000000000c797be0 000007fefd963135
0x0000000007f2e050: 000000000026dc90 000000000713ca28
0x0000000007f2e060: 0000000006697d00 000007fefd0f8c12
0x0000000007f2e070: 000000000c797be0 000007fefd91de9d
0x0000000007f2e080: 000000000026dc90 00000000070e9c18
0x0000000007f2e090: 0000000000000018 0000000000000514
Instructions: (pc=0x000007fefd800c7b)
0x000007fefd800c5b: 60 1c 00 41 b8 d4 03 00 00 e8 47 82 01 00 85 f6
0x000007fefd800c6b: 78 2b f3 0f 6f 44 24 30 48 8b 45 18 4c 89 6d 20
0x000007fefd800c7b: f3 0f 7f 40 30 f6 45 0c 01 75 12 48 8b cd e8 be
0x000007fefd800c8b: fa ff ff 8b f0 85 c0 78 04 83 4d 0c 01 48 8b cd
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x000000000b933c70 is an unknown value
RCX=0x000000000000110c is an unknown value
RDX=0x000007fefd996620 is an unknown value
RSP=0x0000000007f2dfa0 is pointing into the stack for thread: 0x000000000713d000
RBP=0x000000000026dc90 is an unknown value
RSI=0x0000000000000000 is an unknown value
RDI=0x000000000b933c70 is an unknown value
R8 =0x00000000000003d4 is an unknown value
R9 =0x000007fefd977f18 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x0000000007f2dec0 is pointing into the stack for thread: 0x000000000713d000
R12=0x0000000000000000 is an unknown value
R13=0x000000000b90a3c0 is an unknown value
R14=0x0000000000000000 is an unknown value
R15=0x0000000000000000 is an unknown value
Stack: [0x0000000007e30000,0x0000000007f30000], sp=0x0000000007f2dfa0, free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ole32.dll+0x10c7b] CLSIDFromString+0x5fb
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
sun.awt.windows.WComponentPeer.addNativeDropTarget()J+0
sun.awt.windows.WComponentPeer.addDropTarget(Ljava/awt/dnd/DropTarget;)V+9
java.awt.dnd.DropTarget.addNotify(Ljava/awt/peer/ComponentPeer;)V+60
java.awt.Component.addNotify()V+297
java.awt.Container.addNotify()V+8
javax.swing.JComponent.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
javax.swing.JMenuBar.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
org.pushingpixels.substance.internal.utils.SubstanceTitlePane.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
javax.swing.JRootPane.addNotify()V+5
java.awt.Container.addNotify()V+61
java.awt.Window.addNotify()V+73
java.awt.Frame.addNotify()V+70
java.awt.Window.pack()V+28
gui.launcher.LauncherWindow.()V+156
main.Crypt.runLauncher()V+28
main.Crypt$1.run()V+0
java.awt.event.InvocationEvent.dispatch()V+47
java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+21
java.awt.EventQueue.access$000(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
java.awt.EventQueue$1.run()Ljava/lang/Void;+12
java.awt.EventQueue$1.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204
java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0000000007309000 JavaThread "Substance heap status" daemon [_thread_blocked, id=5732, stack(0x000000000c000000,0x000000000c100000)]
0x000000000737e000 JavaThread "Headspace mixer frame proc thread" daemon [_thread_blocked, id=5520, stack(0x000000000bd00000,0x000000000be00000)]
0x00000000072a2800 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=2956, stack(0x000000000b700000,0x000000000b800000)]
0x00000000071dc800 JavaThread "Thread-3" [_thread_in_native, id=4104, stack(0x00000000082b0000,0x00000000083b0000)]
0x00000000003db800 JavaThread "DestroyJavaVM" [_thread_blocked, id=5600, stack(0x0000000002570000,0x0000000002670000)]
=>0x000000000713d000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4364, stack(0x0000000007e30000,0x0000000007f30000)]
0x00000000067af800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5760, stack(0x0000000007830000,0x0000000007930000)]
0x00000000067ae800 JavaThread "AWT-Shutdown" [_thread_blocked, id=2600, stack(0x0000000007730000,0x0000000007830000)]
0x00000000066ea800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4244, stack(0x00000000074e0000,0x00000000075e0000)]
0x0000000006684000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5196, stack(0x0000000006d10000,0x0000000006e10000)]
0x0000000006681000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=4192, stack(0x0000000006c10000,0x0000000006d10000)]
0x000000000666e000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4260, stack(0x0000000006b10000,0x0000000006c10000)]
0x000000000666b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=5008, stack(0x0000000006a10000,0x0000000006b10000)]
0x0000000006666000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4032, stack(0x0000000006910000,0x0000000006a10000)]
0x000000000064b800 JavaThread "Finalizer" daemon [_thread_blocked, id=1132, stack(0x0000000006810000,0x0000000006910000)]
0x0000000000649000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5336, stack(0x0000000006510000,0x0000000006610000)]
Other Threads:
0x0000000000641000 VMThread [stack: 0x0000000006410000,0x0000000006510000] [id=3820]
0x0000000006697000 WatcherThread [stack: 0x0000000006e10000,0x0000000006f10000] [id=5156]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 19136K, used 15506K [0x00000000eaab0000, 0x00000000ec000000, 0x0000000100000000)
eden space 16448K, 94% used [0x00000000eaab0000,0x00000000eb9d4b98,0x00000000ebac0000)
from space 2688K, 0% used [0x00000000ebd60000,0x00000000ebd60000,0x00000000ec000000)
to space 2688K, 0% used [0x00000000ebac0000,0x00000000ebac0000,0x00000000ebd60000)
PSOldGen total 43712K, used 0K [0x00000000c0000000, 0x00000000c2ab0000, 0x00000000eaab0000)
object space 43712K, 0% used [0x00000000c0000000,0x00000000c0000000,0x00000000c2ab0000)
PSPermGen total 21248K, used 15942K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
object space 21248K, 75% used [0x00000000bae00000,0x00000000bbd91870,0x00000000bc2c0000)
Code Cache [0x0000000002670000, 0x00000000028e0000, 0x0000000005670000)
total_blobs=470 nmethods=39 adapters=385 free_code_cache=49729536 largest_free_block=6336
Dynamic libraries:
0x0000000000400000 - 0x000000000042e000 C:\Program Files\Java\jre6\bin\javaw.exe
0x00000000770f0000 - 0x0000000077299000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000076ed0000 - 0x0000000076fef000 C:\Windows\system32\kernel32.dll
0x000007fefd0f0000 - 0x000007fefd15c000 C:\Windows\system32\KERNELBASE.dll
0x0000000074de0000 - 0x0000000074e1f000 C:\Program Files\AVAST Software\Avast\snxhk64.dll
0x000007fefdde0000 - 0x000007fefdebb000 C:\Windows\system32\ADVAPI32.dll
0x000007fefd410000 - 0x000007fefd4af000 C:\Windows\system32\msvcrt.dll
0x000007fefd4b0000 - 0x000007fefd4cf000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefef90000 - 0x000007feff0bd000 C:\Windows\system32\RPCRT4.dll
0x0000000076ff0000 - 0x00000000770ea000 C:\Windows\system32\USER32.dll
0x000007fefdec0000 - 0x000007fefdf27000 C:\Windows\system32\GDI32.dll
0x000007fefee50000 - 0x000007fefee5e000 C:\Windows\system32\LPK.dll
0x000007feff0c0000 - 0x000007feff189000 C:\Windows\system32\USP10.dll
0x000007fefe090000 - 0x000007fefe0be000 C:\Windows\system32\IMM32.DLL
0x000007fefd4d0000 - 0x000007fefd5d9000 C:\Windows\system32\MSCTF.dll
0x000000006d7f0000 - 0x000000006dfa8000 C:\Program Files\Java\jre6\bin\server\jvm.dll
0x000007fefa980000 - 0x000007fefa9bb000 C:\Windows\system32\WINMM.dll
0x000000006d760000 - 0x000000006d76e000 C:\Program Files\Java\jre6\bin\verify.dll
0x000000006d3b0000 - 0x000000006d3d7000 C:\Program Files\Java\jre6\bin\java.dll
0x000000006d7b0000 - 0x000000006d7c2000 C:\Program Files\Java\jre6\bin\zip.dll
0x000000006d000000 - 0x000000006d1c3000 C:\Program Files\Java\jre6\bin\awt.dll
0x000007fefa620000 - 0x000007fefa691000 C:\Windows\system32\WINSPOOL.DRV
0x000007fefd7f0000 - 0x000007fefd9f3000 C:\Windows\system32\ole32.dll
0x000007fefe0c0000 - 0x000007fefee48000 C:\Windows\system32\SHELL32.dll
0x000007fefef10000 - 0x000007fefef81000 C:\Windows\system32\SHLWAPI.dll
0x000007fefbaf0000 - 0x000007fefbce4000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefb3b0000 - 0x000007fefb3c8000 C:\Windows\system32\DWMAPI.DLL
0x000007fefb780000 - 0x000007fefb7d6000 C:\Windows\system32\uxtheme.dll
0x000007fef93b0000 - 0x000007fef942f000 C:\Program Files\Common Files\microsoft shared\ink\tiptsf.dll
0x000007fefd5e0000 - 0x000007fefd6b7000 C:\Windows\system32\OLEAUT32.dll
0x000007fefc180000 - 0x000007fefc18c000 C:\Windows\system32\version.dll
0x000007fefcf70000 - 0x000007fefcf7f000 C:\Windows\system32\CRYPTBASE.dll
0x000000006d2a0000 - 0x000000006d306000 C:\Program Files\Java\jre6\bin\fontmanager.dll
0x000000006d600000 - 0x000000006d617000 C:\Program Files\Java\jre6\bin\net.dll
0x000007fefee60000 - 0x000007fefeead000 C:\Windows\system32\WS2_32.dll
0x000007feff210000 - 0x000007feff218000 C:\Windows\system32\NSI.dll
0x000007fefc870000 - 0x000007fefc8c5000 C:\Windows\system32\mswsock.dll
0x000007fefc860000 - 0x000007fefc867000 C:\Windows\System32\wship6.dll
0x000000006d620000 - 0x000000006d62b000 C:\Program Files\Java\jre6\bin\nio.dll
0x0000000180000000 - 0x0000000180050000 C:\Users\Chris\AppData\Roaming\jRabbit Data\LWJGL Natives\lwjgl64.dll
0x000007fef1550000 - 0x000007fef166d000 C:\Windows\system32\OPENGL32.dll
0x000007fef47c0000 - 0x000007fef47ed000 C:\Windows\system32\GLU32.dll
0x000007fef1210000 - 0x000007fef1301000 C:\Windows\system32\DDRAW.dll
0x000007fef8090000 - 0x000007fef8098000 C:\Windows\system32\DCIMAN32.dll
0x000007feff220000 - 0x000007feff3f7000 C:\Windows\system32\SETUPAPI.dll
0x000007fefd160000 - 0x000007fefd196000 C:\Windows\system32\CFGMGR32.dll
0x000007fefd3b0000 - 0x000007fefd3ca000 C:\Windows\system32\DEVOBJ.dll
0x000007fefa2a0000 - 0x000007fefa49f000 C:\Windows\system32\d3d9.dll
0x000007fefa290000 - 0x000007fefa297000 C:\Windows\system32\d3d8thk.dll
0x000007feed900000 - 0x000007feee777000 C:\Windows\system32\nvd3dumx.dll
0x000007fefb860000 - 0x000007fefb88c000 C:\Windows\system32\powrprof.dll
0x000000006d510000 - 0x000000006d53e000 C:\Program Files\Java\jre6\bin\jsound.dll
0x000007fefb730000 - 0x000007fefb77b000 C:\Windows\system32\MMDevAPI.DLL
0x000007fefb940000 - 0x000007fefba6c000 C:\Windows\system32\PROPSYS.dll
0x000007fefa5e0000 - 0x000007fefa61b000 C:\Windows\system32\wdmaud.drv
0x0000000074a00000 - 0x0000000074a06000 C:\Windows\system32\ksuser.dll
0x000007fefbae0000 - 0x000007fefbae9000 C:\Windows\system32\AVRT.dll
0x000007fefa590000 - 0x000007fefa5df000 C:\Windows\system32\AUDIOSES.DLL
0x000007fefa4e0000 - 0x000007fefa4ea000 C:\Windows\system32\msacm32.drv
0x000007fefa4c0000 - 0x000007fefa4d8000 C:\Windows\system32\MSACM32.dll
0x000007fefa4a0000 - 0x000007fefa4a9000 C:\Windows\system32\midimap.dll
0x000000006d210000 - 0x000000006d238000 C:\Program Files\Java\jre6\bin\dcpr.dll
0x000007fefdf30000 - 0x000007fefdfc9000 C:\Windows\system32\CLBCatQ.DLL
0x000007fefcb00000 - 0x000007fefcb17000 C:\Windows\system32\CRYPTSP.dll
0x000007fefc5d0000 - 0x000007fefc617000 C:\Windows\system32\rsaenh.dll
0x000007fefc390000 - 0x000007fefc3ae000 C:\Windows\system32\USERENV.dll
0x000007fefcfa0000 - 0x000007fefcfaf000 C:\Windows\system32\profapi.dll
0x000007fefad70000 - 0x000007fefad85000 C:\Windows\system32\NLAapi.dll
0x000007fefb220000 - 0x000007fefb235000 C:\Windows\system32\napinsp.dll
0x000007fefb200000 - 0x000007fefb219000 C:\Windows\system32\pnrpnsp.dll
0x000007fefc6f0000 - 0x000007fefc74b000 C:\Windows\system32\DNSAPI.dll
0x000007fefbac0000 - 0x000007fefbacb000 C:\Windows\System32\winrnr.dll
0x0000000074700000 - 0x000000007472e000 C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x00000000772b0000 - 0x00000000772b7000 C:\Windows\system32\PSAPI.DLL
0x00000000746d0000 - 0x00000000746f6000 C:\Program Files\Bonjour\mdnsNSP.dll
0x000007fef9ec0000 - 0x000007fef9ee7000 C:\Windows\system32\Iphlpapi.DLL
0x000007fef9eb0000 - 0x000007fef9ebb000 C:\Windows\system32\WINNSI.DLL
0x000007fefc250000 - 0x000007fefc257000 C:\Windows\System32\wshtcpip.dll
0x000007fefb7e0000 - 0x000007fefb7e8000 C:\Windows\system32\rasadhlp.dll
0x000007fef9cf0000 - 0x000007fef9d43000 C:\Windows\System32\fwpuclnt.dll
0x000007fefcf80000 - 0x000007fefcf94000 C:\Windows\system32\RpcRtRemote.dll
VM Arguments:
jvm_args: -Dfile.encoding=Cp1252
java_command: main.Crypt
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
PATH=C:/Program Files/Java/jre6/bin/server;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/amd64;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\SlikSvn\bin\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Autodesk\Backburner\;J:\Development\Eclipse;
USERNAME=Chris
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 11, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 Service Pack 1
CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 4193464k(2246544k free), swap 8385080k(6086692k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (20.2-b06) for windows-amd64 JRE (1.6.0_27-b07), built on Jul 19 2011 01:08:22 by "java_re" with MS VC++ 8.0 (VS2005)
time: Mon Oct 03 09:29:15 2011
elapsed time: 1 seconds
From looking around on Stack Overflow, it seems like this is occasionally related to memory settings. Is that the case here? I've already set Eclipse to run with a lot of memory at its disposal; additionally, I'm only creating a small JFrame with a few components on it, plus initializing the LWJGL libraries. That doesn't take up much memory.
I often have problems with java 6 and Swing on my Windows Vista 64 box (but only when I launch my app from eclipse).
The way to fix it for me was to disable Direct3D:
java -Dsun.java2d.d3d=false ...
See also http://download.oracle.com/javase/6/docs/technotes/guides/2d/flags.html#d3d for further information.
Well, the error is from a dll trying to write to memory where it shouldn't. If it happens just sometimes, it may be from not building components on the event dispatch thread. It can't hurt to check.
This bug report at oracle may be related: http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=e5f1f1011daf96ffffffffdd154dd2e731150?bug_id=6967456
It may be related to swing's drag & drop functionality - see if disabling drag and drop on your form components supresses the error.
#CodeBunny, that would be comment:
1) is there Trindent.jar
2) how do you apply Substance Look and Feel to the JFrame,
SwingUtilities.invokeLater(new Runnable() {
#Override
public void run() {
try {
UIManager.setLookAndFeel(new SubstanceOfficeSilver2007LookAndFeel());
SwingUtilities.updateComponentTreeUI(frame);
} catch (UnsupportedLookAndFeelException e) {
throw new RuntimeException(e);
}
}
});
in most cases (if there some BackGround task) required usage of invokeAndWait
EDIT
depends
1) if you are load empty container, then add data (invokeLater)
2) or load everything and wait for that (invokeAndWait),
3) are your contructor for Container in last line contains setVisible(true), last from possible lines,
4) maybe you are outside EDT, something you must loading so heavy, isn't there RepaintManager Error???
5) disable Substance, if you get this error, then came from mistake in codeing or some your code returns error, otherwise is there something rellated with RepaintManager (overload Native OS Latency) or with Concurency, simple your code is out of EDT,
6) Substance is so sensitive, very sensitive for done code out of EDT issues, remove all Thread.sleep(int) from GUI rellated code

My library on multiples connections with my JNI applications

I am developing a java application which uses a c++ library. My application type is an client/server RCP (eclipse plugin based). The problem is when I try to connect more than 2 clients to my server, it always frozes. What is strange is that this problem happens, only when running it in Windows. In Linux, it works fine.
I want to notice also, that, programatically, the clients are represented by C++ threads. May be, they want to access the same resource. If I let the application running, waiting it to defroze, it crashes and generates the log shown below
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6b88cd86, pid=2972, tid=3700
#
# Java VM: Java HotSpot(TM) Client VM (11.2-b01 mixed mode windows-x86)
# Problematic frame:
# C [libtlmdevice_ycp-3-0-0.dll+0x4cd86]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x637f0800): JavaThread "Thread-4" [_thread_in_native, id=3700, stack(0x687a0000,0x687f0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x0000000c
Registers:
EAX=0x00000000, EBX=0x6b87b418, ECX=0x003fcd58, EDX=0x00000000
ESP=0x687efaa8, EBP=0x687efaa8, ESI=0x003ffeb8, EDI=0x637f0800
EIP=0x6b88cd86, EFLAGS=0x00010202
Top of Stack: (sp=0x687efaa8)
0x687efaa8: 687efb08 6b86246a 00000000 6b897954
0x687efab8: 00000001 6b87b418 003ffeb8 637f0800
0x687efac8: 687efae8 6b87a97c 688946e8 00000000
0x687efad8: 00000001 00000000 68893500 633b3f02
0x687efae8: 687efb02 6b88d032 00000002 00000000
0x687efaf8: 00000000 6b87b418 003ffeb8 637f0800
0x687efb08: 687efb48 6b87b312 003fcd58 00000002
0x687efb18: 00000000 00000011 687efb58 7c90da1c
Instructions: (pc=0x6b88cd86)
0x6b88cd76: 08 0f b6 45 fc 88 42 08 c9 c3 55 89 e5 8b 45 08
0x6b88cd86: 8b 40 0c 5d c3 90 55 89 e5 53 83 ec 14 8b 45 08
Stack: [0x687a0000,0x687f0000], sp=0x687efaa8, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libtlmdevice_ycp-3-0-0.dll+0x4cd86]
C [libtlmdevice_ycp-3-0-0.dll+0x2246a]
C [libtlmdevice_ycp-3-0-0.dll+0x3b312]
C [libtlmdevice_ycp-3-0-0.dll+0x3b42c]
C [libtlmdevice_ycp-3-0-0.dll+0x3db81]
C [libtlmdevice_ycp-3-0-0.dll+0x3de1c]
C [libtlmdevice_ycp-3-0-0.dll+0x22f70]
j com.st.tlmdevice.api.TlmdeviceServer.Initialize(Ljava/lang/String;IIII)I+0
j com.st.tlmdevice.api.TlmdeviceServer.run()V+40
v ~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.st.tlmdevice.api.TlmdeviceServer.Initialize(Ljava/lang/String;IIII)I+0
j com.st.tlmdevice.api.TlmdeviceServer.run()V+40
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x66e52800 JavaThread "Thread-17" [_thread_in_native, id=1324, stack(0x68c30000,0x68c80000)]
0x63063000 JavaThread "Thread-15" [_thread_in_native, id=3060, stack(0x68b30000,0x68b80000)]
0x63035000 JavaThread "Thread-16" [_thread_in_native, id=3720, stack(0x68970000,0x689c0000)]
0x637e5800 JavaThread "Thread-14" [_thread_in_native, id=2672, stack(0x689c0000,0x68a10000)]
0x66da4400 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=1532, stack(0x6bf00000,0x6bf50000)]
=>0x637f0800 JavaThread "Thread-4" [_thread_in_native, id=3700, stack(0x687a0000,0x687f0000)]
0x637ec800 JavaThread "Thread-5" [_thread_blocked, id=796, stack(0x68750000,0x687a0000)]
0x66be8c00 JavaThread "Worker-1" [_thread_blocked, id=2016, stack(0x684c0000,0x68510000)]
0x66b67400 JavaThread "Worker-0" [_thread_blocked, id=2336, stack(0x67ac0000,0x67b10000)]
0x63408400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=3360, stack(0x63760000,0x637b0000)]
0x633ffc00 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=1268, stack(0x636c0000,0x63710000)]
0x633e6c00 JavaThread "State Data Manager" daemon [_thread_blocked, id=1968, stack(0x63670000,0x636c0000)]
0x63025000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3936, stack(0x63270000,0x632c0000)]
0x6301ec00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=468, stack(0x63220000,0x63270000)]
0x6301d400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2560, stack(0x631d0000,0x63220000)]
0x6301c000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2716, stack(0x63180000,0x631d0000)]
0x6300c400 JavaThread "Finalizer" daemon [_thread_blocked, id=456, stack(0x63130000,0x63180000)]
0x63007800 JavaThread "Reference Handler" daemon [_thread_blocked, id=1400, stack(0x630e0000,0x63130000)]
0x003a6c00 JavaThread "main" [_thread_in_native, id=448, stack(0x008c0000,0x00910000)]
Other Threads:
0x63004000 VMThread [stack: 0x63090000,0x630e0000] [id=1424]
0x63038800 WatcherThread [stack: 0x632c0000,0x63310000] [id=2604]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 36352K, used 165K [0x02990000, 0x05100000, 0x07850000)
eden space 32320K, 0% used [0x02990000, 0x029b9740, 0x04920000)
from space 4032K, 0% used [0x04920000, 0x04920000, 0x04d10000)
to space 4032K, 0% used [0x04d10000, 0x04d10000, 0x05100000)
tenured generation total 483968K, used 30304K [0x07850000, 0x250f0000, 0x42990000)
the space 483968K, 6% used [0x07850000, 0x095e83f8, 0x095e8400, 0x250f0000)
compacting perm gen total 28928K, used 28902K [0x42990000, 0x445d0000, 0x62990000)
the space 28928K, 99% used [0x42990000, 0x445c9ac0, 0x445c9c00, 0x445d0000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00424000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\javaw.exe
0x7c900000 - 0x7c9af000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x7c340000 - 0x7c396000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\msvcr71.dll
0x6d8b0000 - 0x6db06000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d340000 - 0x6d348000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d860000 - 0x6d86c000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\java.dll
0x6d8a0000 - 0x6d8af000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\zip.dll
0x72000000 - 0x72014000 C:\STM\STWorkbenchR4.1.1\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x63530000 - 0x63568000 C:\WINDOWS\system32\uxtheme.dll
0x74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
0x63610000 - 0x63665000 C:\WINDOWS\system32\netapi32.dll
0x6d6c0000 - 0x6d6d3000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x6d6e0000 - 0x6d6e9000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\nio.dll
0x673d0000 - 0x67425000 C:\Documents and Settings\turkia\workspace2\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.osgi\bundles\561\1\.cp\swt-win32-3452.dll
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
0x771b0000 - 0x7727e000 C:\WINDOWS\system32\WININET.dll
0x67440000 - 0x67449000 C:\WINDOWS\system32\Normaliz.dll
0x67450000 - 0x67495000 C:\WINDOWS\system32\iertutil.dll
0x67730000 - 0x67744000 C:\Documents and Settings\turkia\workspace2\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.osgi\bundles\561\1\.cp\swt-gdip-win32-3452.dll
0x67750000 - 0x678f6000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.5512_x-ww_dfb54e0c\gdiplus.dll
0x74c80000 - 0x74cac000 C:\WINDOWS\system32\oleacc.dll
0x76080000 - 0x760e5000 C:\WINDOWS\system32\MSVCP60.dll
0x68040000 - 0x68305000 C:\WINDOWS\system32\xpsp2res.dll
0x76380000 - 0x76385000 C:\WINDOWS\system32\msimg32.dll
0x67b10000 - 0x67b1f000 C:\Documents and Settings\turkia\workspace2\.metadata\.plugins\org.eclipse.pde.core\New_configuration\org.eclipse.osgi\bundles\362\1\.cp\jWinHttp.dll
0x67b30000 - 0x67b89000 C:\WINDOWS\system32\WINHTTP.dll
0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
0x75cf0000 - 0x75d81000 C:\WINDOWS\system32\mlang.dll
0x70d00000 - 0x70d23000 C:\test\i686-win5.1-gcc_4.1.1_mingw-2-jdk_1.6.0_12-yac_1.2.5\bin\libyacapi.dll
0x6b840000 - 0x6bef9000 C:\test\i686-win5.1-gcc_4.1.1_mingw-2-jdk_1.6.0_12-yac_1.2.5\bin\libtlmdevice_ycp-3-0-0.dll
0x687f0000 - 0x68848000 C:\WINDOWS\system32\hnetcfg.dll
0x73080000 - 0x7309d000 C:\WINDOWS\system32\rsvpsp.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x6d5d0000 - 0x6d5f4000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\jsound.dll
0x6d600000 - 0x6d608000 C:\spg\ext_tools\jdk\i686-win5.1\jdk1.6.0_12\jre\bin\jsoundds.dll
0x73f10000 - 0x73f6c000 C:\WINDOWS\system32\DSOUND.dll
0x76c30000 - 0x76c5e000 C:\WINDOWS\system32\WINTRUST.dll
0x77a80000 - 0x77b15000 C:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
0x76c90000 - 0x76cb8000 C:\WINDOWS\system32\IMAGEHLP.dll
0x72d20000 - 0x72d29000 C:\WINDOWS\system32\wdmaud.drv
0x72d10000 - 0x72d18000 C:\WINDOWS\system32\msacm32.drv
0x77be0000 - 0x77bf5000 C:\WINDOWS\system32\MSACM32.dll
0x77bd0000 - 0x77bd7000 C:\WINDOWS\system32\midimap.dll
0x73ee0000 - 0x73ee4000 C:\WINDOWS\system32\KsUser.dll
VM Arguments:
jvm_args: -Xms512m -Xmx1g -XX:MaxPermSize=512m -Declipse.pde.launch=true -Dfile.encoding=Cp1252
java_command: org.eclipse.equinox.launcher.Main -launcher C:\STM\STWorkbenchR4.1.1\eclipse.exe -name Eclipse -showsplash 600 -product com.st.platform.st_ide -data C:\Documents and Settings\turkia\workspace2/../runtime-New_configuration -configuration file:C:/Documents and Settings/turkia/workspace2/.metadata/.plugins/org.eclipse.pde.core/New_configuration/ -dev file:C:/Documents and Settings/turkia/workspace2/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os win32 -ws win32 -arch x86 -nl en_US
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:/spg/ext_tools/jdk/i686-win5.1/jdk1.6.0_12/bin/../jre/bin/client;C:/spg/ext_tools/jdk/i686-win5.1/jdk1.6.0_12/bin/../jre/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
USERNAME=turkia
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 15 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2086444k(1045564k free), swap 4024844k(2273736k free)
vm_info: Java HotSpot(TM) Client VM (11.2-b01) for windows-x86 JRE (1.6.0_12-b04), built on Jan 17 2009 09:57:14 by "java_re" with MS VC++ 7.1
time: Thu Mar 03 11:07:22 2011
elapsed time: 334 seconds
libtlmdevice_ycp-3-0-0.dll is the library I am using
If you have any idea :)
Thanks in advance.
kind regards,
Ali.
The native code needs to attach to the jvm using AttachCurrentThread and use the JNIEnv pointer provided by this function. You cannot just use the first JNIEnv your c++ lib got its hands on.
Also, there's a good chance that the c++ lib isn't thread-safe, can't tell without seeing source.

Jpcap breaking the JVM

I have written the following program that is intended to dump all network device traffic to a file. I know the problem involves the use of JpcapWriter. Why am I getting the error message shown below?
import jpcap.*;
import jpcap.packet.*;
public class dumptraffic
{
private static final int maxPackets = 100;
public static void main(String args[])
{
try
{
NetworkInterface[] devices = JpcapCaptor.getDeviceList();
if (args.length != 1)
{
System.out.println("You must enter a device number.");
int i = 0;
for (NetworkInterface device : devices)
System.out.println((i++) + ": " + device.name);
return;
}
JpcapCaptor jpcap = JpcapCaptor.openDevice(devices[Integer.parseInt(args[0].trim())], 2000, false, 20);
JpcapWriter writer = JpcapWriter.openDumpFile(jpcap, "dump.pcap");
for (int i = 0; i < maxPackets; i++)
writer.writePacket(jpcap.getPacket());
writer.close();
System.out.println("Recorded packets to the file \"dump.pcap\"");
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
}
}
Here is the log that Java dumps:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0234659d, pid=4900, tid=5808
#
# JRE version: 6.0_22-b04
# Java VM: Java HotSpot(TM) Client VM (17.1-b03 mixed mode, sharing windows-x86 )
# Problematic frame:
# v ~BufferBlob::jni_fast_GetLongField
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x02211c00): JavaThread "main" [_thread_in_native, id=5808, stack(0x002f0000,0x00340000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x6da511e8, ECX=0x00000000, EDX=0x00000000
ESP=0x0033f578, EBP=0x0033f5b0, ESI=0x00000022, EDI=0x00000000
EIP=0x0234659d, EFLAGS=0x00010246
Top of Stack: (sp=0x0033f578)
0x0033f578: 02211d18 6d97567f 02211d18 00000000
0x0033f588: 00000022 00000000 02211d18 6da511e8
0x0033f598: 0033f58c 0033f19c 0033fd8c 6d9f4ed0
0x0033f5a8: 6da2a4b0 00000000 0033fc68 015d358c
0x0033f5b8: 02211d18 00000000 00000022 02211c00
0x0033f5c8: 380655e0 0033fc68 380655e0 0000005b
0x0033f5d8: 00000000 03000003 001521a8 77a94460
0x0033f5e8: 00000000 77a94460 00000000 001219b8
Instructions: (pc=0x0234659d)
0x0234658d: 00 00 00 8b c1 83 e0 01 8b 54 04 0c 8b 74 24 10
0x0234659d: 8b 12 c1 ee 02 8b 04 32 8b 54 32 04 be e0 16 a6
Stack: [0x002f0000,0x00340000], sp=0x0033f578, free space=13d0033f0ack
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
v ~BufferBlob::jni_fast_GetLongField
C [Jpcap.dll+0x358c]
j dumptraffic.main([Ljava/lang/String;)V+127
v ~StubRoutines::call_stub
V [jvm.dll+0xf3a9c]
V [jvm.dll+0x186591]
V [jvm.dll+0xf3b1d]
V [jvm.dll+0xfd365]
V [jvm.dll+0x104fbd]
C [java.exe+0x2155]
C [java.exe+0x85b4]
C [kernel32.dll+0x4d0e9]
C [ntdll.dll+0x419bb]
C [ntdll.dll+0x4198e]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j jpcap.JpcapWriter.writePacket(Ljpcap/packet/Packet;)V+0
j dumptraffic.main([Ljava/lang/String;)V+127
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x02245800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2888, stack(0x04550000,0x045a0000)]
0x0223e400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2620, stack(0x04500000,0x04550000)]
0x0223d400 JavaThread "Attach Listener" daemon [_thread_blocked, id=4060, stack(0x044b0000,0x04500000)]
0x0223a400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4280, stack(0x04460000,0x044b0000)]
0x02232000 JavaThread "Finalizer" daemon [_thread_blocked, id=5952, stack(0x04410000,0x04460000)]
0x02230c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=5860, stack(0x008c0000,0x00910000)]
=>0x02211c00 JavaThread "main" [_thread_in_native, id=5808, stack(0x002f0000,0x00340000)]
Other Threads:
0x0222f400 VMThread [stack: 0x003b0000,0x00400000] [id=4396]
0x0224f400 WatcherThread [stack: 0x045a0000,0x045f0000] [id=4156]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 371K [0x28050000, 0x285a0000, 0x2d5a0000)
eden space 4416K, 8% used [0x28050000, 0x280acf00, 0x284a0000)
from space 512K, 0% used [0x284a0000, 0x284a0000, 0x28520000)
to space 512K, 0% used [0x28520000, 0x28520000, 0x285a0000)
tenured generation total 10944K, used 0K [0x2d5a0000, 0x2e050000, 0x38050000)
the space 10944K, 0% used [0x2d5a0000, 0x2d5a0000, 0x2d5a0200, 0x2e050000)
compacting perm gen total 12288K, used 86K [0x38050000, 0x38c50000, 0x3c050000)
the space 12288K, 0% used [0x38050000, 0x38065868, 0x38065a00, 0x38c50000)
ro space 10240K, 51% used [0x3c050000, 0x3c57baf8, 0x3c57bc00, 0x3ca50000)
rw space 12288K, 54% used [0x3ca50000, 0x3d0e76d8, 0x3d0e7800, 0x3d650000)
Dynamic libraries:
0x00400000 - 0x00424000 C:\Windows\system32\java.exe
0x779d0000 - 0x77af7000 C:\Windows\system32\ntdll.dll
0x77700000 - 0x777dc000 C:\Windows\system32\kernel32.dll
0x761c0000 - 0x76286000 C:\Windows\system32\ADVAPI32.dll
0x76460000 - 0x76523000 C:\Windows\system32\RPCRT4.dll
0x10000000 - 0x10048000 C:\Windows\system32\guard32.dll
0x76950000 - 0x769ed000 C:\Windows\system32\USER32.dll
0x77be0000 - 0x77c2b000 C:\Windows\system32\GDI32.dll
0x75f00000 - 0x75f08000 C:\Windows\system32\VERSION.dll
0x77500000 - 0x775aa000 C:\Windows\system32\msvcrt.dll
0x77b60000 - 0x77b7e000 C:\Windows\system32\IMM32.DLL
0x76880000 - 0x76948000 C:\Windows\system32\MSCTF.dll
0x77b10000 - 0x77b19000 C:\Windows\system32\LPK.DLL
0x76290000 - 0x7630d000 C:\Windows\system32\USP10.dll
0x75ef0000 - 0x75ef7000 C:\Windows\system32\fltlib.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d7f0000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x74900000 - 0x74932000 C:\Windows\system32\WINMM.dll
0x775b0000 - 0x776f5000 C:\Windows\system32\ole32.dll
0x763d0000 - 0x7645d000 C:\Windows\system32\OLEAUT32.dll
0x748c0000 - 0x748fd000 C:\Windows\system32\OLEACC.dll
0x75ec0000 - 0x75eec000 C:\Windows\system32\apphelp.dll
0x6d7a0000 - 0x6d7ac000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d320000 - 0x6d33f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d280000 - 0x6d288000 C:\Program Files\Java\jre6\bin\hpi.dll
0x76070000 - 0x76077000 C:\Windows\system32\PSAPI.DLL
0x6d7e0000 - 0x6d7ef000 C:\Program Files\Java\jre6\bin\zip.dll
0x015d0000 - 0x015f8000 C:\Windows\System32\Jpcap.dll
0x763a0000 - 0x763cd000 C:\Windows\system32\WS2_32.dll
0x77b20000 - 0x77b26000 C:\Windows\system32\NSI.dll
0x045f0000 - 0x0463c000 C:\Windows\system32\wpcap.dll
0x00920000 - 0x00938000 C:\Windows\system32\packet.dll
0x75980000 - 0x75999000 C:\Windows\system32\iphlpapi.dll
0x75940000 - 0x75975000 C:\Windows\system32\dhcpcsvc.DLL
0x75e70000 - 0x75e9c000 C:\Windows\system32\DNSAPI.dll
0x75f10000 - 0x75f24000 C:\Windows\system32\Secur32.dll
0x75930000 - 0x75937000 C:\Windows\system32\WINNSI.DLL
0x75900000 - 0x75922000 C:\Windows\system32\dhcpcsvc6.DLL
0x6d600000 - 0x6d613000 C:\Program Files\Java\jre6\bin\net.dll
0x756f0000 - 0x7572b000 C:\Windows\system32\mswsock.dll
0x756e0000 - 0x756e5000 C:\Windows\System32\wship6.dll
VM Arguments:
java_command: dumptraffic 1
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Ruby192\bin;C:\Program Files\Java\jdk1.6.0_20\bin
USERNAME=Donald Taylor
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6002 Service Pack 2
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2094396k(1168912k free), swap 4458364k(3080400k free)
vm_info: Java HotSpot(TM) Client VM (17.1-b03) for windows-x86 JRE (1.6.0_22-b04), built on Sep 15 2010 00:56:36 by "java_re" with MS VC++ 7.1 (VS2003)
time: Mon Nov 08 19:50:43 2010
elapsed time: 0 seconds
I have no solution to your problem, but you might find one on the jpcap discussion board on Google Groups.
Scanning through the messages (keywords "jvm crash") I noted one saying that the problem turned out to be calling a method with the wrong parameters. So you might try double-checking that your code is using the API correctly.
I would not report this to Sun / Oracle. The evidence in the crash dump points to an error in the way that something is using JNI.
Are you running it as root or m$ equivalent? Collecting packets on a network interface promiscuously requires some additional privileges from the OS.
The key line is:
# The crash happened outside the Java Virtual Machine in native code.
That is, the jpcap library uses native code, and the native code segfaulted. This is therefore a bug in the jpcap library, not in the JVM. From the documentation on Github:
Internally, jpcap implements bindings to the libpcap system library
through JNI (the Java Native Interface).
Now, if you want, you could try to debug the segfault by running the whole thing in GDB.
However. Noting
jpcap utilizes libpcap, a widely deployed shared-library for capturing
user-level packets. libpcap must be installed on your system in order
to use jpcap.
in the docs, and considering the fact that a common cause of segfaults is a missing shared library, I suspect that you don't have the pcap library installed on your system.
use this statement inside your for loop
if(captor.getPacket()==null || captor.getPacket()==Packet.EOF) break;

Does JNI differ in JRE 1.4 and JRE 1.6 ? Our lib now crashes

I'm responsible for maintaining a java swing application. It used to run quite fine with java 1.4, but with the time we encountered more and more crashes of the JRE that made us upgrade to the JRE 1.6, which at least is still maintained by Sun.
With the JRE 1.6 we now encounter a different kind of problem, in the part displaying ECW image files thanks to JNI and the native dlls NCSEcw.dll, NCSUtil.dll and NCScnet.dll (which are produced by ERDAS and can be found here : http://www.erdas.com/Products/ERDASDownloads/tabid/192/CurrentID/2560/Default.aspx ).
Most of the time the problem is a freeze (probably a deadlock) but one or two times we had real crashes of the JRE, with the hs_err_pid message I copied below. It does not appear on all machines, and is not systematic on the concerned machines (though very frequent). Most of the concerned machines seem to be running Windows 2000 SP4, but it appeared also on some XP machines and I can't find the criterion which differentiates them.
Is there a difference in the way JNI calls the library that make it work with 1.4 and not with 1.6 ? I'm a bit lost, thanks for any clue.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x5ffa1049, pid=2196, tid=2244
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode windows-x86 )
# Problematic frame:
# C [NCSEcw.dll+0x1049]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x33893800): JavaThread "Pool-1" [_thread_in_native, id=2244, stack(0x36580000,0x36680000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x38e681d0, ECX=0x3460ff88, EDX=0x0000019c
ESP=0x3667f6e0, EBP=0x00000000, ESI=0x00000004, EDI=0x00000000
EIP=0x5ffa1049, EFLAGS=0x00010206
Top of Stack: (sp=0x3667f6e0)
0x3667f6e0: 00000010 3460ffa0 3895e5a8 38e68248
0x3667f6f0: 00000000 40000000 00000004 00000001
0x3667f700: 00000000 5ffa109f 3460fea8 34600005
0x3667f710: 000005ea 3460ffa0 00000010 38e68ec8
0x3667f720: 3865dd98 38e682c0 00000001 38e68338
0x3667f730: 00000007 3a416e6c 3895feac 5ffa109f
0x3667f740: 3460fea8 34600006 00000bb5 38e68ec8
0x3667f750: 00000010 3895ffd0 3a415568 38e68338
Instructions: (pc=0x5ffa1049)
0x5ffa1039: ff 8b c7 be 04 00 00 00 8b 4b 04 8b 6b 08 03 c8
0x5ffa1049: 8b 2c 28 83 c0 04 8b 11 89 29 8b 4b 08 4e 89 54
Stack: [0x36580000,0x36680000], sp=0x3667f6e0, free space=3fd3667f23ck
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [NCSEcw.dll+0x1049]
[error occurred during error reporting (printing native stack), id 0xc0000005]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.ermapper.ecw.JNCSFile.ECWReadImageRGBA([III)I+0
j com.ermapper.ecw.JNCSFile.readImageRGBA([III)I+4
j com.ermapper.ecw.JNCSRenderer.ecwReadImage(IIDDDD)Z+98
j com.ermapper.ecw.JNCSRenderer.drawImage(Ljava/awt/Graphics;IIIIDDDDLjava/awt/image/ImageObserver;)V+39
j com.esrifrance.moje.ecw.ECWLayer.drawAvecRenderer(Lcom/esri/mo2/map/dpy/DisplayArea;)V+286
j com.esrifrance.moje.ecw.ECWLayer.drawWithinScale(Lcom/esri/mo2/map/dpy/DisplayArea;I)V+63
j com.esri.mo2.map.dpy.BaseLayer.draw(Lcom/esri/mo2/map/dpy/DisplayArea;I)V+16
j com.esri.mo2.map.dpy.BaseDisplayManager$d_.a(Lcom/esri/mo2/map/dpy/Layer;)V+18
j com.esri.mo2.map.dpy.BaseDisplayManager$d_$a_.visiting(Lcom/esri/mo2/map/dpy/Layer;)Z+5
J com.esri.mo2.map.dpy.BaseGroupLayer.a(Lcom/esri/mo2/map/dpy/LayerVisitor;ZI)V
J com.esri.mo2.map.dpy.BaseGroupLayer.a(Lcom/esri/mo2/map/dpy/LayerVisitor;)V
j com.esri.mo2.map.dpy.BaseGroupLayer.traverse(Lcom/esri/mo2/map/dpy/LayerVisitor;Z)V+37
j com.esri.mo2.map.dpy.BaseDisplayManager$d_.m()V+15
j com.esri.mo2.map.dpy.BaseDisplayManager$d_.run()V+49
j com.esri.mo2.sys.tp.ThreadPool$a_.run()V+39
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x33855c00 JavaThread "RetrieveThread-31" [_thread_in_native, id=2236, stack(0x3c880000,0x3c980000)]
0x34788400 JavaThread "Thread-17" [_thread_in_native, id=2120, stack(0x3b2a0000,0x3b3a0000)]
0x34723c00 JavaThread "Image Animator 0" daemon [_thread_blocked, id=960, stack(0x3b1a0000,0x3b2a0000)]
0x33892400 JavaThread "Timer-0" [_thread_blocked, id=1664, stack(0x38660000,0x38760000)]
0x34796400 JavaThread "Swing-Shell" daemon [_thread_blocked, id=2500, stack(0x36990000,0x36a90000)]
0x33894800 JavaThread "Pool-2" [_thread_blocked, id=2440, stack(0x36680000,0x36780000)]
=>0x33893800 JavaThread "Pool-1" [_thread_in_native, id=2244, stack(0x36580000,0x36680000)]
0x342b5400 JavaThread "Pool-0" [_thread_blocked, id=612, stack(0x36480000,0x36580000)]
0x34859400 JavaThread "Thread-6" daemon [_thread_in_native, id=2044, stack(0x36380000,0x36480000)]
0x342e9800 JavaThread "DispatcherThread-4" [_thread_blocked, id=2232, stack(0x35680000,0x35780000)]
0x346e5c00 JavaThread "TimerQueue" daemon [_thread_blocked, id=2004, stack(0x34c50000,0x34d50000)]
0x346c5800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=792, stack(0x34b50000,0x34c50000)]
0x34208000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2452, stack(0x344f0000,0x345f0000)]
0x34230400 JavaThread "AWT-Shutdown" [_thread_blocked, id=744, stack(0x343f0000,0x344f0000)]
0x34195800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2180, stack(0x342f0000,0x343f0000)]
0x33881000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2420, stack(0x33ef0000,0x33ff0000)]
0x3387b400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2292, stack(0x33df0000,0x33ef0000)]
0x33879c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2020, stack(0x33cf0000,0x33df0000)]
0x33878400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1404, stack(0x33bf0000,0x33cf0000)]
0x33868400 JavaThread "Finalizer" daemon [_thread_blocked, id=2436, stack(0x33af0000,0x33bf0000)]
0x33863800 JavaThread "Reference Handler" daemon [_thread_blocked, id=2404, stack(0x339f0000,0x33af0000)]
0x00877400 JavaThread "main" [_thread_blocked, id=2280, stack(0x00030000,0x00130000)]
Other Threads:
0x33860c00 VMThread [stack: 0x338f0000,0x339f0000] [id=2364]
0x3388c000 WatcherThread [stack: 0x33ff0000,0x340f0000] [id=2384]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 53248K, used 13986K [0x02940000, 0x06300000, 0x117e0000)
eden space 47360K, 29% used [0x02940000, 0x036e8818, 0x05780000)
from space 5888K, 0% used [0x05780000, 0x05780000, 0x05d40000)
to space 5888K, 0% used [0x05d40000, 0x05d40000, 0x06300000)
tenured generation total 118120K, used 70871K [0x117e0000, 0x18b3a000, 0x2f540000)
the space 118120K, 59% used [0x117e0000, 0x15d15df0, 0x15d15e00, 0x18b3a000)
compacting perm gen total 29696K, used 29522K [0x2f540000, 0x31240000, 0x33540000)
the space 29696K, 99% used [0x2f540000, 0x31214ac8, 0x31214c00, 0x31240000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00455000 C:\Program Files\Sipa2010\Sipa.exe
0x78460000 - 0x784e1000 C:\WINNT\system32\ntdll.dll
0x78ed0000 - 0x78f32000 C:\WINNT\system32\ADVAPI32.dll
0x77e70000 - 0x77f34000 C:\WINNT\system32\KERNEL32.DLL
0x770c0000 - 0x77131000 C:\WINNT\system32\RPCRT4.DLL
0x77e00000 - 0x77e65000 C:\WINNT\system32\USER32.dll
0x77f40000 - 0x77f7c000 C:\WINNT\system32\GDI32.DLL
0x77810000 - 0x77817000 C:\WINNT\system32\VERSION.dll
0x75950000 - 0x75956000 C:\WINNT\system32\LZ32.DLL
0x6d8b0000 - 0x6db47000 c:\program files\sipa2010\jre\bin\client\jvm.dll
0x77540000 - 0x77571000 C:\WINNT\system32\WINMM.dll
0x7c340000 - 0x7c396000 C:\WINNT\system32\MSVCR71.dll
0x6d860000 - 0x6d86c000 c:\program files\sipa2010\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 c:\program files\sipa2010\jre\bin\java.dll
0x6d340000 - 0x6d348000 c:\program files\sipa2010\jre\bin\hpi.dll
0x68ea0000 - 0x68eab000 C:\WINNT\system32\PSAPI.DLL
0x6d8a0000 - 0x6d8af000 c:\program files\sipa2010\jre\bin\zip.dll
0x6d0b0000 - 0x6d1fa000 C:\Program Files\Sipa2010\jre\bin\awt.dll
0x777f0000 - 0x7780e000 C:\WINNT\system32\WINSPOOL.DRV
0x793c0000 - 0x793d1000 C:\WINNT\system32\MPR.DLL
0x75e00000 - 0x75e1a000 C:\WINNT\system32\IMM32.dll
0x77a40000 - 0x77b37000 C:\WINNT\system32\ole32.dll
0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.dll
0x6e350000 - 0x6e356000 C:\WINNT\system32\INDICDLL.dll
0x77580000 - 0x777cf000 C:\WINNT\system32\shell32.dll
0x77290000 - 0x772f6000 C:\WINNT\system32\SHLWAPI.DLL
0x78000000 - 0x78045000 C:\WINNT\system32\msvcrt.dll
0x6d2e0000 - 0x6d334000 C:\Program Files\Sipa2010\jre\bin\fontmanager.dll
0x6d6c0000 - 0x6d6d3000 C:\Program Files\Sipa2010\jre\bin\net.dll
0x74fb0000 - 0x74fc4000 C:\WINNT\system32\WS2_32.dll
0x74fa0000 - 0x74fa8000 C:\WINNT\system32\WS2HELP.DLL
0x6d6e0000 - 0x6d6e9000 C:\Program Files\Sipa2010\jre\bin\nio.dll
0x77830000 - 0x7783c000 C:\WINNT\System32\rnr20.dll
0x77970000 - 0x77994000 C:\WINNT\system32\DNSAPI.DLL
0x74fd0000 - 0x74fd9000 C:\WINNT\system32\WSOCK32.DLL
0x77310000 - 0x77323000 C:\WINNT\system32\iphlpapi.dll
0x774f0000 - 0x774f5000 C:\WINNT\system32\ICMP.DLL
0x34da0000 - 0x34db7000 C:\WINNT\system32\MPRAPI.DLL
0x750d0000 - 0x750df000 C:\WINNT\system32\SAMLIB.DLL
0x7ccc0000 - 0x7cd10000 C:\WINNT\system32\NETAPI32.DLL
0x78fb0000 - 0x78fbf000 C:\WINNT\system32\Secur32.dll
0x77be0000 - 0x77bf1000 C:\WINNT\system32\NTDSAPI.dll
0x77940000 - 0x7796b000 C:\WINNT\system32\WLDAP32.DLL
0x75140000 - 0x75146000 C:\WINNT\system32\NETRAP.dll
0x779a0000 - 0x77a3b000 C:\WINNT\system32\OLEAUT32.DLL
0x77380000 - 0x773b0000 C:\WINNT\system32\ACTIVEDS.DLL
0x77350000 - 0x77373000 C:\WINNT\system32\ADSLDPC.DLL
0x77820000 - 0x7782e000 C:\WINNT\system32\RTUTILS.DLL
0x783c0000 - 0x78451000 C:\WINNT\system32\SETUPAPI.DLL
0x78d20000 - 0x78d83000 C:\WINNT\system32\USERENV.DLL
0x774b0000 - 0x774e3000 C:\WINNT\system32\RASAPI32.DLL
0x77490000 - 0x774a1000 C:\WINNT\system32\RASMAN.DLL
0x77500000 - 0x77522000 C:\WINNT\system32\TAPI32.DLL
0x77330000 - 0x77349000 C:\WINNT\system32\DHCPCSVC.DLL
0x777d0000 - 0x777d8000 C:\WINNT\System32\winrnr.dll
0x66210000 - 0x66219000 C:\WINNT\system32\netware\NWWS2NDS.DLL
0x50d50000 - 0x50d98000 C:\WINNT\system32\NETWIN32.DLL
0x50d00000 - 0x50d15000 C:\WINNT\system32\CLNWIN32.DLL
0x50df0000 - 0x50e10000 C:\WINNT\system32\LOCWIN32.DLL
0x50db0000 - 0x50ddc000 C:\WINNT\system32\NCPWIN32.dll
0x66220000 - 0x6622c000 C:\WINNT\system32\netware\NWWS2SLP.DLL
0x66250000 - 0x66257000 C:\WINNT\system32\NWSRVLOC.dll
0x74f50000 - 0x74f6e000 C:\WINNT\system32\msafd.dll
0x74f90000 - 0x74f97000 C:\WINNT\System32\wshtcpip.dll
0x777e0000 - 0x777e5000 C:\WINNT\system32\rasadhlp.dll
0x6d250000 - 0x6d273000 C:\Program Files\Sipa2010\jre\bin\dcpr.dll
0x7ca00000 - 0x7ca23000 C:\WINNT\system32\rsaenh.dll
0x77410000 - 0x77489000 C:\WINNT\system32\CRYPT32.dll
0x77400000 - 0x77410000 C:\WINNT\system32\MSASN1.DLL
0x72c60000 - 0x72ce6000 C:\WINNT\system32\CLBCATQ.DLL
0x77840000 - 0x77880000 C:\WINNT\system32\cscui.dll
0x77090000 - 0x770b3000 C:\WINNT\system32\CSCDLL.DLL
0x76dc0000 - 0x76dd2000 C:\WINNT\system32\mydocs.dll
0x36cf0000 - 0x36e3a000 C:\WINNT\system32\SHDOCVW.DLL
0x71e40000 - 0x71e8d000 C:\WINNT\system32\docprop2.dll
0x6a6f0000 - 0x6a710000 C:\WINNT\system32\MSVFW32.DLL
0x747f0000 - 0x74806000 C:\WINNT\system32\AVIFIL32.DLL
0x773e0000 - 0x773f3000 C:\WINNT\system32\MSACM32.dll
0x6ff60000 - 0x6ff65000 C:\WINNT\system32\faxshell.dll
0x37250000 - 0x372ab000 C:\Program Files\Fichiers communs\Adobe\Acrobat\ActiveX\PDFShell.dll
0x78130000 - 0x781cb000 C:\WINNT\system32\MSVCR80.dll
0x750e0000 - 0x750ec000 C:\WINNT\System32\ntlanman.dll
0x75190000 - 0x751a5000 C:\WINNT\System32\NETUI0.DLL
0x75150000 - 0x75188000 C:\WINNT\System32\NETUI1.DLL
0x58200000 - 0x582d1000 C:\WINNT\system32\NOVNPNT.DLL
0x50d20000 - 0x50d4d000 C:\WINNT\system32\CALWIN32.DLL
0x50da0000 - 0x50dab000 C:\WINNT\system32\CLXWIN32.DLL
0x58300000 - 0x5833b000 C:\WINNT\system32\MAPBASE.dll
0x58380000 - 0x583be000 C:\WINNT\system32\NWSHLXNT.dll
0x6a400000 - 0x6a41c000 C:\WINNT\system32\NLS\FRANCAIS\MAPBASER.DLL
0x37500000 - 0x3751d000 C:\WINNT\system32\NLS\FRANCAIS\NWSHLXNR.DLL
0x37520000 - 0x37596000 C:\WINNT\system32\NLS\FRANCAIS\NOVNPNTR.DLL
0x375a0000 - 0x376a2000 C:\Program Files\Sipa2010\jre\bin\esri_jni_mrsid.dll
0x377c0000 - 0x37ac1000 C:\Program Files\Sipa2010\jre\bin\mlib_jai.dll
0x5ff80000 - 0x5ff98000 C:\Program Files\Sipa2010\jre\bin\NCSUtil.dll
0x77910000 - 0x77933000 C:\WINNT\system32\IMAGEHLP.dll
0x5ffd0000 - 0x5ffe4000 C:\Program Files\Sipa2010\jre\bin\NCScnet.dll
0x5ffa0000 - 0x5ffcc000 C:\Program Files\Sipa2010\jre\bin\NCSEcw.dll
0x69a00000 - 0x69a1d000 C:\WINNT\system32\NTMARTA.DLL
0x6d500000 - 0x6d524000 C:\Program Files\Sipa2010\jre\bin\jpeg.dll
VM Arguments:
jvm_args: -Xms150000000 -Xmx750000000
java_command:
Launcher Type: generic
Environment Variables:
CLASSPATH=C:\Program Files\Sipa2010\impression.jar;C:\Program Files\Sipa2010\lib\moje21\jsde90_sdkres.jar;C:\Program Files\Sipa2010\lib\fop\xml-apis.jar;C:\Program Files\Sipa2010\SIPA.jar;C:\Program Files\Sipa2010\lib\fop\fop.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21img.jar;C:\Program Files\Sipa2010\lib\log4j-1.2.7.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21rpf.jar;C:\Program Files\Sipa2010\lib\moje21\mlibwrapper_jai.jar;C:\Program Files\Sipa2010\lib\fop\xercesImpl-2.2.1.jar;C:\Program Files\Sipa2010\lib\MDateSelector.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21.jar;C:\Program Files\Sipa2010\lib\moje21\jsde90_sdk.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21res.jar;C:\Program Files\Sipa2010\lib\moje21\esri_xmlkit.jar;C:\Program Files\Sipa2010\lib\moje21\jai_codec.jar;C:\Program Files\Sipa2010\lib\moje21\jai_core.jar;C:\Program Files\Sipa2010\lib\moje21\jpe90_sdk.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21vpf.jar;C:\Program Files\Sipa2010\lib\fop\avalon-framework-cvs-20020806.jar;C:\Program Files\Sipa2010\lib\fop\batik.jar;C:\Program Files\Sipa2010\lib\classes12.jar;C:\Program Files\Sipa2010\lib\moje21\esri_mo21cad.jar;C:\Program Files\Sipa2010\lib\pdfbox-sword.jar;C:\Program Files\Sipa2010\lax.jar;C:\Program Files\Sipa2010\ecwermapperjni.jar;
PATH=C:\oracle\ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WINNT\system32\nls;C:\WINNT\system32\nls\FRANCAIS;C:\Program Files\Novell\ZENworks
USERNAME=David
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 2000 Build 2195 Service Pack 4
CPU:total 2 (1 cores per cpu, 2 threads per core) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
Memory: 4k page, physical 1047020k(341768k free), swap 1719680k(1051752k free)
vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)
time: Fri Jun 18 10:33:04 2010
elapsed time: 59 seconds
Jon has a hint that could explain your JNI problems after changing the JRE. Recompilation of the native libraries would be a solution, according to his answer.

Categories