EXCEPTION_ACCESS_VIOLATION when using JToolbar

Yet another annoying problem, although this one appears slightly more fatal - I was experimenting with JToolBars around a GLCanvas, and when I try and drag them around the whole app crashes out with a fatal exception. :frowning: Since I’m not sure where bug reports are supposed to be submitted (and i’m not sure what properly triggered this) I’ll post the stack trace here:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x695D3C06
Function=[Unknown.]
Library=C:\WINDOWS\System32\nvoglnt.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.glViewport(Native Method)
      at net.java.games.jogl.GLCanvas$1.run(GLCanvas.java:100)
      at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:180)
      - locked <02F67030> (a net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
      at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
      at net.java.games.jogl.Animator$1.run(Animator.java:87)
      at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x00400000 - 0x00406000       C:\Program Files\Java\j2re1.4.0\bin\javaw.exe
0x77F50000 - 0x77FF9000       C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F45000       C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5B000       C:\WINDOWS\system32\ADVAPI32.dll
0x77CC0000 - 0x77D35000       C:\WINDOWS\system32\RPCRT4.dll
0x77D40000 - 0x77DCC000       C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000       C:\WINDOWS\system32\GDI32.dll
0x77C10000 - 0x77C63000       C:\WINDOWS\system32\MSVCRT.dll
0x76390000 - 0x763AA000       C:\WINDOWS\System32\IMM32.DLL
0x629D0000 - 0x629D8000       C:\WINDOWS\System32\LPK.DLL
0x72FA0000 - 0x72FFA000       C:\WINDOWS\System32\USP10.dll
0x6D330000 - 0x6D442000       C:\Program Files\Java\j2re1.4.0\bin\client\jvm.dll
0x76B40000 - 0x76B6C000       C:\WINDOWS\System32\WINMM.dll
0x6D1D0000 - 0x6D1D7000       C:\Program Files\Java\j2re1.4.0\bin\hpi.dll
0x6D300000 - 0x6D30D000       C:\Program Files\Java\j2re1.4.0\bin\verify.dll
0x6D210000 - 0x6D228000       C:\Program Files\Java\j2re1.4.0\bin\java.dll
0x6D320000 - 0x6D32D000       C:\Program Files\Java\j2re1.4.0\bin\zip.dll
0x6D000000 - 0x6D0F6000       C:\Program Files\Java\j2re1.4.0\bin\awt.dll
0x73000000 - 0x73023000       C:\WINDOWS\System32\WINSPOOL.DRV
0x771B0000 - 0x772CA000       C:\WINDOWS\system32\ole32.dll
0x6D230000 - 0x6D235000       C:\Program Files\Java\j2re1.4.0\bin\jawt.dll
0x10000000 - 0x10071000       E:\My Stuff\Java\Vecript\Library\jogl.dll
0x5ED10000 - 0x5EDD6000       C:\WINDOWS\System32\OPENGL32.dll
0x68B30000 - 0x68B4E000       C:\WINDOWS\System32\GLU32.dll
0x73760000 - 0x737A5000       C:\WINDOWS\System32\DDRAW.dll
0x73BC0000 - 0x73BC6000       C:\WINDOWS\System32\DCIMAN32.dll
0x5AD70000 - 0x5ADA4000       C:\WINDOWS\system32\uxtheme.dll
0x6D180000 - 0x6D1D0000       C:\Program Files\Java\j2re1.4.0\bin\fontmanager.dll
0x69500000 - 0x698AC000       C:\WINDOWS\System32\nvoglnt.dll
0x0F870000 - 0x0F940000       C:\WINDOWS\System32\nView.dll
0x772D0000 - 0x77333000       C:\WINDOWS\system32\SHLWAPI.dll
0x773D0000 - 0x77BC4000       C:\WINDOWS\system32\SHELL32.dll
0x76BF0000 - 0x76BFB000       C:\WINDOWS\System32\PSAPI.DLL
0x77C00000 - 0x77C07000       C:\WINDOWS\system32\VERSION.dll
0x5EDE0000 - 0x5EDFA000       C:\WINDOWS\System32\OLEPRO32.DLL
0x77120000 - 0x771AB000       C:\WINDOWS\system32\OLEAUT32.dll
0x71960000 - 0x71A44000       C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a\comctl32.dll
0x77340000 - 0x773CB000       C:\WINDOWS\system32\comctl32.dll
0x0FAB0000 - 0x0FAD4000       C:\WINDOWS\System32\NVWRSENG.DLL
0x61220000 - 0x61232000       C:\Program Files\Microsoft Hardware\Mouse\MSH_ZWF.dll
0x76C90000 - 0x76CB2000       C:\WINDOWS\system32\imagehlp.dll
0x6D520000 - 0x6D59C000       C:\WINDOWS\system32\DBGHELP.dll

Local Time = Mon Jun 23 23:45:03 2003
Elapsed Time = 10
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#
# An error report file has been saved as hs_err_pid2688.log.
# Please refer to the file for further information.
#

I have no idea how my own code could trip such an error, so i guess its a problem with the resize event that gets sent to the GLCanvas when the toolbar gets docked. The real pain is that i have to do a total reboot to get things working again after it crashes, so debugging is slow and painful.

Code (messy :frowning: ) : studenti.lboro.ac.uk/~cojc5/Temp/ToolbarError.zip

I’m not sure what the source of your problem is, but you should submit a bug report. Official bug reports can be submitted at:

http://games-core.dev.java.net/

In the section titled “Issue Tracking”. The link is at the top left on the page listed above.

-chris

Actually the issues the Jogl developers have the rights to see can be filed at

http://jogl.dev.java.net/

under the Issue Tracking section. Please do file a bug report.

-Ken

Ok, one bug report filed. I’d try and track it down further myself, but having to reboot every time is just too damn annoying. I guess for the time being i’ll just go with fixed panels and avoid this.

Argh! I hit this bug again yesterday, it seems that calling .pack() on a JFrame containing a gl canvas can totally screw things up. It tends to have nasty side effects like killing my mouse pointer and bringing XP to its knees as well :frowning:

Has anyone in the Jogl team had a look at this?