Hello,
is anyone using this configuration? I have simple code that works fine under Windows, but I get following exception when run under Linux. (not a single hit when searching Google) : Info: XInitThreads() called for concurrent Thread support QtJambi: Exception pending in native code in file '../cpp/com_trolltech_qt_opengl/qtjambishell_QGLWidget.cpp':774 Exception in thread "main" javax.media.opengl.GLException: Error: current context null at com.jogamp.opengl.impl.x11.glx.X11ExternalGLXContext.create(X11ExternalGLXContext.java:64) at com.jogamp.opengl.impl.x11.glx.X11GLXDrawableFactory.createExternalGLContext(X11GLXDrawableFactory.java:250) at net.musanek.vlt.jogl.GLWidget.initializeGL(GLWidget.java:43) at com.trolltech.qt.gui.QWidget.__qt_show(Native Method) at com.trolltech.qt.gui.QWidget.show(QWidget.java:2254) at net.musanek.vlt.jogl.GLWidget.main(GLWidget.java:228) Thanks for help |
sorry, I don't know QtJambi.
but if you could somehow build a small testcase to reproduce the issue (without native code if possible)... always welcome regards, michael On 06/20/2010 08:00 PM, musa [via jogamp] wrote: Hello, |
Hello Michael,
thanks for reply. I did test it again in Windows and get error as well, but the exception was clear as oppose to Linux and helped me to fix it. The previous test I made in windows was using older version of jogl taken from some example. The problem was in setting the context in Qt using context().makeCurrent(); (I was expecting this to be set in this method) : public void initializeGL() { GLProfile profile = GLProfile.get(GLProfile.GL2); GLDrawableFactory factory = GLDrawableFactory.getFactory(profile); context().makeCurrent(); ctx = factory.createExternalGLContext(); ctx.makeCurrent(); gl = ctx.getGL().getGL2(); glu = new GLU(); glut = new GLUT(); } This code works. It still throws some Info at the start and SIGSEGV when closing but it works. Info: XInitThreads() called for concurrent Thread support # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f9e4f5173c4, pid=2216, tid=140317892855568 # # JRE version: 6.0_20-b02 # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 ) # Problematic frame: # C [libpthread.so.0+0x93c4] pthread_mutex_lock+0x4 # # An error report file with more information is saved as: # /home/musa/data/eclipse/jogl/hs_err_pid2216.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. |
regards, michael On 06/22/2010 10:59 PM, musa [via jogamp] wrote: Hello Michael, |
Administrator
|
In reply to this post by musa
On Tuesday, June 22, 2010 11:59:56 pm musa [via jogamp] wrote:
> > Hello Michael, > > thanks for reply. > I did test it again in Windows and get error as well, but the exception was > clear as oppose to Linux and helped me to fix it. > The previous test I made in windows was using older version of jogl taken > from some example. > > The problem was in setting the context in Qt using context().makeCurrent(); > (I was expecting this to be set in this method) : > > public void initializeGL() { > > GLProfile profile = GLProfile.get(GLProfile.GL2); > GLDrawableFactory factory = GLDrawableFactory.getFactory(profile); > context().makeCurrent(); > ctx = factory.createExternalGLContext(); > ctx.makeCurrent(); > gl = ctx.getGL().getGL2(); > glu = new GLU(); > glut = new GLUT(); > } > > This code works. > > It still throws some Info at the start and SIGSEGV when closing but it > works. > > Info: XInitThreads() called for concurrent Thread support Don't know QtJambi, but if you _can_, please call XInitThreads() as the very first X11 methods in your application. Read the manual of it .. Cheers, Sven > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x00007f9e4f5173c4, pid=2216, tid=140317892855568 > # > # JRE version: 6.0_20-b02 > # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode > linux-amd64 ) > # Problematic frame: > # C [libpthread.so.0+0x93c4] pthread_mutex_lock+0x4 > # > # An error report file with more information is saved as: > # /home/musa/data/eclipse/jogl/hs_err_pid2216.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # The crash happened outside the Java Virtual Machine in native code. > # See problematic frame for where to report the bug. > > > > ______________________________________ > View message @ http://jogamp.762907.n3.nabble.com/QtJambi-JOGL-Ubuntu-Lucid-tp909554p915308.html > To start a new topic under jogamp, email [hidden email] > To unsubscribe from jogamp, click http://jogamp.762907.n3.nabble.com/subscriptions/Unsubscribe.jtp?code=c2dvdGhlbEBqYXVzb2Z0LmNvbXw3NjI5MDd8MzkxNDI4MzU5 > -- health & wealth mailto:[hidden email] ; http://jausoft.com land : +49 (471) 4707742 ; cell: +49 (151) 28145941 Timezone CET: PST+9, EST+6, UTC+1 |
Free forum by Nabble | Edit this page |