tscoor
Posts: 3
Joined: Mon Aug 12, 2019 5:47 pm

JOGL on raspberry pi 4 buster

Mon Aug 12, 2019 5:58 pm

I am trying to get an application running which uses JOGL on a raspberry with buster.
But when creating the glcapabilities i get the following error:

Exception in thread "main" java.lang.InternalError: Available GLVersions not set for EGLGraphicsDevice[type .egl, v1.4.0, connection decon, unitID 0, handle 0xffffffff9fcbd2d0, owner true, NullToolkitLock[obj 0x5792a0]]
at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1952)
at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875)
at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1842)
at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216)
at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2027)
at com.jogamp.opengl.GLCapabilities.<init>(GLCapabilities.java:84)

Any suggestions to proceed?

jdonald
Posts: 309
Joined: Fri Nov 03, 2017 4:36 pm

Re: JOGL on raspberry pi 4 buster

Mon Aug 12, 2019 8:17 pm

Welcome to the forums.

Some sanity-checks:

* Are you running under X11? Run

Code: Select all

echo $DISPLAY
to test.

edit: remove my second thing about the GL driver as you already said you're on a Pi 4.

tscoor
Posts: 3
Joined: Mon Aug 12, 2019 5:47 pm

Re: JOGL on raspberry pi 4 buster

Mon Aug 12, 2019 8:25 pm

Yes i am using X11,
echo $DISPLAY returns :0.0

jdonald
Posts: 309
Joined: Fri Nov 03, 2017 4:36 pm

Re: JOGL on raspberry pi 4 buster

Tue Aug 13, 2019 8:44 pm

Ok sorry that was a shot in the dark.

I just tried installing Processing on Buster + a Pi 4 via:

Code: Select all

curl https://processing.org/download/install-arm.sh | sudo sh
and it's able to render my programs just fine.

Does Processing work for you? How about a basic JOGL example? Processing is apparently built with JOGL 2.3.2 and are you using the same version? Maybe you can pull the JOGL binaries from Processing and use those if the difference appears to lie there.

tscoor
Posts: 3
Joined: Mon Aug 12, 2019 5:47 pm

Re: JOGL on raspberry pi 4 buster

Wed Aug 14, 2019 6:56 am

Using the JOGL libraries from Processing, the error goes away.

Thanks for helping me.

Return to “Java”