Login  Register

JOGL Application crashes on Windows 7 but runs fine in Eclipse

Posted by Sandhase on Dec 20, 2011; 7:57am
URL: https://forum.jogamp.org/JOGL-Application-crashes-on-Windows-7-but-runs-fine-in-Eclipse-tp3600585.html

Hello,

at first, my system:
Windows 7 64bit (enterprise)
Nvidia quadra graphics card (driver: 285.62)
Java 1.6 Update 29 (64 and 32bit versions installed)

I'm using a pretty old version of Jogl 2.0. The file creation date in the jar's is the 28.10.2009. Unfortunately a change to a newer version of jogl is one of the last possibilites to solve this problem due to many changes in the source code which must be done. Same is the change to Java 1.7 Update 1.

The application works pretty fine under Windows XP x64. In Eclipse and as a deployed application all works fine. libraries are found and the opengl part of the application works.

Now I tested on a windows 7 pc and unfortunately it does not work as well. In my Eclipse environment on windows 7 I can start the application and everything is fine. opengl works.
Now I use the same deployement, as for windows xp, and the application crashes the moment i open an open gl window.
I start the application with administration rights so the libraries are found and loaded. This happens for the 32 and 64bit version of my application (correct jogl natives are used)

I get a broad variety of errors:
1: Application crashes. Error report says the problematic frame is some memory address
2: Application crashes. Windows "Application stopped working" dialog raises, saying the crashing module is OPENGL32.DLL

For the first error I post an example error report.

My arguments for the VM are:
-Dsun.java2d.noddraw=true
-Dsun.java2d.d3d=false
-Dsun.java2d.ddoffscreen=false
-Dsun.java2d.gdiblit=false

Now the funny thing: Sometimes it works out of nowhere. Starting the application 2 minutes later with same arguments it crashes again.
Reproducing I can get the deployed version to run the opengl part when i started my application in eclipse and used opengl in it in s short period of time before starting the deployed version.

Any idea what can cause this behaviour?
BR
sandhase

Error Report
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007feeed78990, pid=4272, tid=500
#
# JRE version: 6.0_29-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.4-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  0x000007feeed78990
#
# 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 (0x0000000007d6a800):  JavaThread "AWT-EventQueue-0" [_thread_in_native, id=500, stack(0x0000000009a60000,0x0000000009b60000)]

siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x000007feeed78990

Registers:
RAX=0x0000000000659e80, RBX=0x0000000000000000, RCX=0x0000000043010e97, RDX=0x0000000000000000
RSP=0x0000000009b5e408, RBP=0x0000000000008261, RSI=0x0000000000000000, RDI=0x0000000000000003
R8 =0x0000000000000000, R9 =0x0000000000000000, R10=0x0000000000000001, R11=0x0000000000000000
R12=0x0000000000000000, R13=0x0000000000000000, R14=0x0000000000000000, R15=0x0000000000000000
RIP=0x000007feeed78990, EFLAGS=0x0000000000010206

Top of Stack: (sp=0x0000000009b5e408)
0x0000000009b5e408:   000000005baa7363 0000000000000000
0x0000000009b5e418:   00000000bc020000 0000000009b5e330
0x0000000009b5e428:   0000000000000000 0000000000000000
0x0000000009b5e438:   0000000002a00620 0000000000000400
0x0000000009b5e448:   0000000009b5e458 0000000007bfdf08
0x0000000009b5e458:   0000000000000000 0000000009b5e5f8
0x0000000009b5e468:   0000000000000000 0000000000000000
0x0000000009b5e478:   0000000007bfdf00 0000000000000004
0x0000000009b5e488:   0000000000000000 0000000000008261
0x0000000009b5e498:   0000000009b5e638 0000000007d6a800
0x0000000009b5e4a8:   0000000009b5e638 00000000bc4d7210
0x0000000009b5e4b8:   0000000000000000 00000000029b59c9
0x0000000009b5e4c8:   00000000bbdd9ea8 0000000009b5e5d8
0x0000000009b5e4d8:   0000000006118bc1 0000000043010e97
0x0000000009b5e4e8:   00000000bc4d7210 00000000bbdd9ea8
0x0000000009b5e4f8:   0000000009b5e430 00000000ed275d80

Instructions: (pc=0x000007feeed78990)
0x000007feeed78970:  
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]

Register to memory mapping:

