Hello Guest

[FIXED] A Fatal Error Has Been Detected

  • 6 Replies
  • 21675 Views
[FIXED] A Fatal Error Has Been Detected
« on: January 10, 2013, 01:55:56 »
Hi,

I'm sorry, I really don't know what caused this error, so I titled this topic just as it is.

I have written a program which executes normally in Eclipse.
Also when I am compiling it and running the jar, still works prefectly fine. But only when the jar was started with the Windows-Konsole(!?!?).

Short:
Works fine: javaw -jar program.jar
Fatal error: direct click on .jar

The error log says it would be an error in OpenGL - really don't know what to do. I mean what is the difference between starting it with and without the console?!?!?!

I guess it is a bug. I don't know if it is a AMD-Driver or LWJGL Bug.

Thank you very much.
Net


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x69884056, pid=4240, tid=1728
#
# JRE version: 7.0_09-b05
# Java VM: Java HotSpot(TM) Client VM (23.5-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [atioglxx.dll+0x854056]  DrvPresentBuffers+0x809bd6
#
# 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 (0x04c62000):  JavaThread "Thread-0" [_thread_in_native, id=1728, stack(0x05670000,0x056c0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000004

Registers:
EAX=0x1900021b, EBX=0x00000000, ECX=0x00000000, EDX=0xb2000006
ESP=0x056bf500, EBP=0x056bf514, ESI=0x00000000, EDI=0x00000000
EIP=0x69884056, EFLAGS=0x00010293

Top of Stack: (sp=0x056bf500)
0x056bf500:   06da9208 06f8b410 00000001 b2000006
0x056bf510:   1900021b 056bf53c 698713e2 04d255a0
0x056bf520:   069461e8 00c94a5c 06f8b410 069461e8
0x056bf530:   06f8b410 06f8b410 056bf55c 056bf554
0x056bf540:   698581b7 04d255a0 056bf578 04c62000
0x056bf550:   344685c8 056bf56c 690d84e2 00000001
0x056bf560:   04d255a0 056bf578 344685c8 056bf57c
0x056bf570:   69497e89 06f37440 ffffffff 056bf5cc

Instructions: (pc=0x69884056)
0x69884036:   00 00 eb 07 8b 84 86 48 01 00 00 89 45 fc 8b d9
0x69884046:   3b c8 73 4b 8b b6 38 01 00 00 8d 0c 49 8d 3c 8e
0x69884056:   39 57 04 75 31 8b 4d 08 8b 07 8a 10 3a 11 75 1a
0x69884066:   84 d2 74 12 8a 50 01 3a 51 01 75 0e 83 c0 02 83


Register to memory mapping:

EAX=0x1900021b is an unknown value
EBX=0x00000000 is an unknown value
ECX=0x00000000 is an unknown value
EDX=0xb2000006 is an unknown value
ESP=0x056bf500 is pointing into the stack for thread: 0x04c62000
EBP=0x056bf514 is pointing into the stack for thread: 0x04c62000
ESI=0x00000000 is an unknown value
EDI=0x00000000 is an unknown value


