JOGL X11 Error On "GLProfile.getDefault();"

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

JOGL X11 Error On "GLProfile.getDefault();"

meltbox360
Hey everyone, I'm new here and to JOGL. I decided to try and set up a project following the JOGL wiki tutorial found here:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE

I followed the eclipse guide. Just as a note I used Gluegen-rt.jar and got rid of Gluegen.jar when setting it up. Don't know if that was a mistake or if I should use Gluegen-rt.jar

Next I followed this tutorial:
http://jogamp.org/wiki/index.php/Using_JOGL_in_AWT_SWT_and_Swing

NOTE: The code uses an OpenGL 2.0 context.
I copied the code that uses awt into eclipse and hit run. I got the following error:



Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 16: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 17: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 18: 153:14 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 20: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 21: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8b003d78, id 17, # 22: 153:14 Unknown
Exception in thread "main" javax.media.opengl.GLException: Profile GL_DEFAULT is not available on null, but: []
        at javax.media.opengl.GLProfile.get(GLProfile.java:771)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:555)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:566)
        at OneTriangleAWT.main(OneTriangleAWT.java:19)
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0.0, 0xffffffff8b003d78, refCount 1, unCloseable false]




So I decided to run it in debug which led me to the following line in the awt example being executed in my project:
"GLProfile glprofile = GLProfile.getDefault();"

The last thing eclipse took me to was:
"throw new GLException("Profile "+profile+" is not available on "+device+", but: "+glpMap.values());"
in GLProfile.class. That makes sense but I have no idea what to do with this information.

I am running Ubuntu 12.10 off of an external drive. I have the proprietary AMD drivers installed for my 7950 when I work at home. I use gnome as my desktop environment. Thanks for looking!

EDIT: The computer this happened on has intel graphics. I will try again on my AMD machine, perhaps it will somehow work there?
lspci output for it:

00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
        Subsystem: Dell OptiPlex 755
        Flags: bus master, fast devsel, latency 0, IRQ 44
        Memory at fea00000 (32-bit, non-prefetchable) [size=512K]
        I/O ports at ec90 [size=8]
        Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Memory at feb00000 (32-bit, non-prefetchable) [size=1M]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

gouessej
Administrator
Hi

Several people under OpenSUSE have the same problem, it would be fine to fix it once for all. Thank you for this information. Can you enable all debug logs and run your application again on this machine please?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

meltbox360
Will do that. Could you link me to something that tells me how to do that? Not sure which logging you are referring to or how to enable it. Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

gouessej
Administrator
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

Sven Gothel
Administrator
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

Sven Gothel
Administrator
In reply to this post by meltbox360
On 03/13/2013 07:29 PM, meltbox360 [via jogamp] wrote:

> Hey everyone, I'm new here and to JOGL. I decided to try and set up a project
> following the JOGL wiki tutorial found here:
> http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE
>
> I followed the eclipse guide. Just as a note I used Gluegen-rt.jar and got rid
> of Gluegen.jar when setting it up. Don't know if that was a mistake or if I
> should use Gluegen-rt.jar
>
> Next I followed this tutorial:
> http://jogamp.org/wiki/index.php/Using_JOGL_in_AWT_SWT_and_Swing
>
> NOTE: The code uses an OpenGL 2.0 context.
> I copied the code that uses awt into eclipse and hit run. I got the following
> error:
>
>
>
> Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such
> operation), dpy 0x8b003d78, id 17, # 16: 153:19 Unknown
> Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such
> operation), dpy 0x8b003d78, id 17, # 17: 153:19 Unknown
> Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such
> operation), dpy 0x8b003d78, id 17, # 18: 153:14 Unknown
> Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such
> operation), dpy 0x8b003d78, id 17, # 20: 153:19 Unknown
> Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such
> operation), dpy 0x8b003d78, id 17, # 21: 153:19 Unknown
> Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such
> operation), dpy 0x8b003d78, id 17, # 22: 153:14 Unknown
> Exception in thread "main" javax.media.opengl.GLException: Profile GL_DEFAULT
> is not available on null, but: []
>         at javax.media.opengl.GLProfile.get(GLProfile.java:771)
>         at javax.media.opengl.GLProfile.getDefault(GLProfile.java:555)
>         at javax.media.opengl.GLProfile.getDefault(GLProfile.java:566)
>         at OneTriangleAWT.main(OneTriangleAWT.java:19)
> X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1,
> reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
> X11Util: Open X11 Display Connections: 1
> X11Util: Open[0]: NamedX11Display[:0.0, 0xffffffff8b003d78, refCount 1,
> unCloseable false]
>
>
>
>
> So I decided to run it in debug which led me to the following line in the awt
> example being executed in my project:
> "GLProfile glprofile = GLProfile.getDefault();"
>
> The last thing eclipse took me to was:
> "throw new GLException("Profile "+profile+" is not available on "+device+",
> but: "+glpMap.values());"
> in GLProfile.class. That makes sense but I have no idea what to do with this
> information.
>
> I am running Ubuntu 12.10 off of an external drive. I have the proprietary AMD
> drivers installed for my 7950 when I work at home. I use gnome as my desktop
> environment. Thanks for looking!

