Bug 112

Summary: TestContextDestruction demo crashes
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:46:58 CET


---- Reported by rexguo 2004-10-07 04:02:18 ----

Hi!

When running the TestContextDestruction demo using JOGL version 1.1b05, I get a
crash when I press the:

1. Toggle 'Frame 1's Component' the second time; or
2. Toggle 'Frame 2's Component' the second time; or
3. 'Swap Frame 1 and Frame 2's component'

I get the following crash report:

--------

Using ATI workaround of dispatching display() on event thread
Using ATI workaround of dispatching display() on event thread
Listener.init()
Listener.reshape()
Listener.reshape()
Listener.reshape()

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at
PC=0x692DC787
Function=atiPS+0xDEA07
Library=C:\WINDOWS\System32\atioglxx.dll

Current Java thread:
	at net.java.games.jogl.impl.windows.WGL.wglCreateContext(Native Method)
	at
net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:495)
	at
net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
	at
net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:135)
	- locked <0x105d2bc0> (a net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
	at
net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
	- locked <0x105d2bc0> (a net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
	at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
	- locked <0x105d2bc0> (a net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
	at
net.java.games.jogl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:238)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
	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 - 0x00407000 	C:\waterlogic\j2sdk1.4.2\bin\javaw.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
0x77D40000 - 0x77DCC000 	C:\WINDOWS\system32\USER32.dll
0x7E090000 - 0x7E0D1000 	C:\WINDOWS\system32\GDI32.dll
0x77C10000 - 0x77C63000 	C:\WINDOWS\system32\MSVCRT.dll
0x76390000 - 0x763AC000 	C:\WINDOWS\System32\IMM32.DLL
0x629C0000 - 0x629C8000 	C:\WINDOWS\System32\LPK.DLL
0x72FA0000 - 0x72FFA000 	C:\WINDOWS\System32\USP10.dll
0x08000000 - 0x08136000 	C:\waterlogic\j2sdk1.4.2\jre\bin\client\jvm.dll
0x76B40000 - 0x76B6C000 	C:\WINDOWS\System32\WINMM.dll
0x10000000 - 0x10007000 	C:\waterlogic\j2sdk1.4.2\jre\bin\hpi.dll
0x00830000 - 0x0083E000 	C:\waterlogic\j2sdk1.4.2\jre\bin\verify.dll
0x00840000 - 0x00858000 	C:\waterlogic\j2sdk1.4.2\jre\bin\java.dll
0x00860000 - 0x0086D000 	C:\waterlogic\j2sdk1.4.2\jre\bin\zip.dll
0x02B50000 - 0x02B6C000 	C:\waterlogic\j2sdk1.4.2\jre\bin\jdwp.dll
0x06B70000 - 0x06B75000 	C:\waterlogic\j2sdk1.4.2\jre\bin\dt_socket.dll
0x71AB0000 - 0x71AC4000 	C:\WINDOWS\System32\ws2_32.dll
0x71AA0000 - 0x71AA8000 	C:\WINDOWS\System32\WS2HELP.dll
0x71A50000 - 0x71A8B000 	C:\WINDOWS\System32\mswsock.dll
0x76F20000 - 0x76F45000 	C:\WINDOWS\System32\DNSAPI.dll
0x76FB0000 - 0x76FB7000 	C:\WINDOWS\System32\winrnr.dll
0x76F60000 - 0x76F8C000 	C:\WINDOWS\system32\WLDAP32.dll
0x76FC0000 - 0x76FC5000 	C:\WINDOWS\System32\rasadhlp.dll
0x71A90000 - 0x71A98000 	C:\WINDOWS\System32\wshtcpip.dll
0x06F50000 - 0x0705A000 	C:\waterlogic\j2sdk1.4.2\jre\bin\awt.dll
0x73000000 - 0x73023000 	C:\WINDOWS\System32\WINSPOOL.DRV
0x771B0000 - 0x772D4000 	C:\WINDOWS\system32\ole32.dll
0x07070000 - 0x070C0000 	C:\waterlogic\j2sdk1.4.2\jre\bin\fontmanager.dll
0x51000000 - 0x51050000 	C:\WINDOWS\System32\ddraw.dll
0x73BC0000 - 0x73BC6000 	C:\WINDOWS\System32\DCIMAN32.dll
0x5C000000 - 0x5C0C8000 	C:\WINDOWS\System32\D3DIM700.DLL
0x070D0000 - 0x070D5000 	C:\waterlogic\j2sdk1.4.2\jre\bin\jawt.dll
0x070E0000 - 0x0713E000 	C:\WINDOWS\system32\jogl.dll
0x5ED00000 - 0x5EDC6000 	C:\WINDOWS\System32\OPENGL32.dll
0x68B20000 - 0x68B3E000 	C:\WINDOWS\System32\GLU32.dll
0x74720000 - 0x74764000 	C:\WINDOWS\System32\MSCTF.dll
0x07610000 - 0x07620000 	C:\WINDOWS\System32\tabhook.dll
0x07640000 - 0x0766B000 	C:\WINDOWS\System32\msctfime.ime
0x69000000 - 0x6945D000 	C:\WINDOWS\System32\atioglxx.dll
0x746F0000 - 0x74716000 	C:\WINDOWS\System32\Msimtf.dll
0x76C90000 - 0x76CB2000 	C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000 	C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C07000 	C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 	C:\WINDOWS\System32\PSAPI.DLL

Heap at VM Abort:
Heap
 def new generation   total 576K, used 486K [0x10010000, 0x100b0000, 0x104f0000)
  eden space 512K,  90% used [0x10010000, 0x100846c8, 0x10090000)
  from space 64K,  32% used [0x10090000, 0x10095360, 0x100a0000)
  to   space 64K,   0% used [0x100a0000, 0x100a0000, 0x100b0000)
 tenured generation   total 1408K, used 966K [0x104f0000, 0x10650000, 0x14010000)
   the space 1408K,  68% used [0x104f0000, 0x105e18f8, 0x105e1a00, 0x10650000)
 compacting perm gen  total 6912K, used 6885K [0x14010000, 0x146d0000, 0x18010000)
   the space 6912K,  99% used [0x14010000, 0x146c9670, 0x146c9800, 0x146d0000)

Local Time = Thu Oct 07 19:01:01 2004
Elapsed Time = 3
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#


****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = hs_err_pid3680.log
PC                = 0x692dc787
SIGNAL            = -1073741819
FUNCTION NAME     = atiPS
OFFSET            = 0xDEA07
LIBRARY NAME      = C:\WINDOWS\System32\atioglxx.dll
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
# An error report file has been saved as hs_err_pid3680.log.
# Please refer to the file for further information.
#

--------

I'm using Eclipse 3.0 to run the tests from source. My Acer laptop's graphic
card is a ATI Radeon 9000 with the latest driver from Acer itself.

.rex



---- Additional Comments From kbr 2005-01-31 16:16:03 ----

With some recent improvements to the automatic single-threaded workaround
intended for ATI cards (now manually overridable with the system property
JOGL_SINGLE_THREADED_WORKAROUND) this demonstration now works properly on ATI
cards, or at least as well as it works on any other vendor's card (after
multiple additions and removals of the component, rendering slows down
drastically -- don't know at this point whether this is a bug in JOGL's OpenGL
context creation and destruction or whether it's a generic bug in most vendor's
OpenGL drivers, but it is reproducible at least on both Windows and Linux). The
relevant fixes are in the JOGL CVS repository and will be present in 1.1 b08.




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

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