pbuffer creation error: glXCreatePbuffer() failed

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

pbuffer creation error: glXCreatePbuffer() failed

neothemachine
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

gouessej
Administrator
Please write a bug report.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

neothemachine
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

Sven Gothel
Administrator
In reply to this post by neothemachine
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



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

Sven Gothel
Administrator
In reply to this post by neothemachine
On 03/15/2013 10:09 AM, neothemachine [via jogamp] wrote:
> Before I do that, is there a simple demo (in jogl-demos?) which uses pbuffers?
> Then I would like to first do a test with that.

In our JOGL unit tests we have tons of offscreen tests
in all colors :) (FBO, pbuffer; NEWT, core, ..)

Maybe you could 'simply' build JOGL yourself and run all or a single
the unit test[s] ?

Since you use GLWindow w/ pbuffer, this seems to fit well:
  com.jogamp.opengl.test.junit.jogl.offscreen.TestOffscreen01GLPBufferNEWT

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

Sven Gothel
Administrator
In reply to this post by neothemachine
On 03/15/2013 10:24 AM, Sven Gothel wrote:

> On 03/15/2013 10:09 AM, neothemachine [via jogamp] wrote:
>> Before I do that, is there a simple demo (in jogl-demos?) which uses pbuffers?
>> Then I would like to first do a test with that.
>
> In our JOGL unit tests we have tons of offscreen tests
> in all colors :) (FBO, pbuffer; NEWT, core, ..)
>
> Maybe you could 'simply' build JOGL yourself and run all or a single
> the unit test[s] ?
>
> Since you use GLWindow w/ pbuffer, this seems to fit well:
>   com.jogamp.opengl.test.junit.jogl.offscreen.TestOffscreen01GLPBufferNEWT
This tests much more cases:
  com.jogamp.opengl.test.junit.jogl.acore.TestGLAutoDrawableGLWindowOnOffscrnCapsNEWT

And this one offscreen w/o NEWT - just w/ core JOGL:
  com.jogamp.opengl.test.junit.jogl.acore.TestGLAutoDrawableFactoryOffscrnCapsNEWT

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

gouessej
Administrator
In reply to this post by Sven Gothel
I only get a black screen when I enable a light with  Mesa 8.0.2...
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

neothemachine
In reply to this post by Sven Gothel
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

neothemachine
In reply to this post by Sven Gothel
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

neothemachine
In reply to this post by Sven Gothel
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

neothemachine
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

Sven Gothel
Administrator
In reply to this post by neothemachine
On 03/15/2013 11:46 AM, neothemachine [via jogamp] wrote:
> Alright, got the tests to execute using
>
> java -cp
> "jar/junit-4.10.jar:jar/ant-junit-1.7.1.jar:jar/ant-1.7.1.jar:jar/gluegen-rt.jar:jar/jogl-all.jar:jar/jogl-test.jar"
> com.jogamp.opengl.test.junit.jogl.acore.TestGLAutoDrawableFactoryOffscrnCapsNEWT
>

Very good, sure - we need to add this to Wiki.

Would be great to have debug flags [2] enabled as well- [1] would be too much
 [1] -Djogamp.debug=all -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all
 [2] -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all

>
> This provides good data for a bug report (will create one now): 5
> failures out of 18 tests.

Will check you report 'soon' - thank you!

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

neothemachine
In reply to this post by Sven Gothel
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: pbuffer creation error: glXCreatePbuffer() failed

Wade Walker
Administrator
In reply to this post by Sven Gothel
Sven Gothel wrote
On 03/15/2013 11:46 AM, neothemachine [via jogamp] wrote:
> Alright, got the tests to execute using
>
> java -cp
> "jar/junit-4.10.jar:jar/ant-junit-1.7.1.jar:jar/ant-1.7.1.jar:jar/gluegen-rt.jar:jar/jogl-all.jar:jar/jogl-test.jar"
> com.jogamp.opengl.test.junit.jogl.acore.TestGLAutoDrawableFactoryOffscrnCapsNEWT
>
Very good, sure - we need to add this to Wiki.
This is already on the wiki at http://jogamp.org/wiki/index.php/Contributing_a_new_feature_or_fix#Create_a_new_unit_test, though it might be a bit hard to find.