RAX=0x0000000000659e80 is an unknown value
RBX=0x0000000000000000 is an unknown value
RCX=0x0000000043010e97 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x0000000009b5e408 is pointing into the stack for thread: 0x0000000007d6a800
RBP=0x0000000000008261 is an unknown value
RSI=0x0000000000000000 is an unknown value
RDI=0x0000000000000003 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000000000000 is an unknown value
R10=0x0000000000000001 is an unknown value
R11=0x0000000000000000 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x0000000000000000 is an unknown value
R14=0x0000000000000000 is an unknown value
R15=0x0000000000000000 is an unknown value


Stack: [0x0000000009a60000,0x0000000009b60000],  sp=0x0000000009b5e408,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x000007feeed78990

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.sun.opengl.impl.windows.wgl.WGLExtImpl.dispatch_wglCreateContextAttribsARB1(JJLjava/lang/Object;IJ)J+0
j  com.sun.opengl.impl.windows.wgl.WGLExtImpl.wglCreateContextAttribsARB(JJ[II)J+97
j  com.sun.opengl.impl.windows.wgl.WindowsWGLContext.create()V+655
j  com.sun.opengl.impl.windows.wgl.WindowsWGLContext.makeCurrentImpl()I+45
j  com.sun.opengl.impl.windows.wgl.WindowsOnscreenWGLContext.makeCurrentImpl()I+53
j  com.sun.opengl.impl.GLContextImpl.makeCurrent()I+56
j  com.sun.opengl.impl.GLDrawableHelper.invokeGL(Ljavax/media/opengl/GLDrawable;Ljavax/media/opengl/GLContext;Ljava/lang/Runnable;Ljava/lang/Runnable;)V+89
j  javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run()V+35
j  java.awt.event.InvocationEvent.dispatch()V+11
j  java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+21
j  java.awt.EventQueue.access$000(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
j  java.awt.EventQueue$1.run()Ljava/lang/Void;+12
j  java.awt.EventQueue$1.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0000000007cc2800 JavaThread "Timer-0" [_thread_blocked, id=4760, stack(0x0000000006160000,0x0000000006260000)]
  0x000000000b5a5800 JavaThread "TimerQueue" daemon [_thread_blocked, id=1980, stack(0x0000000002440000,0x0000000002540000)]
  0x00000000001f5800 JavaThread "DestroyJavaVM" [_thread_blocked, id=4592, stack(0x00000000026a0000,0x00000000027a0000)]
  0x0000000007ec5000 JavaThread "Image Fetcher 1" daemon [_thread_blocked, id=4472, stack(0x000000000a460000,0x000000000a560000)]
  0x0000000006e5a000 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=4720, stack(0x0000000009b60000,0x0000000009c60000)]
=>0x0000000007d6a800 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=500, stack(0x0000000009a60000,0x0000000009b60000)]
  0x0000000007ccd800 JavaThread "AWT-Shutdown" [_thread_blocked, id=1216, stack(0x00000000080e0000,0x00000000081e0000)]
  0x0000000006e82800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1792, stack(0x00000000081e0000,0x00000000082e0000)]
  0x0000000007beb800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=616, stack(0x0000000007fe0000,0x00000000080e0000)]
  0x0000000006cdc000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=660, stack(0x0000000007290000,0x0000000007390000)]
  0x0000000006cd9000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=4048, stack(0x0000000007190000,0x0000000007290000)]
  0x00000000002c7000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=2568, stack(0x0000000007090000,0x0000000007190000)]
  0x00000000002c5800 JavaThread "Attach Listener" daemon [_thread_blocked, id=3104, stack(0x0000000006f90000,0x0000000007090000)]
  0x00000000002c4800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1080, stack(0x0000000006e90000,0x0000000006f90000)]
  0x00000000002b3000 JavaThread "Finalizer" daemon [_thread_blocked, id=1208, stack(0x0000000006b90000,0x0000000006c90000)]
  0x00000000002aa000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2448, stack(0x0000000006a90000,0x0000000006b90000)]

