I tested the Gears demo on a Windows XP machine and upon exit the program calls an access violation exception.
I have attached the error log. I have run the same code on Linux boxes and Windows 2000 problems and have had
no difficulties.
Thanks very much
Are you running the latest version of JOGL? What is the output of java -Djogl.verbose demos.printext.PrintExt (in the jogl-demos.jar)?
If you’re running the latest version of JOGL then I’d say this is a bug in VIA’s OpenGL drivers. JOGL runs fine on Windows XP with other vendors’ graphics cards. Try looking for an updated version of your drivers.
Here is the output from running PrintExt…
GL vendor: S3 Graphics, Incorporated
GL version: 1.1 2.40.116
GL renderer: ProSavage/Twister
GL extensions:
GL_ARB_multitexture GL_ARB_texture_compression
GL_EXT_texture_compression_s3tc GL_ARB_texture_env_combine
GL_EXT_texture_env_combine GL_ARB_texture_env_add
GL_EXT_abgr GL_EXT_bgra
GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array
GL_EXT_fog_coord GL_EXT_packed_pixels
GL_EXT_point_parameters GL_EXT_paletted_texture
GL_EXT_separate_specular_color GL_EXT_shared_texture_palette
GL_EXT_stencil_wrap GL_EXT_texture_env_add
GL_EXT_texture_lod_bias GL_EXT_vertex_array
GL_KTX_buffer_region GL_S3_s3tc
GL_SGIS_multitexture GL_WIN_swap_hint
An unexpected error has been detected by HotSpot Virtual Machine:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6957a8f9, pid=2348, tid=2356
Java VM: Java HotSpot™ Client VM (1.5.0_04-b05 mixed mode, sharing)
Problematic frame:
C [nbicdnt.dll+0x7a8f9]
An error report file with more information is saved as hs_err_pid2348.log
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
The log file contains the following
An unexpected error has been detected by HotSpot Virtual Machine:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6957a8f9, pid=2348, tid=2356
Java VM: Java HotSpot™ Client VM (1.5.0_04-b05 mixed mode, sharing)
Problematic frame:
C [nbicdnt.dll+0x7a8f9]
--------------- T H R E A D ---------------
Current thread (0x00a64e70): VMThread [id=2356]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000020
Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x00000000, EDX=0x00148e90
ESP=0x009cf174, EBP=0x009cf1ec, ESI=0x00000000, EDI=0x00000000
EIP=0x6957a8f9, EFLAGS=0x00010216
Top of Stack: (sp=0x009cf174)
0x009cf174: 00000000 00148e90 009cf1ec 00000000
0x009cf184: 77f51c88 ffffffff 77f59037 77e758b6
0x009cf194: 00090000 00000000 77e758a4 00148f44
0x009cf1a4: 00151620 00148d1c 7f003612 94010473
0x009cf1b4: 00148f44 00151620 009cf1a0 69596304
0x009cf1c4: 00148e94 00000001 009cf1e8 00000000
0x009cf1d4: 00000000 00000000 00000000 00148d1c
0x009cf1e4: 00000000 e1673308 009cfab0 69592136
Instructions: (pc=0x6957a8f9)
0x6957a8e9: 90 90 90 90 90 90 90 83 ec 3c 53 55 56 57 8b f1
0x6957a8f9: 8b 4e 20 8b fa 89 7c 24 10 ff 56 2c 8b 54 24 50
Stack: [0x00990000,0x009d0000), sp=0x009cf174, free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [nbicdnt.dll+0x7a8f9]
C [nbicdnt.dll+0x92136]
C [nbicdnt.dll+0x9c693]
C [ntdll.dll+0xb42c]
C [ntdll.dll+0x12864]
C [kernel32.dll+0x19832]
C [kernel32.dll+0x19875]
C [MSVCRT.dll+0x279c8]
V [jvm.dll+0x11a185]
V [jvm.dll+0x11a325]
V [jvm.dll+0x11a0ba]
C [MSVCRT.dll+0x27fb8]
C [kernel32.dll+0x1d28e]
VM_Operation (0x09a2fb80): exit, mode: safepoint, requested by thread 0x02f3f4e8
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00035ad8 JavaThread “DestroyJavaVM” [_thread_blocked, id=2352]
0x02f3f4e8 JavaThread “Thread-3” [_thread_blocked, id=3108]
0x02efeb50 JavaThread “AWT-EventQueue-0” [_thread_blocked, id=2520]
0x02e66fb0 JavaThread “AWT-Shutdown” [_thread_blocked, id=2512]
0x02e66938 JavaThread “Java2D Disposer” daemon [_thread_blocked, id=2464]
0x00a6e1e8 JavaThread “Low Memory Detector” daemon [_thread_blocked, id=2388]
0x00a6cdc0 JavaThread “CompilerThread0” daemon [_thread_blocked, id=2188]
0x00a43b98 JavaThread “Finalizer” daemon [_thread_blocked, id=2380]
0x00a66aa0 JavaThread “Reference Handler” daemon [_thread_blocked, id=1368]
Other Threads:
=>0x00a64e70 VMThread [id=2356]
VM state:at safepoint (shutting down)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x00035178/0x00000724] Threads_lock - owner thread: 0x00a64e70
Heap
def new generation total 576K, used 221K [0x22a70000, 0x22b10000, 0x22f50000)
eden space 512K, 30% used [0x22a70000, 0x22a97728, 0x22af0000)
from space 64K, 100% used [0x22af0000, 0x22b00000, 0x22b00000)
to space 64K, 0% used [0x22b00000, 0x22b00000, 0x22b10000)
tenured generation total 1408K, used 1011K [0x22f50000, 0x230b0000, 0x26a70000)
the space 1408K, 71% used [0x22f50000, 0x2304cd50, 0x2304ce00, 0x230b0000)
compacting perm gen total 8192K, used 2223K [0x26a70000, 0x27270000, 0x2aa70000)
the space 8192K, 27% used [0x26a70000, 0x26c9bd80, 0x26c9be00, 0x27270000)
ro space 8192K, 62% used [0x2aa70000, 0x2af793f0, 0x2af79400, 0x2b270000)
rw space 12288K, 46% used [0x2b270000, 0x2b7ffe20, 0x2b800000, 0x2be70000)
Dynamic libraries:
0x00400000 - 0x0040c000 C:\WINDOWS\system32\java.exe
0x77f50000 - 0x77ff7000 C:\WINDOWS\System32\ntdll.dll
0x77e60000 - 0x77f46000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e5d000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78087000 C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 - 0x77c63000 C:\WINDOWS\system32\MSVCRT.dll
0x6d640000 - 0x6d7c9000 C:\Program Files\Java\jre1.5.0_04\bin\client\jvm.dll
0x77d40000 - 0x77dcd000 C:\WINDOWS\system32\USER32.dll
0x7f000000 - 0x7f041000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6c000 C:\WINDOWS\system32\WINMM.dll
0x5cd70000 - 0x5cd77000 C:\WINDOWS\system32\serwvdrv.dll
0x5b0a0000 - 0x5b0a7000 C:\WINDOWS\system32\umdmxfrm.dll
0x6bd00000 - 0x6bd0d000 C:\WINDOWS\system32\SYNCOR11.DLL
0x6d280000 - 0x6d288000 C:\Program Files\Java\jre1.5.0_04\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_04\bin\verify.dll
0x6d300000 - 0x6d31d000 C:\Program Files\Java\jre1.5.0_04\bin\java.dll
0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_04\bin\zip.dll
0x6d000000 - 0x6d167000 C:\Program Files\Java\jre1.5.0_04\bin\awt.dll
0x73000000 - 0x73023000 C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763ac000 C:\WINDOWS\system32\IMM32.dll
0x4fec0000 - 0x4fff6000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada4000 C:\WINDOWS\System32\uxtheme.dll
0x51000000 - 0x51047000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x5c000000 - 0x5c0c8000 C:\WINDOWS\system32\D3DIM700.DLL
0x6d240000 - 0x6d27d000 C:\Program Files\Java\jre1.5.0_04\bin\fontmanager.dll
0x63000000 - 0x63014000 C:\WINDOWS\System32\SynTPFcs.dll
0x77c00000 - 0x77c07000 C:\WINDOWS\system32\VERSION.dll
0x6d360000 - 0x6d366000 C:\Program Files\Java\jre1.5.0_04\bin\jawt.dll
0x10000000 - 0x10065000 Y:\molasurf\jogl.dll
0x5ed00000 - 0x5edc6000 C:\WINDOWS\system32\OPENGL32.dll
0x68b20000 - 0x68b3e000 C:\WINDOWS\system32\GLU32.dll
0x30000000 - 0x3003f000 C:\Program Files\Iomega\DriveIcons\IMGHOOK.DLL
0x7cd00000 - 0x7d4fa000 C:\WINDOWS\system32\SHELL32.dll
0x70a70000 - 0x70ad6000 C:\WINDOWS\system32\SHLWAPI.dll
0x71950000 - 0x71a35000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1643_x-ww_7c3a9bc6\comctl32.dll
0x77340000 - 0x773cb000 C:\WINDOWS\system32\comctl32.dll
0x69500000 - 0x695e5000 C:\WINDOWS\system32\nbicdnt.dll
VM Arguments:
jvm_args: -Djogl.verbose
java_command: demos.printext.PrintExt
Environment Variables:
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Symantec\pcAnywhere
USERNAME=harold
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 0, AuthenticAMD
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 1
CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse
Memory: 4k page, physical 245228k(49408k free), swap 756428k(576984k free)
vm_info: Java HotSpot™ Client VM (1.5.0_04-b05) for windows-x86, built on Jun 3 2005 02:10:41 by “java_re” with MS VC++ 6.0
I did install the latest version of the drivers for the chipset available on the S3 website.
thanks for your assistance
You didn’t specify -Djogl.verbose. Could you please specify that, run it again and post the printed version string?
Sorry about that.
The output with the jogl.verbose property follows…
Y:\molasurf>java -Djogl.verbose -classpath jogl-demos.jar;jogl.jar;. demos.print
ext.PrintExt
JOGL version 1.1.1
Using single-threaded workaround of dispatching display() on event thread
GL vendor: S3 Graphics, Incorporated
GL version: 1.1 2.40.116
GL renderer: ProSavage/Twister
GL extensions:
GL_ARB_multitexture GL_ARB_texture_compression
GL_EXT_texture_compression_s3tc GL_ARB_texture_env_combine
GL_EXT_texture_env_combine GL_ARB_texture_env_add
GL_EXT_abgr GL_EXT_bgra
GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array
GL_EXT_fog_coord GL_EXT_packed_pixels
GL_EXT_point_parameters GL_EXT_paletted_texture
GL_EXT_separate_specular_color GL_EXT_shared_texture_palette
GL_EXT_stencil_wrap GL_EXT_texture_env_add
GL_EXT_texture_lod_bias GL_EXT_vertex_array
GL_KTX_buffer_region GL_S3_s3tc
GL_SGIS_multitexture GL_WIN_swap_hint
Exception in thread “AWT-EventQueue-0” net.java.games.jogl.GLException: Error ma
king context current: 0
at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(Windows
GLContext.java:153)#
An unexpected error has been detected by HotSpot Virtual Machine:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6957a8f9, pid=3320, tid=3088
Java VM: Java HotSpot™ Client VM (1.5.0_04-b05 mixed mode, sharing)
Problematic frame:
C [nbicdnt.dll+0x7a8f9]
An error report file with more information is saved as hs_err_pid3320.log
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
Unfortunately I don’t have any good suggestions at this point. The first crash looks like the OpenGL ICD is crashing during process exit, which is bad because JOGL has already ensured that no simultaneous OpenGL rendering is occurring before the process exits. The second crash looks similar to the first except that there may have been a race condition causing OpenGL context manipulation to fail just before the crash. Do any other OpenGL applications (the GLUT Gears demo, for example) or LWJGL applications work on your machine?