jPCT - a 3d engine for Java > Bugs
VM crash on exiting the examples
(1/1)
KyroMaster:
When I run the examples (and I guess this happens with every jpct app) I get a VM crash. The log is pasted below.
My system uses the newest JDK (1.6.0u2) together with Vista 64bit.
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x69559e74, pid=1084, tid=4116
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing)
# Problematic frame:
# C [nvoglv32.dll+0x59e74]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x01001c00): JavaThread "main" [_thread_in_native, id=4116]
siginfo: ExceptionCode=0xc0000005, writing address 0x2935c38f
Registers:
EAX=0x2935c337, EBX=0x001b2b98, ECX=0x69b43ccc, EDX=0x056497d0
ESP=0x002ff910, EBP=0x00000000, ESI=0x056bb738, EDI=0x00000001
EIP=0x69559e74, EFLAGS=0x00010202
Top of Stack: (sp=0x002ff910)
0x002ff910: 6970bd93 056497d0 2935c337 00000001
0x002ff920: 056497d0 001b2b98 056bb7b8 6970bd4c
0x002ff930: 056497d0 001b2b98 056bb738 00000001
0x002ff940: 056497d0 001b2b98 00000000 00000001
0x002ff950: 00000003 05661ed4 001b2bfc 001b2b98
0x002ff960: 696260d3 056497d0 001b2b98 056bb7b8
0x002ff970: 00000000 056a4b18 00000000 056497d0
0x002ff980: ffffffff 69563d0c 056497d0 001b2b98
Instructions: (pc=0x69559e74)
0x69559e64: 83 00 ff 50 ff 15 3c 60 b4 69 59 c3 8b 44 24 08
0x69559e74: 83 48 58 01 83 00 ff 75 09 89 44 24 08 e9 5a 70
Stack: [0x002b0000,0x00300000), sp=0x002ff910, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [nvoglv32.dll+0x59e74]
[error occurred during error reporting, step 120, id 0xc0000005]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.lwjgl.opengl.WindowsContextImplementation.nDestroy(Ljava/nio/ByteBuffer;)V+0
j org.lwjgl.opengl.WindowsContextImplementation.destroy(Lorg/lwjgl/opengl/PeerInfo;Ljava/nio/ByteBuffer;)V+1
j org.lwjgl.opengl.Context.checkDestroy()V+29
j org.lwjgl.opengl.Context.destroy()V+47
j org.lwjgl.opengl.Context.forceDestroy()V+5
j org.lwjgl.opengl.Display.destroyContext()V+3
j org.lwjgl.opengl.Display.destroy()V+10
j com.threed.jpct.GLHelper.dispose()V+12
j com.threed.jpct.GLRenderer.dispose()V+4
j com.threed.jpct.FrameBuffer.disableRenderer(I)V+67
j JPCTDemo.gameLoop()V+379
j JPCTDemo.<init>([Ljava/lang/String;)V+1542
j JPCTDemo.main([Ljava/lang/String;)V+5
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x051a8800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=5032]
0x051a8000 JavaThread "AWT-Shutdown" [_thread_blocked, id=3312]
0x04cd9c00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4084]
0x04cd9000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4956]
0x0103a400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4712]
0x01038000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5052]
0x01034000 JavaThread "Attach Listener" daemon [_thread_blocked, id=2696]
0x01033c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3108]
0x0102b000 JavaThread "Finalizer" daemon [_thread_blocked, id=3632]
0x01022400 JavaThread "Reference Handler" daemon [_thread_blocked, id=3468]
=>0x01001c00 JavaThread "main" [_thread_in_native, id=4116]
Other Threads:
0x01019400 VMThread [id=2572]
0x0103ac00 WatcherThread [id=1736]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 2816K, used 1119K [0x20570000, 0x20870000, 0x20f40000)
eden space 2560K, 43% used [0x20570000, 0x20687ca8, 0x207f0000)
from space 256K, 0% used [0x207f0000, 0x207f01a8, 0x20830000)
to space 256K, 0% used [0x20830000, 0x20830000, 0x20870000)
tenured generation total 36016K, used 33631K [0x20f40000, 0x2326c000, 0x28570000)
the space 36016K, 93% used [0x20f40000, 0x23017fe0, 0x23018000, 0x2326c000)
compacting perm gen total 12288K, used 1413K [0x28570000, 0x29170000, 0x2c570000)
the space 12288K, 11% used [0x28570000, 0x286d1640, 0x286d1800, 0x29170000)
ro space 8192K, 66% used [0x2c570000, 0x2cabd978, 0x2cabda00, 0x2cd70000)
rw space 12288K, 52% used [0x2cd70000, 0x2d3b9cb8, 0x2d3b9e00, 0x2d970000)
Dynamic libraries:
0x00400000 - 0x00423000 C:\dev\Java\jdk1.6.0_02\bin\java.exe
0x77220000 - 0x77370000 C:\Windows\SysWOW64\ntdll.dll
0x758c0000 - 0x759d0000 C:\Windows\syswow64\kernel32.dll
0x76710000 - 0x767cf000 C:\Windows\syswow64\ADVAPI32.dll
0x759d0000 - 0x75ac0000 C:\Windows\syswow64\RPCRT4.dll
0x75420000 - 0x75480000 C:\Windows\syswow64\Secur32.dll
0x7c340000 - 0x7c396000 C:\dev\Java\jdk1.6.0_02\jre\bin\msvcr71.dll
0x6d870000 - 0x6dab9000 C:\dev\Java\jdk1.6.0_02\jre\bin\client\jvm.dll
0x769f0000 - 0x76ac0000 C:\Windows\syswow64\USER32.dll
0x76d50000 - 0x76de0000 C:\Windows\syswow64\GDI32.dll
0x74640000 - 0x74673000 C:\Windows\system32\WINMM.dll
0x756c0000 - 0x7576a000 C:\Windows\syswow64\msvcrt.dll
0x75770000 - 0x758b4000 C:\Windows\syswow64\ole32.dll
0x76960000 - 0x769ec000 C:\Windows\syswow64\OLEAUT32.dll
0x74600000 - 0x74638000 C:\Windows\system32\OLEACC.dll
0x75660000 - 0x756c0000 C:\Windows\system32\IMM32.DLL
0x75b10000 - 0x75bd7000 C:\Windows\syswow64\MSCTF.dll
0x72b20000 - 0x72b4c000 C:\Windows\system32\apphelp.dll
0x75620000 - 0x75629000 C:\Windows\syswow64\LPK.DLL
0x76de0000 - 0x76e5d000 C:\Windows\syswow64\USP10.dll
0x6d3c0000 - 0x6d3c8000 C:\dev\Java\jdk1.6.0_02\jre\bin\hpi.dll
0x75480000 - 0x75487000 C:\Windows\syswow64\PSAPI.DLL
0x6d820000 - 0x6d82c000 C:\dev\Java\jdk1.6.0_02\jre\bin\verify.dll
0x6d460000 - 0x6d47f000 C:\dev\Java\jdk1.6.0_02\jre\bin\java.dll
0x6d860000 - 0x6d86f000 C:\dev\Java\jdk1.6.0_02\jre\bin\zip.dll
0x6d0b0000 - 0x6d273000 C:\dev\Java\jdk1.6.0_02\jre\bin\awt.dll
0x74530000 - 0x74571000 C:\Windows\system32\WINSPOOL.DRV
0x74490000 - 0x74510000 C:\Windows\system32\uxtheme.dll
0x6d500000 - 0x6d524000 C:\dev\Java\jdk1.6.0_02\jre\bin\jpeg.dll
0x6d360000 - 0x6d3b3000 C:\dev\Java\jdk1.6.0_02\jre\bin\fontmanager.dll
0x10000000 - 0x1004b000 C:\dev\libs\jpctapi\lib\lwjgl-1.0\lwjgl.dll
0x751d0000 - 0x751f4000 C:\Windows\system32\DINPUT.dll
0x709f0000 - 0x70abb000 C:\Windows\system32\OPENGL32.dll
0x75200000 - 0x75223000 C:\Windows\system32\GLU32.dll
0x714c0000 - 0x715a6000 C:\Windows\system32\DDRAW.dll
0x72360000 - 0x72366000 C:\Windows\system32\DCIMAN32.dll
0x767d0000 - 0x76958000 C:\Windows\syswow64\SETUPAPI.dll
0x73b00000 - 0x73b0c000 C:\Windows\system32\dwmapi.dll
0x74f90000 - 0x74f98000 C:\Windows\system32\VERSION.dll
0x69500000 - 0x69bab000 C:\Windows\system32\nvoglv32.dll
0x76ac0000 - 0x76b44000 C:\Windows\syswow64\CLBCatQ.DLL
0x71850000 - 0x71883000 C:\Windows\SysWOW64\dinput8.dll
0x72b50000 - 0x72b59000 C:\Windows\system32\HID.DLL
0x743d0000 - 0x743fd000 C:\Windows\system32\WINTRUST.dll
0x742d0000 - 0x743c1000 C:\Windows\system32\CRYPT32.dll
0x742b0000 - 0x742c2000 C:\Windows\system32\MSASN1.dll
0x75260000 - 0x7527e000 C:\Windows\system32\USERENV.dll
0x75630000 - 0x75659000 C:\Windows\syswow64\imagehlp.dll
VM Arguments:
jvm_args: -Djava.library.path=..\..\lib\lwjgl-1.0\ -Xmx128m
java_command: JPCTDemo width=1280 height=1024 fullscreen mipmap zbuffer=16 refresh=60
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\Common Files\Autodesk Shared\;C:\dev\Java\jdk1.6.0_02\bin
USERNAME=Michael
OS=Windows_NT
PROCESSOR_IDENTIFIER=AMD64 Family 15 Model 75 Stepping 2, AuthenticAMD
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6000
CPU:total 2 (2 cores per cpu, 1 threads per core) family 15 model 75 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext
Memory: 4k page, physical 2095872k(875480k free), swap 4194303k(2856464k free)
vm_info: Java HotSpot(TM) Client VM (1.6.0_02-b06) for windows-x86, built on Jul 12 2007 01:16:14 by "java_re" with unknown MS VC++:1310
EgonOlsen:
I know...this happens on some Nvidia cards. I have no clue why, because it only happens for some applications (even on simple ones) while it doesn't happen on others (even on complex ones). I can reproduce the problem here and i'll try to investigate, but this is really annoying...
influt:
was there any progress on this problem? i'm having the same trouble now on WinXP, java1.6 :-\
EgonOlsen:
No, i have no idea what causes this. It happens with some programs but not with others. Sometimes, adding a few lines of totally unrelated code fixes it....it makes no sense. I think i've "corrected" the examples in a way that i'm not closing the display anymore (which is what causes the crash), but simply doing a System.exit(0); instead, which closes the display anyway. That's what i'm doing in my games too. Not a good solution, but i have no other... :(
Melssj5:
Once I noticed a behavior on that and I managed to avoid that but I dont remember how nor which was the problem :-[ :-[ :-[ :-[. I will try to remember and post something if I find anything usefull.
Navigation
[0] Message Index
Go to full version