Other Threads:
  0x00000000002a3800 VMThread [stack: 0x0000000006990000,0x0000000006a90000] [id=3084]
  0x0000000006ce8800 WatcherThread [stack: 0x0000000007390000,0x0000000007490000] [id=4932]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 152896K, used 42356K [0x00000000eaab0000, 0x00000000f5550000, 0x0000000100000000)
  eden space 131072K, 32% used [0x00000000eaab0000,0x00000000ed40d0b0,0x00000000f2ab0000)
  from space 21824K, 0% used [0x00000000f4000000,0x00000000f4000000,0x00000000f5550000)
  to   space 21824K, 0% used [0x00000000f2ab0000,0x00000000f2ab0000,0x00000000f4000000)
 PSOldGen        total 349568K, used 0K [0x00000000c0000000, 0x00000000d5560000, 0x00000000eaab0000)
  object space 349568K, 0% used [0x00000000c0000000,0x00000000c0000000,0x00000000d5560000)
 PSPermGen       total 23552K, used 23453K [0x00000000bae00000, 0x00000000bc500000, 0x00000000c0000000)
  object space 23552K, 99% used [0x00000000bae00000,0x00000000bc4e75c8,0x00000000bc500000)

Code Cache  [0x00000000029b0000, 0x0000000002c20000, 0x00000000059b0000)
 total_blobs=620 nmethods=52 adapters=521 free_code_cache=49585728 largest_free_block=4160

