Posted by
Sven Gothel on
Mar 15, 2013; 9:19am
URL: https://forum.jogamp.org/pbuffer-creation-error-glXCreatePbuffer-failed-tp4028664p4028671.html
On 03/14/2013 11:05 PM, neothemachine [via jogamp] wrote:
> Doing some more testing on a virtual machine with Xvfb, I came across this:
>
> Exception in thread "main" java.lang.RuntimeException:
> javax.media.opengl.GLException: pbuffer creation error: glXCreatePbuffer() failed
> at jogamp.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:205)
> at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:135)
> at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:204)
> at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:1577)
> at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:777)
> at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:781)
> at com.jogamp.newt.opengl.GLWindow.setVisible(GLWindow.java:394)
> at
> com.ardor3d.framework.jogl.JoglNewtWindow.setVisible(JoglNewtWindow.java:130)
> ...
> Caused by: javax.media.opengl.GLException: pbuffer creation error:
> glXCreatePbuffer() failed
> at
> jogamp.opengl.x11.glx.X11PbufferGLXDrawable.createPbuffer(X11PbufferGLXDrawable.java:127)
>
> at
> jogamp.opengl.x11.glx.X11PbufferGLXDrawable.setRealizedImpl(X11PbufferGLXDrawable.java:68)
>
> at jogamp.opengl.GLDrawableImpl.setRealized(GLDrawableImpl.java:182)
> at
> com.jogamp.newt.opengl.GLWindow$GLLifecycleHook.setVisibleActionPost(GLWindow.java:475)
>
> at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:738)
> at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:769)
> at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:131)
> at
> jogamp.newt.DefaultEDTUtil$EventDispatchThread.run(DefaultEDTUtil.java:313)
>
> In the source code of X11PbufferGLXDrawable I saw "// FIXME: query X error
> code for detail error message". Any chance of getting this implemented? Don't
> know how much effort it is though.
It should have been dumped asynchronous on the stderr output,
if you have enabled all debug flags,
since we have an X11 IO and Error handler,
but none is visible.
Never experience pbuffer failures, interesting.
- GLCaps[glx vid ----, fbc 0x41: rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 0/0/0, dbl, mono , sw, GLProfile[GL2/GL2.sw], offscr[pbuffer [r2t 0, r2tr 0, float 0]]]]
- size 128x128
- main-Display-.x11_:99.0-1-EDT-1: setRealized: X11PbufferGLXDrawable false -> true
- Pbuffer config: X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type .x11, connection :99.0, unitID 0, handle 0x7f789404a180,
ResourceToolkitLock[obj 0x72e5355f, isOwner true, <26132ae7, 3465b738>[count 1, qsz 0, owner <main-Display-.x11_:99.0-1-EDT-1>]]],
idx 0], visualID 0x0, fbConfigID 0x41,
requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 8/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.sw], offscr[pbuffer [r2t 0, r2tr 0, float 0], bitmap]],
chosen GLCaps[glx vid ----, fbc 0x41: rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 0/0/0, dbl, mono , sw, GLProfile[GL2/GL2.sw], offscr[pbuffer [r2t 0, r2tr 0, float 0]]]]
"failed to create drawable" <- from your code ?
IMHO X11 display is fine as well as the FBConfig and size.
Please file a bug report, and add this email content
to it. Please attach all your logs as well.
We may need to run some more tests on your machine to determine
why it doesn't work, i.e. whether Mesa 8.0.2 causes problems .. etc.
Pls test on another machine as well, w/ diff. GL driver.
Thank you.
~Sven