philipwhiuk / Game

Client-Server game framework
23 stars 12 forks source link

Client: EXCEPTION_ACCESS_VIOLATION in org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat at GameClient.buildDisplay #9

Open philipwhiuk opened 11 years ago

philipwhiuk commented 11 years ago

On starting the client.

[06.07.2013] [14:56:34] INFO [main] com.whiuk.philip.mmorpg.client.GameClient (GameClient.java:309) - 1024, 768, 32, 60
[06.07.2013] [14:56:34] INFO [main] com.whiuk.philip.mmorpg.client.GameClient (GameClient.java:321) - using mode: 1024, 768, 32, 60
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006903d268, pid=6280, tid=5332
#
# JRE version: 7.0_01-b08
# Java VM: Java HotSpot(TM) 64-Bit Server VM (21.1-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [atio6axx.dll+0xd268]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\Philip\Documents\GitHub\Game\GameClient\hs_err_pid6280.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Contents of hs_err_pid6280.log

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006903d268, pid=6280, tid=5332
#
# JRE version: 7.0_01-b08
# Java VM: Java HotSpot(TM) 64-Bit Server VM (21.1-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [atio6axx.dll+0xd268]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/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 (0x000000000221c000):  JavaThread "main" [_thread_in_native, id=5332, stack(0x0000000002540000,0x0000000002640000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000010

Registers:
RAX=0x0000000000000000, RBX=0x0000000000000001, RCX=0x0000000000000000, RDX=0x0000000000020000
RSP=0x000000000263e0d0, RBP=0xffffffffbf012494, RSI=0x000007fef8b1fac0, RDI=0x00000000004cee90
R8 =0x0000000000000011, R9 =0x0000000000000022, R10=0x0000000000000011, R11=0x0000000000000003
R12=0x000000000263e370, R13=0x000000006907f270, R14=0x000000006903c610, R15=0x00000000ffffffff
RIP=0x000000006903d268, EFLAGS=0x0000000000010202

Top of Stack: (sp=0x000000000263e0d0)
0x000000000263e0d0:   0000000000000001 ffffffffbf012494
0x000000000263e0e0:   000007fef8b1fac0 000007fef8b1fac0
0x000000000263e0f0:   00000000004cee90 000000006903c639
0x000000000263e100:   0000000000000001 000000000263e370
0x000000000263e110:   ffffffff00120011 000007fef8a31bf8
0x000000000263e120:   00000000004cedf0 000007fef8a57cc0
0x000000000263e130:   00000000004cedf0 000000006907f280
0x000000000263e140:   000007fef8b1fab8 0000000069030000
0x000000000263e150:   0000000000000001 000000000263e900
0x000000000263e160:   0000000000000000 0000000000000000
0x000000000263e170:   0000000000000001 000007fef8a57f93
0x000000000263e180:   ffffffffbf012494 00000000ffffffff
0x000000000263e190:   0000000000000000 000007feff0c0000
0x000000000263e1a0:   000000000263e1f0 000000000265219c
0x000000000263e1b0:   0000000000000000 0000000000000000
0x000000000263e1c0:   000000000221ca38 0105014f001a0018 

Instructions: (pc=0x000000006903d268)
0x000000006903d248:   fd 00 00 00 00 00 8b 81 00 03 00 00 48 8b 0d ed
0x000000006903d258:   85 01 01 33 d2 89 05 39 38 fd 00 e8 48 c5 04 00
0x000000006903d268:   8b 48 10 48 8b 05 d6 83 01 01 48 89 48 38 e8 c5
0x000000006903d278:   93 05 00 8b c8 e8 0e 9c 00 00 48 8b 0d bf 83 01 

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x0000000000000001 is an unknown value
RCX=0x0000000000000000 is an unknown value
RDX=0x0000000000020000 is an unknown value
RSP=0x000000000263e0d0 is pointing into the stack for thread: 0x000000000221c000
RBP=0xffffffffbf012494 is an unknown value
RSI=0x000007fef8b1fac0 is an unknown value
RDI=0x00000000004cee90 is an unknown value
R8 =0x0000000000000011 is an unknown value
R9 =0x0000000000000022 is an unknown value
R10=0x0000000000000011 is an unknown value
R11=0x0000000000000003 is an unknown value
R12=0x000000000263e370 is pointing into the stack for thread: 0x000000000221c000
R13=0x000000006907f270 is an unknown value
R14=0x000000006903c610 is an unknown value
R15=0x00000000ffffffff is an unallocated location in the heap