Stack: [0x05670000,0x056c0000],  sp=0x056bf500,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [atioglxx.dll+0x854056]  DrvPresentBuffers+0x809bd6
C  [atioglxx.dll+0x8413e2]  DrvPresentBuffers+0x7f6f62
C  [atioglxx.dll+0x8281b7]  DrvPresentBuffers+0x7ddd37
C  [atioglxx.dll+0xa84e2]  DrvPresentBuffers+0x5e062
C  [atioglxx.dll+0x467e89]  DrvPresentBuffers+0x41da09
C  [lwjgl.dll+0x822e]  Java_org_lwjgl_opengl_NVVertexAttribInteger64bit_nglVertexAttribL3i64vNV+0xe
j  org.lwjgl.opengl.GL20.glGetUniformLocation(ILjava/lang/CharSequence;)I+20
j  de.test.lwjgltest.Look.initShaders()V+136
j  de.test.lwjgltest.Look.<init>(Lde/test/lwjgltest/Database;ZLde/test/lwjgltest/image/ImageLoader;)V+49
j  de.test.lwjgltest.lwjgltest.run()V+36
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [jvm.dll+0x12a39a]
V  [jvm.dll+0x1d978e]
V  [jvm.dll+0x12a583]
V  [jvm.dll+0x12a5e7]
V  [jvm.dll+0xd315f]
V  [jvm.dll+0x14a697]
V  [jvm.dll+0x14a800]
V  [jvm.dll+0x17efe9]
C  [msvcr100.dll+0x5c6de]  endthreadex+0x3a
C  [msvcr100.dll+0x5c788]  endthreadex+0xe4
C  [kernel32.dll+0x133aa]  BaseThreadInitThunk+0x12
C  [ntdll.dll+0x39ef2]  RtlInitializeExceptionChain+0x63
C  [ntdll.dll+0x39ec5]  RtlInitializeExceptionChain+0x36

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.GL20.nglGetUniformLocation(IJJ)I+0
j  org.lwjgl.opengl.GL20.glGetUniformLocation(ILjava/lang/CharSequence;)I+20
j  de.test.lwjgltest.Look.initShaders()V+136
j  de.test.lwjgltest.Look.<init>(Lde/test/lwjgltest/Database;ZLde/test/lwjgltest/image/ImageLoader;)V+49
j  de.test.lwjgltest.lwjgltest.run()V+36
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
=>0x04c62000 JavaThread "Thread-0" [_thread_in_native, id=1728, stack(0x05670000,0x056c0000)]
  0x00c94c00 JavaThread "Service Thread" daemon [_thread_blocked, id=6872, stack(0x04720000,0x04770000)]
  0x00c8f400 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=5680, stack(0x04960000,0x049b0000)]
  0x00c8dc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2012, stack(0x04500000,0x04550000)]
  0x00c8ac00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5524, stack(0x04850000,0x048a0000)]
  0x00c76c00 JavaThread "Finalizer" daemon [_thread_blocked, id=6488, stack(0x047f0000,0x04840000)]
  0x00c72000 JavaThread "Reference Handler" daemon [_thread_blocked, id=1100, stack(0x04620000,0x04670000)]
  0x0097b000 JavaThread "main" [_thread_blocked, id=6868, stack(0x00b70000,0x00bc0000)]

Other Threads:
  0x00c70400 VMThread [stack: 0x04680000,0x046d0000] [id=4224]
  0x00cb1c00 WatcherThread [stack: 0x04a00000,0x04a50000] [id=1460]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 4928K, used 2590K [0x24320000, 0x24870000, 0x29870000)
  eden space 4416K,  47% used [0x24320000, 0x245278e8, 0x24770000)
  from space 512K, 100% used [0x247f0000, 0x24870000, 0x24870000)
  to   space 512K,   0% used [0x24770000, 0x24770000, 0x247f0000)
 tenured generation   total 10944K, used 737K [0x29870000, 0x2a320000, 0x34320000)
   the space 10944K,   6% used [0x29870000, 0x29928660, 0x29928800, 0x2a320000)
 compacting perm gen  total 12288K, used 1344K [0x34320000, 0x34f20000, 0x38320000)
   the space 12288K,  10% used [0x34320000, 0x344700b0, 0x34470200, 0x34f20000)
    ro space 10240K,  42% used [0x38320000, 0x38760348, 0x38760400, 0x38d20000)
    rw space 12288K,  54% used [0x38d20000, 0x393a06f0, 0x393a0800, 0x39920000)

Card table byte_map: [0x00ac0000,0x00b70000] byte_map_base: 0x0099e700

Polling page: 0x000c0000

Code Cache  [0x02500000, 0x025d0000, 0x04500000)
 total_blobs=386 nmethods=160 adapters=161 free_code_cache=31940Kb largest_free_block=32706816

