Cannot initialize JOGL on Mesa swrast after upgrade
Posted by Dolda2000 on Feb 06, 2014; 3:23am
URL: https://forum.jogamp.org/Cannot-initialize-JOGL-on-Mesa-swrast-after-upgrade-tp4031458.html
Dear forum,
I'm trying to move a program that uses JOGL on Mesa's software renderer from a system running Debian 6.0 to Debian 7.0, and suddenly JOGL cannot initialize any longer. I cannot quite seem to figure out why, though, so any help would be helpful.
At the obvious level, I get this exception: GLException: javax.media.opengl.GLException: Profile GL_DEFAULT is not available on null, but: []
To try and get to the root with that problem, I ran the main function in com.jogamp.newt.opengl.GLWindow for its debug output, and it says the following:
javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :6
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:313)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:295)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.media.opengl.GLException: glXGetFBConfig(0x8010) failed: error code Unknown error code -1
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetFBConfig(X11GLXGraphicsConfiguration.java:354)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.FBCfgDrawableTypeBits(X11GLXGraphicsConfiguration.java:255)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.GLXFBConfig2GLCapabilities(X11GLXGraphicsConfiguration.java:280)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationFBConfig(X11GLXGraphicsConfigurationFactory.java:333)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:233)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:508)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:519)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:273)
... 2 more
This would seem to be the actual problem, but I don't see why glXGetFBConfig would start to fail just because I'm running a newer Debian version. The glxinfo program can list GLXFBConfigs properly:
6 GLXFBConfigs:
visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat
----------------------------------------------------------------------------
0x000 0 sg 1 0 0 . . 0 0 0 0 . . 0 0 0 0 0 0 0 0 0 None
0x022 8 gs 0 8 0 r y . 2 3 3 0 . . 0 16 8 16 16 16 16 0 0 None
0x000 0 gs 1 0 0 . . 0 0 0 0 . . 0 0 0 0 0 0 0 0 0 None
0x024 8 tc 0 8 0 r y . 3 3 2 0 . . 0 16 8 16 16 16 16 0 0 None
0x025 8 dc 0 8 0 r y . 3 3 2 0 . . 0 16 8 16 16 16 16 0 0 None
0x026 8 sg 0 8 0 r y . 2 3 3 0 . . 0 16 8 16 16 16 16 0 0 None
And I can only imagine it uses the same function to get them, no?