Bug 152

Summary: Exception in Native Code while forcing all work onto the AWT event queue thread
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED INVALID    
Severity: normal    
Priority: P2    
Version: 1   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:47:42 CET


---- Reported by styles 2005-03-31 07:29:25 ----

OS: WindowsXP Professional w/ SP2
CPU: Intel P4 2.66GHz
Vid Card: Intel onboard 82865G
Driver: latest version 6.14.10.4277

All previous versions of JOGL have run these demos just fine. Just with the
latest version 1.1b10 I encounter an exception in the native code. Examining the
stack trace, it fails during a call in my code to gl.glGenTextures().
If specifying -Djogl.1thread=false on the command line, the app then runs as
expected without error.

Below is the dump:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x36F145B
Function=[Unknown.]
Library=C:\WINDOWS\system32\ialmgicd.dll

NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
	at net.java.games.jogl.impl.windows.WindowsGLImpl.glGenTextures(Native Method)
	at Lesson18.initCustom(Lesson18.java:172)
	at Renderer.init(Renderer.java:213)
	at net.java.games.jogl.impl.GLDrawableHelper.init(GLDrawableHelper.java:68)
	at net.java.games.jogl.GLCanvas$InitAction.run(GLCanvas.java:234)
	at
net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:171)
	- locked <0x10091180> (a net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
	at
net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:129)
	- locked <0x10091180> (a net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
	at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:246)
	- locked <0x10091180> (a net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
	at
net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.invokeGL(WindowsOnscreenGLContext.java:76)
	- locked <0x105b2f40> (a java.awt.Component$AWTTreeLock)
	at net.java.games.jogl.GLCanvas$2.run(GLCanvas.java:122)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Dynamic libraries:
0x00400000 - 0x0040B000 	C:\j2sdk1.4.2_05\jre\bin\javaw.exe
0x7C900000 - 0x7C9B0000 	C:\WINDOWS\system32\ntdll.dll
0x7C800000 - 0x7C8F4000 	C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E6B000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77E70000 - 0x77F01000 	C:\WINDOWS\system32\RPCRT4.dll
0x77D40000 - 0x77DD0000 	C:\WINDOWS\system32\USER32.dll
0x77F10000 - 0x77F56000 	C:\WINDOWS\system32\GDI32.dll
0x77C10000 - 0x77C68000 	C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08139000 	C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
0x76B40000 - 0x76B6D000 	C:\WINDOWS\system32\WINMM.dll
0x10000000 - 0x10007000 	C:\j2sdk1.4.2_05\jre\bin\hpi.dll
0x00830000 - 0x0083E000 	C:\j2sdk1.4.2_05\jre\bin\verify.dll
0x00840000 - 0x00859000 	C:\j2sdk1.4.2_05\jre\bin\java.dll
0x00860000 - 0x0086D000 	C:\j2sdk1.4.2_05\jre\bin\zip.dll
0x02E50000 - 0x02F62000 	C:\j2sdk1.4.2_05\jre\bin\awt.dll
0x73000000 - 0x73026000 	C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763AD000 	C:\WINDOWS\system32\IMM32.dll
0x774E0000 - 0x7761D000 	C:\WINDOWS\system32\ole32.dll
0x5AD70000 - 0x5ADA8000 	C:\WINDOWS\system32\uxtheme.dll
0x02FE0000 - 0x03031000 	C:\j2sdk1.4.2_05\jre\bin\fontmanager.dll
0x73760000 - 0x737A9000 	C:\WINDOWS\system32\ddraw.dll
0x73BC0000 - 0x73BC6000 	C:\WINDOWS\system32\DCIMAN32.dll
0x73940000 - 0x73A10000 	C:\WINDOWS\system32\D3DIM700.DLL
0x74720000 - 0x7476B000 	C:\WINDOWS\system32\MSCTF.dll
0x77120000 - 0x771AC000 	C:\WINDOWS\system32\OLEAUT32.DLL
0x031A0000 - 0x031A5000 	C:\j2sdk1.4.2_05\jre\bin\jawt.dll
0x03230000 - 0x03290000 	C:\WINDOWS\system32\jogl.dll
0x5ED00000 - 0x5EDCC000 	C:\WINDOWS\system32\OPENGL32.dll
0x68B20000 - 0x68B40000 	C:\WINDOWS\system32\GLU32.dll
0x036E0000 - 0x03913000 	C:\WINDOWS\system32\ialmgicd.dll
0x039C0000 - 0x03A40000 	C:\WINDOWS\system32\ialmgdev.dll
0x76C90000 - 0x76CB8000 	C:\WINDOWS\system32\imagehlp.dll
0x59A60000 - 0x59B01000 	C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C08000 	C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 	C:\WINDOWS\system32\PSAPI.DLL

Heap at VM Abort:
Heap
 def new generation   total 576K, used 130K [0x10010000, 0x100b0000, 0x104f0000)
  eden space 512K,  13% used [0x10010000, 0x10020a58, 0x10090000)
  from space 64K, 100% used [0x10090000, 0x100a0000, 0x100a0000)
  to   space 64K,   0% used [0x100a0000, 0x100a0000, 0x100b0000)
 tenured generation   total 1408K, used 1077K [0x104f0000, 0x10650000, 0x14010000)
   the space 1408K,  76% used [0x104f0000, 0x105fd568, 0x105fd600, 0x10650000)
 compacting perm gen  total 6656K, used 6514K [0x14010000, 0x14690000, 0x18010000)
   the space 6656K,  97% used [0x14010000, 0x1466cbd8, 0x1466cc00, 0x14690000)

Local Time = Thu Mar 31 10:16:38 2005
Elapsed Time = 4
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode)
#



---- Additional Comments From kbr 2005-05-06 17:49:40 ----

I believe the submitter indicated on the forums that this was caused by calling
glBindTexture(-1), leading to a driver crash later. Please file a new bug and
attach a test case if the problem persists. The DebugGL pipeline can help track
down these kinds of problems very quickly.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:47 EDT  ---

This bug was previously known as _bug_ 152 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=152