Compilation events (10 events):
Event: 0.846 Thread 0x00c8f400  155             org.lwjgl.MemoryUtil::getAddress (8 bytes)
Event: 0.847 Thread 0x00c8f400 nmethod 155 0x025ca688 code [0x025ca790, 0x025ca82c]
Event: 0.847 Thread 0x00c8f400  157             java.util.HashMap::getEntry (77 bytes)
Event: 0.847 Thread 0x00c8f400 nmethod 157 0x025ca888 code [0x025ca9a0, 0x025cab18]
Event: 0.871 Thread 0x00c8f400  158             java.lang.String::regionMatches (149 bytes)
Event: 0.872 Thread 0x00c8f400 nmethod 158 0x025cac48 code [0x025cadd0, 0x025cb0d0]
Event: 0.872 Thread 0x00c8f400  159   !         sun.net.www.ParseUtil::decode (316 bytes)
Event: 0.874 Thread 0x00c8f400 nmethod 159 0x025cba08 code [0x025cbcd0, 0x025ccab0]
Event: 0.875 Thread 0x00c8f400  160             java.net.URL::getFile (5 bytes)
Event: 0.875 Thread 0x00c8f400 nmethod 160 0x025ce088 code [0x025ce180, 0x025ce200]

GC Heap History (2 events):
Event: 0.762 GC heap before
{Heap before GC invocations=0 (full 0):
 def new generation   total 4928K, used 4348K [0x24320000, 0x24870000, 0x29870000)
  eden space 4416K,  98% used [0x24320000, 0x2475f2e0, 0x24770000)
  from space 512K,   0% used [0x24770000, 0x24770000, 0x247f0000)
  to   space 512K,   0% used [0x247f0000, 0x247f0000, 0x24870000)
 tenured generation   total 10944K, used 0K [0x29870000, 0x2a320000, 0x34320000)
   the space 10944K,   0% used [0x29870000, 0x29870000, 0x29870200, 0x2a320000)
 compacting perm gen  total 12288K, used 789K [0x34320000, 0x34f20000, 0x38320000)
   the space 12288K,   6% used [0x34320000, 0x343e57a8, 0x343e5800, 0x34f20000)
    ro space 10240K,  42% used [0x38320000, 0x38760348, 0x38760400, 0x38d20000)
    rw space 12288K,  54% used [0x38d20000, 0x393a06f0, 0x393a0800, 0x39920000)
Event: 0.765 GC heap after
Heap after GC invocations=1 (full 0):
 def new generation   total 4928K, used 512K [0x24320000, 0x24870000, 0x29870000)
  eden space 4416K,   0% used [0x24320000, 0x24320000, 0x24770000)
  from space 512K, 100% used [0x247f0000, 0x24870000, 0x24870000)
  to   space 512K,   0% used [0x24770000, 0x24770000, 0x247f0000)
 tenured generation   total 10944K, used 737K [0x29870000, 0x2a320000, 0x34320000)
   the space 10944K,   6% used [0x29870000, 0x29928660, 0x29928800, 0x2a320000)
 compacting perm gen  total 12288K, used 789K [0x34320000, 0x34f20000, 0x38320000)
   the space 12288K,   6% used [0x34320000, 0x343e57a8, 0x343e5800, 0x34f20000)
    ro space 10240K,  42% used [0x38320000, 0x38760348, 0x38760400, 0x38d20000)
    rw space 12288K,  54% used [0x38d20000, 0x393a06f0, 0x393a0800, 0x39920000)
}

Deoptimization events (0 events):
No events