Looks similar to
  http://forum.jogamp.org/connection-nil-in-graphics-device-tp4028605.html

since no X11 display connections seems to be accessible ?

Please join the forum thread above and reference this one,
plus do:

+++

Please use on of our new aggregated builds:

https://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL#Downloading_the_latest_aggregated_autobuild

https://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing
(updated wiki)

+++

We shall have a bugreport!



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

Re: JOGL X11 Error On "GLProfile.getDefault();"

meltbox360
In reply to this post by meltbox360
So I tried it just now on my AMD machine and everything works perfectly. I will post the requested things tomorrow and I will try the other build of JOGL. Thanks for the responses!
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

meltbox360
Here is my test log:

/usr/bin/java
java version "1.7.0_15"
OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.10.1)
OpenJDK Server VM (build 23.7-b01, mixed mode)
LIBXCB_ALLOW_SLOPPY_LOCK:
LIBGL_DRIVERS_PATH:
LIBGL_DEBUG:
java
-----------------------------------------------------------------------------------------------------
Platform: LINUX / Linux 3.5.0-25-generic (os), i386 (arch), GENERIC_ABI, 2 cores
MachineDescription: runtimeValidated true, littleEndian true, 32Bit true, primitive size / alignment:
  int8    1 / 1, int16   2 / 2
  int     4 / 4, long    4 / 4
  int32   4 / 4, int64   8 / 4
  float   4 / 4, double  8 / 4, ldouble 12 / 4
  pointer 4 / 4, page    4096
Platform: Java Version: 1.7.0_15, VM: OpenJDK Server VM, Runtime: OpenJDK Runtime Environment
Platform: Java Vendor: Oracle Corporation, http://java.oracle.com/, is JavaSE: true, AWT enabled: true
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: com.jogamp.common
Extension Name: com.jogamp.common
Specification Title: GlueGen Java Bindings Generator
Specification Vendor: JogAmp Community
Specification Version: 2.0
Implementation Title: GlueGen Run-Time
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.0-b52-20121101
Implementation Branch: rc
Implementation Commit: d430657cfd1f21885f3fdebebe6f0a49b1c5cd13
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: javax.media.opengl
Extension Name: javax.media.opengl
Specification Title: Java Bindings for OpenGL API Specification
Specification Vendor: JogAmp Community
Specification Version: 2.0
Implementation Title: Java Bindings for OpenGL Runtime Environment
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.0-b66-20121101
Implementation Branch: rc
Implementation Commit: 502847f59ef01c78a85e4ee5453a09d9b83d9a5e
-----------------------------------------------------------------------------------------------------
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8830a760, id 17, # 16: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8830a760, id 17, # 17: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8830a760, id 17, # 18: 153:14 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8830a760, id 17, # 20: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8830a760, id 17, # 21: 153:19 Unknown
Info: Nativewindow X11 Error: 1 - BadRequest (invalid request code or no such operation), dpy 0x8830a760, id 17, # 22: 153:14 Unknown
Default Profiles on device X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, ResourceToolkitLock[obj 0x17a7d15, isOwner false, <aa1da5, 80463c>[count 0, qsz 0, owner <NULL>]]]
        Native
                GL4bc false
                GL4 false
                GL3bc false
                GL3 false
                GL2 false
                GL2ES1 false
                GLES1 false
                GL2ES2 false
                GLES2 false
        Profiles
                default n/a