Dynamic libraries:
0x0000000000400000 - 0x000000000042e000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\java.exe
0x0000000077950000 - 0x0000000077af9000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000077730000 - 0x000000007784f000 C:\Windows\system32\kernel32.dll
0x000007fefdb60000 - 0x000007fefdbcc000 C:\Windows\system32\KERNELBASE.dll
0x000007fefe470000 - 0x000007fefe54b000 C:\Windows\system32\ADVAPI32.dll
0x000007fefec70000 - 0x000007fefed0f000 C:\Windows\system32\msvcrt.dll
0x000007fefe550000 - 0x000007fefe56f000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefe0e0000 - 0x000007fefe20d000 C:\Windows\system32\RPCRT4.dll
0x000000006d890000 - 0x000000006e048000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\server\jvm.dll
0x0000000077850000 - 0x000000007794a000 C:\Windows\system32\USER32.dll
0x000007feffbd0000 - 0x000007feffc37000 C:\Windows\system32\GDI32.dll
0x000007fefe210000 - 0x000007fefe21e000 C:\Windows\system32\LPK.dll
0x000007fefe010000 - 0x000007fefe0d9000 C:\Windows\system32\USP10.dll
0x000007fefa8a0000 - 0x000007fefa8db000 C:\Windows\system32\WINMM.dll
0x000007fefdf80000 - 0x000007fefdfae000 C:\Windows\system32\IMM32.DLL
0x000007fefdc70000 - 0x000007fefdd79000 C:\Windows\system32\MSCTF.dll
0x000000006d750000 - 0x000000006d77a000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\splashscreen.dll
0x000007fefc450000 - 0x000007fefc4a6000 C:\Windows\system32\uxtheme.dll
0x000000006d800000 - 0x000000006d80e000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\verify.dll
0x000000006d450000 - 0x000000006d477000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\java.dll
0x000000006d850000 - 0x000000006d862000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\zip.dll
0x000007fefea60000 - 0x000007fefec63000 C:\Windows\system32\ole32.dll
0x000007fefd7d0000 - 0x000007fefd7df000 C:\Windows\system32\CRYPTBASE.dll
0x000007fefe220000 - 0x000007fefe2b9000 C:\Windows\system32\CLBCatQ.DLL
0x000007fefed10000 - 0x000007fefede7000 C:\Windows\system32\OLEAUT32.dll
0x000000006d0a0000 - 0x000000006d263000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\awt.dll
0x000007fef8390000 - 0x000007fef8401000 C:\Windows\system32\WINSPOOL.DRV
0x000007fefedf0000 - 0x000007feffb78000 C:\Windows\system32\SHELL32.dll
0x000007fefe2c0000 - 0x000007fefe331000 C:\Windows\system32\SHLWAPI.dll
0x000007fefc4b0000 - 0x000007fefc6a4000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefbef0000 - 0x000007fefbf08000 C:\Windows\system32\DWMAPI.DLL
0x000000006d340000 - 0x000000006d3a6000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\fontmanager.dll
0x000000006d6a0000 - 0x000000006d6b7000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\net.dll
0x000007feffb80000 - 0x000007feffbcd000 C:\Windows\system32\WS2_32.dll
0x000007fefe570000 - 0x000007fefe578000 C:\Windows\system32\NSI.dll
0x000007fefd0d0000 - 0x000007fefd125000 C:\Windows\system32\mswsock.dll
0x000007fefd0c0000 - 0x000007fefd0c7000 C:\Windows\System32\wship6.dll
0x000007fefa990000 - 0x000007fefa9a5000 C:\Windows\system32\NLAapi.dll
0x000007fef9280000 - 0x000007fef9295000 C:\Windows\system32\napinsp.dll
0x000007fef92a0000 - 0x000007fef92b9000 C:\Windows\system32\pnrpnsp.dll
0x000007fefcf50000 - 0x000007fefcfab000 C:\Windows\system32\DNSAPI.dll
0x000007fef8650000 - 0x000007fef865b000 C:\Windows\System32\winrnr.dll
0x000007fef8640000 - 0x000007fef8650000 C:\Windows\system32\wshbth.dll
0x000007fefcac0000 - 0x000007fefcac7000 C:\Windows\System32\wshtcpip.dll
0x000007fefa3c0000 - 0x000007fefa3e7000 C:\Windows\system32\IPHLPAPI.DLL
0x000007fefa3b0000 - 0x000007fefa3bb000 C:\Windows\system32\WINNSI.DLL
0x000007fef9700000 - 0x000007fef9708000 C:\Windows\system32\rasadhlp.dll
0x000007fefa140000 - 0x000007fefa193000 C:\Windows\System32\fwpuclnt.dll
0x000007feef610000 - 0x000007feef701000 C:\Windows\system32\DDRAW.dll
0x000007fef76b0000 - 0x000007fef76b8000 C:\Windows\system32\DCIMAN32.dll
0x000007fefe580000 - 0x000007fefe757000 C:\Windows\system32\SETUPAPI.dll
0x000007fefd990000 - 0x000007fefd9c6000 C:\Windows\system32\CFGMGR32.dll
0x000007fefdb40000 - 0x000007fefdb5a000 C:\Windows\system32\DEVOBJ.dll
0x000000005b220000 - 0x000000005c9e9000 C:\Windows\system32\nvoglv64.DLL
0x000007fefcab0000 - 0x000007fefcabc000 C:\Windows\system32\VERSION.dll
0x000007fefd950000 - 0x000007fefd98a000 C:\Windows\system32\WINTRUST.dll
0x000007fefd9d0000 - 0x000007fefdb37000 C:\Windows\system32\CRYPT32.dll
0x000007fefd940000 - 0x000007fefd94f000 C:\Windows\system32\MSASN1.dll
0x000000006d6c0000 - 0x000000006d6cb000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\nio.dll
0x0000000010000000 - 0x0000000010007000 C:\Program Files\Correlation Tool\0.2 beta\nativewindow_jvm.dll
0x0000000073070000 - 0x0000000073139000 C:\Windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_88df89932faf0bf6\MSVCR80.dll
0x0000000006100000 - 0x000000000615e000 C:\Program Files\Correlation Tool\0.2 beta\jogl_gl2.dll
0x000007feeec30000 - 0x000007feeed4d000 C:\Windows\system32\OPENGL32.dll
0x000007fef2050000 - 0x000007fef207d000 C:\Windows\system32\GLU32.dll
0x0000000000540000 - 0x0000000000556000 C:\Program Files\Correlation Tool\0.2 beta\jogl_gl2es12.dll
0x0000000000600000 - 0x0000000000607000 C:\Program Files\Correlation Tool\0.2 beta\gluegen-rt.dll
0x000000006d490000 - 0x000000006d497000 C:\Program Files\Java\jdk1.6.0_29\jre\bin\jawt.dll
0x0000000002660000 - 0x0000000002667000 C:\Program Files\Correlation Tool\0.2 beta\nativewindow_awt.dll
0x0000000077b10000 - 0x0000000077b17000 C:\Windows\system32\PSAPI.DLL

VM Arguments:
jvm_args: -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dsun.java2d.ddoffscreen=false -Dsun.java2d.gdiblit=false -Xms512m -Xmx1024m
java_command: C:\Program Files\Correlation Tool\0.2 beta\corr_tool_x64.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=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\Aladdin\eToken\PKIClient\x32;C:\Program Files\Aladdin\eToken\PKIClient\x64;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.6.0_29\bin
USERNAME=buch_ra
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 6, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows 7 , 64 bit Build 7601 Service Pack 1

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1

Memory: 4k page, physical 4192220k(2595324k free), swap 8382592k(5754936k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (20.4-b02) for windows-amd64 JRE (1.6.0_29-b11), built on Oct  3 2011 01:06:42 by "java_re" with MS VC++ 8.0 (VS2005)

time: Mon Dec 19 14:35:34 2011
elapsed time: 23 seconds