Internal exceptions (10 events):
Event: 0.884 Thread 0x04c62000 Threw 0x2451d748 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.884 Thread 0x04c62000 Threw 0x2451dc60 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.884 Thread 0x04c62000 Threw 0x2451de00 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.884 Thread 0x04c62000 Threw 0x2451df70 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.884 Thread 0x04c62000 Threw 0x2451e500 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.884 Thread 0x04c62000 Threw 0x2451e6a0 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.884 Thread 0x04c62000 Threw 0x2451e810 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.885 Thread 0x04c62000 Threw 0x2451ec60 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.885 Thread 0x04c62000 Threw 0x2451ee00 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716
Event: 0.885 Thread 0x04c62000 Threw 0x2451ef70 at C:\jdk7u1_32P\jdk7u9_3984_new\hotspot\src\share\vm\prims\jni.cpp:716

Events (10 events):
Event: 0.878 loading class 0x04c54c70
Event: 0.878 loading class 0x04c54c70 done
Event: 0.879 loading class 0x04c54ac0
Event: 0.879 loading class 0x04c54ac0 done
Event: 0.882 loading class 0x057f7568
Event: 0.882 loading class 0x057f7568 done
Event: 0.883 loading class 0x3992d3d8
Event: 0.883 loading class 0x3992d580
Event: 0.883 loading class 0x3992d580 done
Event: 0.883 loading class 0x3992d3d8 done