Stack: [0x0000000002540000,0x0000000002640000],  sp=0x000000000263e0d0,  free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [atio6axx.dll+0xd268]  DrvSwapBuffers+0xb8

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(JIILorg/lwjgl/opengl/PixelFormat;Ljava/nio/IntBuffer;ZZZZ)I+0
j  org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(JIILorg/lwjgl/opengl/PixelFormat;Ljava/nio/IntBuffer;ZZZZ)I+15
j  org.lwjgl.opengl.WindowsDisplay.createWindow(Lorg/lwjgl/opengl/DrawableLWJGL;Lorg/lwjgl/opengl/DisplayMode;Ljava/awt/Canvas;II)V+196
j  org.lwjgl.opengl.Display.createWindow()V+71
j  org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/Drawable;Lorg/lwjgl/opengl/ContextAttribs;)V+72
j  org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;)V+12
j  org.lwjgl.opengl.Display.create()V+7
j  com.whiuk.philip.mmorpg.client.GameClient.buildDisplay()V+41
j  com.whiuk.philip.mmorpg.client.GameClient.run()V+1
j  com.whiuk.philip.mmorpg.client.Main.main([Ljava/lang/String;)V+21
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x00000000060fd800 JavaThread "Service Thread" daemon [_thread_blocked, id=9572, stack(0x0000000007260000,0x0000000007360000)]
  0x00000000060f4800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=4800, stack(0x0000000007070000,0x0000000007170000)]
  0x00000000060f1800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=7404, stack(0x0000000006ec0000,0x0000000006fc0000)]
  0x00000000060ee800 JavaThread "Attach Listener" daemon [_thread_blocked, id=9196, stack(0x0000000006c90000,0x0000000006d90000)]
  0x00000000060e9800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7552, stack(0x0000000006aa0000,0x0000000006ba0000)]
  0x0000000002314000 JavaThread "Finalizer" daemon [_thread_blocked, id=7344, stack(0x0000000006970000,0x0000000006a70000)]
  0x000000000230d000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5592, stack(0x0000000006650000,0x0000000006750000)]
=>0x000000000221c000 JavaThread "main" [_thread_in_native, id=5332, stack(0x0000000002540000,0x0000000002640000)]

Other Threads:
  0x0000000002305800 VMThread [stack: 0x00000000067a0000,0x00000000068a0000] [id=3740]
  0x000000000610b800 WatcherThread [stack: 0x00000000073f0000,0x00000000074f0000] [id=6936]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 18496K, used 4487K [0x00000000eb600000, 0x00000000ecaa0000, 0x0000000100000000)
  eden space 15872K, 28% used [0x00000000eb600000,0x00000000eba61cf8,0x00000000ec580000)
  from space 2624K, 0% used [0x00000000ec810000,0x00000000ec810000,0x00000000ecaa0000)
  to   space 2624K, 0% used [0x00000000ec580000,0x00000000ec580000,0x00000000ec810000)
 PSOldGen        total 42240K, used 0K [0x00000000c2200000, 0x00000000c4b40000, 0x00000000eb600000)
  object space 42240K, 0% used [0x00000000c2200000,0x00000000c2200000,0x00000000c4b40000)
 PSPermGen       total 21248K, used 5234K [0x00000000bd000000, 0x00000000be4c0000, 0x00000000c2200000)
  object space 21248K, 24% used [0x00000000bd000000,0x00000000bd51cbf8,0x00000000be4c0000)

Code Cache  [0x0000000002640000, 0x00000000028b0000, 0x0000000005640000)
 total_blobs=266 nmethods=16 adapters=202 free_code_cache=48706Kb largest_free_block=49857856

