Re: Crash in native code - dispatch_wglMakeCurrent1
Posted by
Wade Walker on
Aug 26, 2011; 2:09pm
URL: https://forum.jogamp.org/Crash-in-native-code-dispatch-wglMakeCurrent1-tp3279419p3286933.html
Well, nothing looks obviously wrong with the debug output (unfortunately). It seems like there are two possibilities:
1. An Open GL driver bug. Did you say that this worked fine until you updated your drivers, or has it always been broken?
2. JOGL hasn't set up the GL context correctly on the thread, so the driver crashes when it tries to use the context.
One thing you might try is using JOGL 1.1.1a (from
http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/) to see if it works any better. If JOGL 1.1.1a works, we would know that this is definitely a JOGL 2 bug, which would be invaluable. It looks like you're using the GL2 profile, so JOGL 1.1.1a may have all the functionality you need (JOGL 1.1.1a doesn't support GL3 or GL4). If you want to try this, I can assist you in changing any code you have from JOGL 1 to JOGL 2 (mostly it's just a matter of changing "GL2" to "GL").
I've also got some ideas about how we could add more self-checking to JOGL 2 to make sure it's setting up contexts correctly, but I need to run that past Sven before I try it out, and it would be nice to have confirmation that this is really a JOGL 2 bug before I try it, since it could require a lot of new code.