Dynamic libraries:
0x00cf0000 - 0x00d1f000    C:\Program Files (x86)\Java\jre7\bin\javaw.exe
0x770a0000 - 0x77220000    C:\Windows\SysWOW64\ntdll.dll
0x74940000 - 0x74a50000    C:\Windows\syswow64\kernel32.dll
0x750f0000 - 0x75137000    C:\Windows\syswow64\KERNELBASE.dll
0x75050000 - 0x750f0000    C:\Windows\syswow64\ADVAPI32.dll
0x74c00000 - 0x74cac000    C:\Windows\syswow64\msvcrt.dll
0x75560000 - 0x75579000    C:\Windows\SysWOW64\sechost.dll
0x75890000 - 0x75980000    C:\Windows\syswow64\RPCRT4.dll
0x74780000 - 0x747e0000    C:\Windows\syswow64\SspiCli.dll
0x74770000 - 0x7477c000    C:\Windows\syswow64\CRYPTBASE.dll
0x74d40000 - 0x74e40000    C:\Windows\syswow64\USER32.dll
0x747f0000 - 0x74880000    C:\Windows\syswow64\GDI32.dll
0x74ea0000 - 0x74eaa000    C:\Windows\syswow64\LPK.dll
0x75400000 - 0x7549d000    C:\Windows\syswow64\USP10.dll
0x6f2a0000 - 0x6f43e000    C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
0x756e0000 - 0x75737000    C:\Windows\syswow64\SHLWAPI.dll
0x75260000 - 0x752c0000    C:\Windows\system32\IMM32.DLL
0x75580000 - 0x7564c000    C:\Windows\syswow64\MSCTF.dll
0x60510000 - 0x605ce000    C:\Program Files (x86)\Java\jre7\bin\msvcr100.dll
0x5c480000 - 0x5c7cd000    C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
0x72200000 - 0x72207000    C:\Windows\system32\WSOCK32.dll
0x74eb0000 - 0x74ee5000    C:\Windows\syswow64\WS2_32.dll
0x747e0000 - 0x747e6000    C:\Windows\syswow64\NSI.dll
0x6bf80000 - 0x6bfb2000    C:\Windows\system32\WINMM.dll
0x77070000 - 0x77075000    C:\Windows\syswow64\PSAPI.DLL
0x72b00000 - 0x72b0c000    C:\Program Files (x86)\Java\jre7\bin\verify.dll
0x67dc0000 - 0x67de0000    C:\Program Files (x86)\Java\jre7\bin\java.dll
0x679d0000 - 0x679e3000    C:\Program Files (x86)\Java\jre7\bin\zip.dll
0x73e40000 - 0x73e56000    C:\Windows\system32\CRYPTSP.dll
0x73e00000 - 0x73e3b000    C:\Windows\system32\rsaenh.dll
0x72700000 - 0x72717000    C:\Windows\system32\USERENV.dll
0x73df0000 - 0x73dfb000    C:\Windows\system32\profapi.dll
0x72ac0000 - 0x72ad4000    C:\Program Files (x86)\Java\jre7\bin\net.dll
0x73e70000 - 0x73eac000    C:\Windows\system32\mswsock.dll
0x72870000 - 0x72876000    C:\Windows\System32\wship6.dll
0x6eb80000 - 0x6eb90000    C:\Windows\system32\NLAapi.dll
0x6eb70000 - 0x6eb80000    C:\Windows\system32\napinsp.dll
0x6eb50000 - 0x6eb62000    C:\Windows\system32\pnrpnsp.dll
0x6eb00000 - 0x6eb44000    C:\Windows\system32\DNSAPI.dll
0x6eaf0000 - 0x6eaf8000    C:\Windows\System32\winrnr.dll
0x6eac0000 - 0x6eae7000    C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x73e60000 - 0x73e65000    C:\Windows\System32\wshtcpip.dll
0x72850000 - 0x7286c000    C:\Windows\system32\IPHLPAPI.DLL
0x72840000 - 0x72847000    C:\Windows\system32\WINNSI.DLL
0x727c0000 - 0x727c6000    C:\Windows\system32\rasadhlp.dll
0x727d0000 - 0x72808000    C:\Windows\System32\fwpuclnt.dll
0x72b10000 - 0x72b1f000    C:\Program Files (x86)\Java\jre7\bin\nio.dll
0x10000000 - 0x1004c000    C:\Java-Projects\Test\lwjgl.dll
0x5f3e0000 - 0x5f4a8000    C:\Windows\system32\OPENGL32.dll
0x666f0000 - 0x66712000    C:\Windows\system32\GLU32.dll
0x67a40000 - 0x67b27000    C:\Windows\system32\DDRAW.dll
0x67a30000 - 0x67a36000    C:\Windows\system32\DCIMAN32.dll
0x74a50000 - 0x74bed000    C:\Windows\syswow64\SETUPAPI.dll
0x754a0000 - 0x754c7000    C:\Windows\syswow64\CFGMGR32.dll
0x75650000 - 0x756df000    C:\Windows\syswow64\OLEAUT32.dll
0x74ef0000 - 0x7504c000    C:\Windows\syswow64\ole32.dll
0x752c0000 - 0x752d2000    C:\Windows\syswow64\DEVOBJ.dll
0x71c50000 - 0x71c63000    C:\Windows\system32\dwmapi.dll
0x72050000 - 0x72059000    C:\Windows\system32\VERSION.dll
0x71b50000 - 0x71bd0000    C:\Windows\system32\uxtheme.dll
0x688e0000 - 0x688e7000    C:\Windows\system32\atiglpxx.dll
0x69030000 - 0x6a380000    C:\Windows\system32\atioglxx.dll
0x05d50000 - 0x05e34000    C:\Windows\system32\aticfx32.dll
0x60620000 - 0x60681000    C:\Windows\system32\atiadlxy.dll
0x75980000 - 0x765ca000    C:\Windows\syswow64\SHELL32.dll
0x743d0000 - 0x743dd000    C:\Windows\system32\WTSAPI32.dll
0x74880000 - 0x748ad000    C:\Windows\syswow64\WINTRUST.dll
0x752e0000 - 0x753fe000    C:\Windows\syswow64\CRYPT32.dll
0x74bf0000 - 0x74bfc000    C:\Windows\syswow64\MSASN1.dll
0x68250000 - 0x6825b000    C:\Windows\system32\atigktxx.dll
0x754d0000 - 0x75553000    C:\Windows\syswow64\CLBCatQ.DLL
0x681b0000 - 0x68229000    C:\Windows\system32\mscms.dll
0x67d50000 - 0x67d88000    C:\Windows\system32\icm32.dll
0x73eb0000 - 0x73f9b000    C:\Windows\system32\dbghelp.dll

