Bug 534 - Disposing a GLJPanel causes a JVM crash
Summary: Disposing a GLJPanel causes a JVM crash
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: pc_x86_64 linux
: --- minor
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2011-12-14 12:48 CET by Julien Gouesse
Modified: 2011-12-22 01:17 CET (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
jogl d225d0a8a16e362ddb14cb93c124eb06cf0ff05e
Workaround: ---


Attachments
crash logs (54.91 KB, text/x-log)
2011-12-14 12:48 CET, Julien Gouesse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Gouesse 2011-12-14 12:48:17 CET
Created attachment 302 [details]
crash logs

Hi

I tried the following demo:
http://jogamp.org/deployment/jogamp-current/jogl-demos/JRefract.jnlp

When I close a JInternalFrame, the GLJPanel gets disposed and the JVM crashes (with Java 1.6 update 30) or the GUI stays completely frozen (with Java 1.6 update 26). I use Cent OS Linux 5.3 and an Nvidia Quadro FX graphics card. Please find enclosed the logs.
Comment 1 Sven Gothel 2011-12-21 18:48:13 CET
Reproduced on CentOS 6.1, ATI 8.92 (11.12) and Ubuntu NV 290.10

- Doesn't work at all for ATI 8.90 (11.11), ie. Swing/J2DOGL itself fails to work.

- ATI 8.92 (11.12) Swing/J2DOGL needs a manual resize to even show the JFrame,
  w/o JOGL being involved.

Testing fix on OS X and Windows .. then deliver.
Comment 2 Sven Gothel 2011-12-21 23:44:16 CET
J2DOGL Swing GLJPanel

Linux:
 - CentOS 6.1, ATI 8.92 (11.12), JRE 1.6.0_30 - Okish *1
 - Ubuntu 11.04,  NV 290.10, JRE 1.6.0_29/30 - OK
 - Ubuntu 11.10,  ATI 8.90 (11.11) , JRE 1.6.0_29/30 - NOPE !1
 - Ubuntu 11.10,  ATI 8.92 (11.12) , JRE 1.6.0_29/30 - Okish *1

Windows:
  - NV 285.62 and 290.53 doesn't work w/ J2DOGL at all (1.6.0 29 or 30)
  - Don't know which which configuration actually works at all,
    this is not JOGL related.

Mac OSX:
  - doesn't use 'sun.java2d.opengl.CGLGraphicsConfig', but 'apple.awt.CGraphicsConfig'
  - n/a !

!1 Swing crashes, not JOGL related
*1 Swing needs manual resize or refresh (move window out of screen and back)
Comment 3 Sven Gothel 2011-12-22 01:17:35 CET
jogl d225d0a8a16e362ddb14cb93c124eb06cf0ff05e

Comment 2 documents the result of this patch