Desktop Capabilities:
        none

EGL Capabilities:
        none


Exception in thread "main" javax.media.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, ResourceToolkitLock[obj 0x17a7d15, isOwner false, <aa1da5, 80463c>[count 0, qsz 0, owner <NULL>]]], but: []
        at javax.media.opengl.GLProfile.get(GLProfile.java:771)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:555)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:566)
        at com.jogamp.newt.opengl.GLWindow.main(GLWindow.java:779)
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0.0, 0xffffffff8830a760, refCount 1, unCloseable false]
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

meltbox360
test_dbg.sh
gives me the following error:

: not foundg.bat: 1: etc/test_dbg.bat:
: not foundg.bat: 3: etc/test_dbg.bat:
etc/test_dbg.bat: 4: etc/test_dbg.bat: %BLD_DIR%gluegen-rt.jar: not found
: not foundg.bat: 4: etc/test_dbg.bat: %BLD_DIR%jogl-all.jar
CP_ALL %CP_ALL%
: not foundg.bat: 6: etc/test_dbg.bat:
: not foundg.bat: 9: etc/test_dbg.bat:
etc/test_dbg.bat: 11: etc/test_dbg.bat: Syntax error: Bad fd number
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

meltbox360
Using the newer build the same problem persists. I think the problem lies with my hardware or possibly Intel graphics in Ubuntu.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

gouessej
Administrator
In reply to this post by meltbox360
LIBGL_DRIVERS_PATH should not be empty.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

Sven Gothel
Administrator
In reply to this post by meltbox360
On 03/14/2013 06:13 PM, meltbox360 [via jogamp] wrote:

> test_dbg.sh
> gives me the following error:
>
> : not foundg.bat: 1: etc/test_dbg.bat:
> : not foundg.bat: 3: etc/test_dbg.bat:
> etc/test_dbg.bat: 4: etc/test_dbg.bat: %BLD_DIR%gluegen-rt.jar: not found
> : not foundg.bat: 4: etc/test_dbg.bat: %BLD_DIR%jogl-all.jar
> CP_ALL %CP_ALL%
> : not foundg.bat: 6: etc/test_dbg.bat:
> : not foundg.bat: 9: etc/test_dbg.bat:
> etc/test_dbg.bat: 11: etc/test_dbg.bat: Syntax error: Bad fd number
Sir, looks like you are trying to execute the Windows bat file on GNU/Linux :)

~Sven



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

Re: JOGL X11 Error On "GLProfile.getDefault();"

meltbox360
I will try again but i swear i put ".sh" at the end.... At least I hope I did...
I shall try again tomorrow!

Any thoughts on what might be the problem? I did notice the other thread had a different problem than I am having and they seem to come to a resolution.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

gouessej
Administrator
LIBGL_DRIVERS_PATH should not be empty! Please read my comments.

Edit.: It should work anyway, even without this variable.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

meltbox360
This post was updated on .
So is there anything that I can do to fix the problem? Is there a fix expected in the future or is this a problem on my end? Thanks.

Here is a pastebin of my test_dbg.log

http://pastebin.com/jAvzrGH5

update: glxinfo gives me the following

karol@karol-portableUbuntu:~$ glxinfo
name of display: :0.0
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  12
  Current serial number in output stream:  12


I am becoming increasingly convinced that having radeon drives installed and using it on a non radeon computer causes problems. I will try uninstalling the driver.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL X11 Error On "GLProfile.getDefault();"

gouessej
Administrator
As even glxinfo doesn't work, the problem doesn't come from JOGL.
Julien Gouesse | Personal blog | Website