VM Arguments:
java_command: C:\Java-Projects\Test\Program.jar
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
PATH=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;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\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Live\Shared;C:\Windows\System32\WindowsPowerShell\v1.0\
USERNAME=Shared User
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, tsc, tscinvbit

Memory: 4k page, physical 4054096k(1639692k free), swap 8106340k(4395476k free)

vm_info: Java HotSpot(TM) Client VM (23.5-b02) for windows-x86 JRE (1.7.0_09-b05), built on Sep 24 2012 22:01:33 by "java_re" with unknown MS VC++:1600

time: Thu Jan 10 01:13:42 2013
elapsed time: 0 seconds
« Last Edit: January 10, 2013, 16:48:15 by Network »

*

Online spasi

  • *****
  • 2261
    • WebHotelier
Re: [BUG] A Fatal Error Has Been Detected
« Reply #1 on: January 10, 2013, 13:16:44 »
C  [lwjgl.dll+0x822e]  Java_org_lwjgl_opengl_NVVertexAttribInteger64bit_nglVertexAttribL3i64vNV+0xe
j  org.lwjgl.opengl.GL20.glGetUniformLocation(ILjava/lang/CharSequence;)I+20

This looks very suspicious and probably is a driver bug. But it's weird that it only happens when you launch the jar. Could you please verify that the shaders have compiled and the program has linked successfully before calling glGetUniformLocation? Also make sure that there are no OpenGL errors (call Util.checkGLError()).

Re: [BUG] A Fatal Error Has Been Detected
« Reply #2 on: January 10, 2013, 15:47:11 »
When I'm adding "Util.checkGLError()" to the Code it runs fine again in Eclipse and no Exceptions are caught, but when I'm compiling it and run the jar both with and without the console it just... does nothing. No Fatal Error but also no response at all.
I have to force close the program then.

Oh and this is how I initialize the shaders, I checked them again and it seems to be all right (Or am I missing something?):
Code: [Select]
quadID[5] = loadShader("shader/vertex.sdr", GL20.GL_VERTEX_SHADER);
quadID[6] = loadShader("shader/fragment.sdr", GL20.GL_FRAGMENT_SHADER);
quadID[4] = GL20.glCreateProgram();

GL20.glBindAttribLocation(quadID[4], 0, "in_Position");
GL20.glBindAttribLocation(quadID[4], 1, "in_Color");
GL20.glBindAttribLocation(quadID[4], 2, "in_TextureCoord");

GL20.glAttachShader(quadID[4], quadID[5]);
GL20.glAttachShader(quadID[4], quadID[6]);
GL20.glLinkProgram(quadID[4]);

quadID[8] = GL20.glGetUniformLocation(quadID[4], "projectionMatrix");
quadID[9] = GL20.glGetUniformLocation(quadID[4], "modelMatrix");

PS: Should I report this to AMD? (Don't know if this is possible or if they accept and actually work with such data at all)

Thank you very much
Net

*

Online spasi

  • *****
  • 2261
    • WebHotelier
Re: [BUG] A Fatal Error Has Been Detected
« Reply #3 on: January 10, 2013, 15:57:13 »
One problem I see is that you should call glBindAttribLocation after attaching the shaders.

Also, try the following:

1) Pass -Dorg.lwjgl.util.Debug=true to the JVM command line.
2) Create a debug context, i.e. use Display.create(new PixelFormat(), new ContextAttribs(4, 2).withDebug(true)); // replace 4, 2 if necessary
3) Insert the following code after creating the GL context and see if anything interesting comes up:

Code: [Select]
ContextCapabilities caps = GLContext.getCapabilities();
if ( caps.GL_ARB_debug_output )
ARBDebugOutput.glDebugMessageCallbackARB(new ARBDebugOutputCallback());
else if ( caps.GL_AMD_debug_output )
AMDDebugOutput.glDebugMessageCallbackAMD(new AMDDebugOutputCallback());