Dynamic libraries:
0x000000013fbb0000 - 0x000000013fbe3000     C:\Program Files\Java\jdk1.7.0_01\bin\javaw.exe
0x0000000076e40000 - 0x0000000076fe9000     C:\Windows\SYSTEM32\ntdll.dll
0x0000000076d20000 - 0x0000000076e3f000     C:\Windows\system32\kernel32.dll
0x000007fefcea0000 - 0x000007fefcf0b000     C:\Windows\system32\KERNELBASE.dll
0x000007fefda20000 - 0x000007fefdafb000     C:\Windows\system32\ADVAPI32.dll
0x000007fefdc10000 - 0x000007fefdcaf000     C:\Windows\system32\msvcrt.dll
0x000007fefdba0000 - 0x000007fefdbbf000     C:\Windows\SYSTEM32\sechost.dll
0x000007fefd2c0000 - 0x000007fefd3ed000     C:\Windows\system32\RPCRT4.dll
0x0000000076c20000 - 0x0000000076d1a000     C:\Windows\system32\USER32.dll
0x000007feff0c0000 - 0x000007feff127000     C:\Windows\system32\GDI32.dll
0x000007feff130000 - 0x000007feff13e000     C:\Windows\system32\LPK.dll
0x000007fefecc0000 - 0x000007fefed89000     C:\Windows\system32\USP10.dll
0x000007fefb5e0000 - 0x000007fefb7d4000     C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefee10000 - 0x000007fefee81000     C:\Windows\system32\SHLWAPI.dll
0x000007fefd8c0000 - 0x000007fefd8ee000     C:\Windows\system32\IMM32.DLL
0x000007fefd8f0000 - 0x000007fefd9f9000     C:\Windows\system32\MSCTF.dll
0x00000000500b0000 - 0x0000000050181000     C:\Program Files\Java\jdk1.7.0_01\jre\bin\msvcr100.dll
0x000000006d510000 - 0x000000006dbdd000     C:\Program Files\Java\jdk1.7.0_01\jre\bin\server\jvm.dll
0x000007fef6640000 - 0x000007fef6649000     C:\Windows\system32\WSOCK32.dll
0x000007fefdbc0000 - 0x000007fefdc0d000     C:\Windows\system32\WS2_32.dll
0x000007feff140000 - 0x000007feff148000     C:\Windows\system32\NSI.dll
0x000007fefa490000 - 0x000007fefa4cb000     C:\Windows\system32\WINMM.dll
0x0000000077010000 - 0x0000000077017000     C:\Windows\system32\PSAPI.DLL
0x00000000709e0000 - 0x00000000709ef000     C:\Program Files\Java\jdk1.7.0_01\jre\bin\verify.dll
0x0000000050080000 - 0x00000000500a8000     C:\Program Files\Java\jdk1.7.0_01\jre\bin\java.dll
0x00000000548b0000 - 0x00000000548c5000     C:\Program Files\Java\jdk1.7.0_01\jre\bin\zip.dll
0x0000000052ab0000 - 0x0000000052ac9000     C:\Program Files\Java\jdk1.7.0_01\jre\bin\net.dll
0x000007fefc490000 - 0x000007fefc4e5000     C:\Windows\system32\mswsock.dll
0x000007fefc440000 - 0x000007fefc447000     C:\Windows\System32\wship6.dll
0x0000000050040000 - 0x0000000050051000     C:\Program Files\Java\jdk1.7.0_01\jre\bin\nio.dll
0x0000000180000000 - 0x0000000180050000     C:\Users\Philip\Documents\GitHub\Game\GameClient\native\windows\lwjgl64.dll
0x000007fef8a30000 - 0x000007fef8b4d000     C:\Windows\system32\OPENGL32.dll
0x000007fef9120000 - 0x000007fef914d000     C:\Windows\system32\GLU32.dll
0x000007fef3770000 - 0x000007fef3861000     C:\Windows\system32\DDRAW.dll
0x000007fefa180000 - 0x000007fefa188000     C:\Windows\system32\DCIMAN32.dll
0x000007fefdd50000 - 0x000007fefdf27000     C:\Windows\system32\SETUPAPI.dll
0x000007fefd010000 - 0x000007fefd046000     C:\Windows\system32\CFGMGR32.dll
0x000007fefd3f0000 - 0x000007fefd4c7000     C:\Windows\system32\OLEAUT32.dll
0x000007fefd050000 - 0x000007fefd253000     C:\Windows\system32\ole32.dll
0x000007fefcf20000 - 0x000007fefcf3a000     C:\Windows\system32\DEVOBJ.dll
0x000007fefafd0000 - 0x000007fefafe8000     C:\Windows\system32\dwmapi.dll
0x000007fefbd80000 - 0x000007fefbd8c000     C:\Windows\system32\VERSION.dll
0x000007fefb400000 - 0x000007fefb456000     C:\Windows\system32\uxtheme.dll
0x0000000069030000 - 0x000000006a12d000     C:\Windows\system32\atio6axx.dll
0x000007fefa750000 - 0x000007fefa75e000     C:\Windows\system32\atig6txx.dll
0x000007feeb0e0000 - 0x000007feeb1eb000     C:\Windows\system32\aticfx64.dll
0x0000000001d90000 - 0x0000000001de0000     C:\Windows\system32\atiadlxx.dll
0x000007fefce40000 - 0x000007fefce79000     C:\Windows\system32\WINTRUST.dll
0x000007fefccd0000 - 0x000007fefce3a000     C:\Windows\system32\CRYPT32.dll
0x000007fefccc0000 - 0x000007fefcccf000     C:\Windows\system32\MSASN1.dll

VM Arguments:
jvm_args: -Djava.library.path=C:\Users\Philip\Documents\GitHub\Game\GameClient\native\windows -Dfile.encoding=Cp1252 
java_command: com.whiuk.philip.mmorpg.client.Main
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
PATH=C:\Program Files (x86)\PHP\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Dell\DW WLAN Card;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\WinSCP\;C:\RIDE\Bin;C:\Program Files (x86)\GNU\GnuPG\pub;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Nmap
USERNAME=Philip
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 2, GenuineIntel

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

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

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

Memory: 4k page, physical 4051480k(931704k free), swap 8101100k(3798312k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (21.1-b02) for windows-amd64 JRE (1.7.0_01-b08), built on Oct  3 2011 01:39:25 by "java_re" with unknown MS VC++:1600

time: Sat Jul 06 14:56:34 2013
elapsed time: 0 seconds

Appears to be trying to create LWJGL window, possibly without proper OpenGL support.

ATI Mobility Radeon HD470 Driver: 8.680.0.0

As this is a fairly low level error, before we create the window, we should try and check that it won't cause this issue (we won't be able to catch it most likely).

philipwhiuk commented 11 years ago

Trying and failing to update the graphics driver seemed to fix this one... No earthly idea why. There doesn't seem to be any rhyme or reason behind why this crashes. It ought to be fixed by LWJGL as it should just throw a LWGLException if it can't create the Display.

Keeping open for future occurrences and ideas on how to fix.