"connection nil" in graphics device

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

"connection nil" in graphics device

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

Re: "connection nil" in graphics device

Sven Gothel
Administrator
On 03/12/2013 10:40 PM, neothemachine [via jogamp] wrote:

> Hi,
>
> I'm trying to get jogl 2 (rc11) running on a virtual machine via Xvfb on
> Ubuntu. I started Xvfb, set DISPLAY accordingly, and glxinfo says among others:
>
> display: :99  screen: 0
> direct rendering: Yes
> server glx vendor string: SGI
> server glx version string: 1.4
> client glx vendor string: Mesa Project and SGI
> client glx version string: 1.4
> GLX version: 1.4
> OpenGL vendor string: VMware, Inc.
> OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x300)
> OpenGL version string: 2.1 Mesa 8.0.2
> OpenGL shading language version string: 1.20
>
>
> When I try to use Newt through ardor3d-jogl, I get the following:
>
> javax.media.opengl.GLException: Profiles [GL4bc, GL3bc, GL2, GLES1] not available on
>   device X11GraphicsDevice[type .x11, connection nil, unitID 0, handle 0x0,
>   ResourceToolkitLock[obj 0x56bbb693, isOwner false, <3dcf9961, 85ecefb>[count 0, qsz 0, owner <NULL>]]]
>         at javax.media.opengl.GLProfile.get(GLProfile.java:819)
>         at javax.media.opengl.GLProfile.get(GLProfile.java:830)
>         at javax.media.opengl.GLProfile.getMaxFixedFunc(GLProfile.java:636)
>         at com.ardor3d.framework.jogl.CapsUtil.getCapsForSettings(CapsUtil.java:39)
>         at com.ardor3d.framework.jogl.JoglNewtWindow.<init>(JoglNewtWindow.java:54)
>         at com.ardor3d.framework.jogl.JoglNewtWindow.<init>(JoglNewtWindow.java:48)
> ...
>
>
> I guess "connection nil" is the problem.
>
> What I'm trying to do is already running on Travis CI tests
> (https://travis-ci.org/neothemachine/ardor3d-screenshot/builds/5143129), which
> also uses Xvfb. Now, I try to do something similar on an Amazon EC2 virtual
> machine.
>
> I know it's hard to do guesses at this from afar. That's why I'm only asking
> if someone experienced something similar with the "connection nil" thing, or
> has some clues what might cause issues like that in general.
Fascinating, seems like our Nativewindow X11Util cannot query the default
display device.

Have you setup DISPLAY env var properly ?
Seems so, since glxinfo seems to work.
Is DISPLAY -> ':99' or ':99.0' ?

+++

2 things I like to have:

a) your exact setup (linux distribution, java version, X11 setup, X11 WM, ..)

b) full debug logs (see FAQ Bugreport)

Thank you.

~Sven

>
> Thanks
> Maik
>


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

Re: "connection nil" in graphics device

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

Re: "connection nil" in graphics device

Sven Gothel
Administrator
In reply to this post by neothemachine
On 03/13/2013 08:16 PM, Sven Gothel wrote:
>
> +++

Also:

Please use on of our new aggregated builds:

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


>
> 2 things I like to have:
>
> a) your exact setup (linux distribution, java version, X11 setup, X11 WM, ..)
>
> b) full debug logs (see FAQ Bugreport)

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

>
> Thank you.
>
> ~Sven
>
>>
>> Thanks
>> Maik
>>
>


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

Re: "connection nil" in graphics device

Sven Gothel
Administrator
In reply to this post by neothemachine
On 03/13/2013 09:59 PM, Sven Gothel wrote:

> On 03/13/2013 08:16 PM, Sven Gothel wrote:
>>
>> +++
>
> Also:
>
> Please use on of our new aggregated builds:
>
> https://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL#Downloading_the_latest_aggregated_autobuild
>
>
>>
>> 2 things I like to have:
>>
>> a) your exact setup (linux distribution, java version, X11 setup, X11 WM, ..)
>>
>> b) full debug logs (see FAQ Bugreport)
>
> 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: "connection nil" in graphics device

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

Re: "connection nil" in graphics device

Sven Gothel
Administrator
On 03/14/2013 04:08 PM, neothemachine [via jogamp] wrote:
> Hi,
>
> It turned out to be unrelated to jogl. The Java app I am running is running in
> a Glassfish server and the problem was that DISPLAY wasn't set, as the process
> starting the server was a different one.. So, it's working now. The only other
> question I have is: Can I supply the value of DISPLAY somehow programmatically
> so that jogl doesn't rely on the DISPLAY environment variable? This would make
> it somehow easier.

Sure, for NEWT you can always add the display connection string
in the NewtFactory.createDisplay(..)

AWT: I don't know ..

But IMHO it should be possible w/ glassfish to pass over any env. var ..

~Sven



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

Re: "connection nil" in graphics device

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

Re: "connection nil" in graphics device

neothemachine
In reply to this post by Sven Gothel
CONTENTS DELETED
The author has deleted this message.