Re: [BUG] A Fatal Error Has Been Detected
« Reply #4 on: January 10, 2013, 16:25:06 »
Okay I swapped glBindAttribLocation now - thats funny because that didn't worked in the first place. Google told me that AMD Drivers don't accept it in this order. Funny because this order works the same now.
But still the same crash.

Then I have added your debugging code:
Code: [Select]
PixelFormat pxForm = new PixelFormat(8, 0, 0, 8);
ContextAttribs context = new ContextAttribs(4, 2);
context.withForwardCompatible(true);
context.withProfileCore(true);
context.withDebug(true);

Display.setDisplayMode(Display.getAvailableDisplayModes()[5]); // Should be standard resolution - 1280x1024 @60hz
Display.setTitle("Project");
Display.setFullscreen(fullscreen); // false
Display.create(pxForm, context);

// Debug Start
ContextCapabilities caps = GLContext.getCapabilities();
System.out.println("checking");
if (caps.GL_ARB_debug_output)
ARBDebugOutput
.glDebugMessageCallbackARB(new ARBDebugOutputCallback());
else if (caps.GL_AMD_debug_output)
AMDDebugOutput
.glDebugMessageCallbackAMD(new AMDDebugOutputCallback());
// Debug End

Again very interesting, other results in other environments.
Only in eclipse it is responding now, with this output:
[LWJGL] Initial mode: 1280 x 1024 x 32 @60Hz
[LWJGL] Found 66 displaymodes
[LWJGL] Removed 32 duplicate displaymodes
[LWJGL] MemoryUtil Accessor: AccessorUnsafe
Exception in thread "Thread-0" org.lwjgl.opengl.OpenGLException: Invalid operation (1282)
   at org.lwjgl.opengl.Util.checkGLError(Util.java:59)
   at org.lwjgl.opengl.DrawableGL.checkGLError(DrawableGL.java:82)
   at org.lwjgl.opengl.Display.swapBuffers(Display.java:614)
   at org.lwjgl.opengl.Display.update(Display.java:643)
   at org.lwjgl.opengl.Display.update(Display.java:625)
   at de.test.testlwjgl.Look.draw(Look.java:101)
   at de.test.testlwjgl.Loop.loopNonTimebased(Loop.java:46)
   at de.test.testlwjgl.Loop.run(Loop.java:38)
   at de.test.testlwjgl.Loop.start(Loop.java:27)
   at de.test.testlwjgl.Main.run(TeMgine2.java:132)
   at java.lang.Thread.run(Unknown Source)
« Last Edit: January 10, 2013, 16:29:47 by Network »

*

Online spasi

  • *****
  • 2261
    • WebHotelier
Re: [BUG] A Fatal Error Has Been Detected
« Reply #5 on: January 10, 2013, 16:32:49 »
Now the way you use ContextAttribs is wrong. This is a not so obvious feature of the API and we'll consider changing it in LWJGL 3.0. ContextAttribs is an immutable class, so every time you call a .withX method a new instance is returned. The proper way to use it is like so:

Code: [Select]
ContextAttribs context = new ContextAttribs(4, 2)
.withProfileCore(true)
.withDebug(true);

Notice that I removed withForwardCompatible, it isn't needed when you also specify the core profile.

Re: [BUG] A Fatal Error Has Been Detected
« Reply #6 on: January 10, 2013, 16:47:47 »
Ahhhh thank you very very much.
So it was my fault the whole time, well that doesn't really surprises me ;D It's often the fault of the bug reporter himself :)
Well LWJGL or OpenGL itself, I don't know, has sometimes those "interesting effects" on the rest of the code. The last time it didn't worked properly was because I paused the Thread which called the actual Thread which had the context.
And know this normal/console/eclipse stuff...

But anyway, I'm very grateful for your help.
Thank you very much
Net
« Last Edit: January 10, 2013, 16:51:19 by Network »