Many profiles unavailable on ubuntu

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

Many profiles unavailable on ubuntu

Martin
Hi,
Trying to run a depth peeling program on ubuntu lead me to an exception saying many profiles can't be found.
The program is almost the same than the depth peeling example provided in JOGL demos, and is using JOGL2 rc5 (http://www.jzy3d.org/misc/depthpeeling/org.jogl.demos.dualdepthpeeling.zip).

Do you have an idea why it can't find profiles?
I recently updated nvidia drivers as follow:
sudo apt-get install nvidia-current

Cheers,
Martin
----------------------
Info: XInitThreads() called for concurrent Thread support
javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :0
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:267)
        at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:261)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NullPointerException
        at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:419)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:246)
        ... 2 more
Exception in thread "main" javax.media.opengl.GLException: Profiles [GL4bc, GL4, GL3bc, GL3, GL2, GLES2] not available on device null
        at javax.media.opengl.GLProfile.get(GLProfile.java:690)
        at javax.media.opengl.GLProfile.get(GLProfile.java:700)
        at javax.media.opengl.GLProfile.getMaxProgrammable(GLProfile.java:579)
        at demos.dualDepthPeeling.DualDepthPeeling.InitGL(DualDepthPeeling.java:523)
        at demos.dualDepthPeeling.DualDepthPeeling.<init>(DualDepthPeeling.java:134)
        at demos.dualDepthPeeling.DualDepthPeeling.main(DualDepthPeeling.java:837)



Reply | Threaded
Open this post in threaded view
|

Re: Many profiles unavailable on ubuntu

gouessej
Administrator
Hi

Have you found what was wrong?

Edit.: Reopen this bug report if it is still reproducible:
https://jogamp.org/bugzilla/show_bug.cgi?id=564
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Many profiles unavailable on ubuntu

Sven Gothel
Administrator
On 01/25/2013 02:16 PM, gouessej [via jogamp] wrote:
> Hi
>
> Have you found what was wrong?
Guess he has no OpenGL available ..

Note: I have added this demo to jogl-demos, AFAIK .. (long time ago)

~Sven


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

Re: Many profiles unavailable on ubuntu

Martin
In reply to this post by gouessej
Hi,
I updated the drivers but then encountered other errors.

The jzy3d port of the depth peeling example load without throwing exception, but the canvas displays only weird pixels. Probably a shader bug?

The jogl demo (I believe using RC10) throws an exception that I had no time to investigate (see below).

Cheers,
Martin
-----------------------------
Info: XInitThreads() called for concurrent Thread support
init
Exception in thread "main-AWTAnimator-1" javax.media.opengl.GLException: javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glTexImage2D(<int> 0x84F5, <int> 0x0, <int> 0x8CAC, <int> 0x400, <int> 0x300, <int> 0x0, <int> 0x1902, <int> 0x1406, <java.nio.Buffer> null): GL_INVALID_ENUM ( 1280 0x500),
        at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:98)
        at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:197)
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:164)
        at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:830)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:419)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:142)
        at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:176)
        at java.lang.Thread.run(Thread.java:679)
Caused by: javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glTexImage2D(<int> 0x84F5, <int> 0x0, <int> 0x8CAC, <int> 0x400, <int> 0x300, <int> 0x0, <int> 0x1902, <int> 0x1406, <java.nio.Buffer> null): GL_INVALID_ENUM ( 1280 0x500),
        at javax.media.opengl.DebugGL2.checkGLGetError(DebugGL2.java:24434)
        at javax.media.opengl.DebugGL2.glTexImage2D(DebugGL2.java:390)
        at demos.dualDepthPeeling.DualDepthPeeling.InitFrontPeelingRenderTargets(DualDepthPeeling.java:235)
        at demos.dualDepthPeeling.DualDepthPeeling.init(DualDepthPeeling.java:987)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:143)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:162)
        at javax.media.opengl.awt.GLCanvas$InitAction.run(GLCanvas.java:922)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:392)
        at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:956)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:216)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)
        at java.awt.EventQueue.access$400(EventQueue.java:96)
        at java.awt.EventQueue$2.run(EventQueue.java:631)
        at java.awt.EventQueue$2.run(EventQueue.java:629)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glClear(<int> 0x4000): Unknown glGetError() return value: ( 1286 0x506),
        at javax.media.opengl.DebugGL2.checkGLGetError(DebugGL2.java:24434)
        at javax.media.opengl.DebugGL2.glClear(DebugGL2.java:3257)
        at demos.dualDepthPeeling.DualDepthPeeling.RenderDualPeeling(DualDepthPeeling.java:551)
        at demos.dualDepthPeeling.DualDepthPeeling.display(DualDepthPeeling.java:939)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:182)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:170)
        at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:939)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:398)
        at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:832)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:419)
        at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:518)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
        at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
        at sun.awt.RepaintArea.paint(RepaintArea.java:240)
        at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:657)
        at java.awt.Component.dispatchEventImpl(Component.java:4826)
        at java.awt.Component.dispatchEvent(Component.java:4576)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
        at java.awt.EventQueue.access$400(EventQueue.java:96)
        at java.awt.EventQueue$2.run(EventQueue.java:631)
        at java.awt.EventQueue$2.run(EventQueue.java:629)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
        at java.awt.EventQueue$3.run(EventQueue.java:645)
        at java.awt.EventQueue$3.run(EventQueue.java:643)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Reply | Threaded
Open this post in threaded view
|

Re: Many profiles unavailable on ubuntu

gouessej
Administrator
glTexImage2D seems to use a format not supported by your hardware.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Many profiles unavailable on ubuntu

Martin
I'll try that thanks :)