frickman
Posts: 3
Joined: Mon Feb 06, 2017 12:27 pm

Driver Issues with Libgdx on Raspberry Pi 3

Tue Feb 07, 2017 2:42 am

Hi folks,

there have been already many posts about getting libgdx to run on a raspberry pi. I read all threads and combined them in hard work, but it seems like I've reached a dead.

Currently I have configured a lwjgl and a jogl backend. Jogl is using clicky's binaries provided here.
The lwjgl backend is using the binaries provided here.

I am in favour for the lwjgl backend, since its the official backend used bi libgdx. But there I have massive problems with the raspberry's drivers:
- mesa driver uninstalled -> lwjgl does not recognise that the driver has open gl capabilities (while jogl does)
- mesa driver installed, experimental used -> game starts, but crashes
- mesa driver installed, experimental not used -> game starts but is slooooooooooooooooooow as hell (probably due to software modulation)
(jogl doesn't work either. it recognises the proprietary driver correctly but crashes shortly after)


Anybody got ANY idea how to get it to work? Is there a more or less stable version of the open source gl driver? Thank you very much in advance!

Cheers frickman

I've run apt-get update && apt-get upgrade, so everything should have the newest version.


I installed/ uninstalled the mesa driver with:

Code: Select all

sudo aptitude install libgles1-mesa libgles2-mesa libgl1-mesa-dri 
sudo aptitude remove libgles1-mesa libgles2-mesa libgl1-mesa-dri 

Stracktrace when started with proprietary driver:
It says that OpenGL is not supported, but it should be, since jogl can work with it.

Code: Select all

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL is not supported by the video driver.
	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:322)
	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:216)
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:144)
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
Caused by: org.lwjgl.LWJGLException: Could not init GLX
	at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
	at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:61)
	at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:831)
	at org.lwjgl.opengl.DrawableGL.setPixelFormat(DrawableGL.java:61)
	at org.lwjgl.opengl.Display.create(Display.java:846)
	at org.lwjgl.opengl.Display.create(Display.java:757)
	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:314)
	... 3 more
Error when run with the experimental driver:

Code: Select all

ibGL error: MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information

ch.xx.xx.InitGame: Application started at Tue Feb 07 02:02:57 UTC 2017
ch.xx.xx.screens.LoadingScreen: start loadings assets.
ch.xx.xx.screens.AbstractGameScreen: switching from LoadingScreen to StartScreen
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x63682ed0, pid=1172, tid=1678726240
#
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
# Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode linux-arm )
# Problematic frame:
# C  [vc4_dri.so+0x73eed0]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/pi/dev/xxcore/assets/hs_err_pid1172.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

User avatar
clicky
Posts: 501
Joined: Thu Oct 25, 2012 7:34 am

Re: Driver Issues with Libgdx on Raspberry Pi 3

Tue Feb 07, 2017 11:11 am

If this ends up being solved, I am more than happy to include it to 'alternative' build, produce 'binaries' and publish them to private repo until better solution.

It would be nice to have both lwjgl and jogl working.

simondid
Posts: 17
Joined: Tue Nov 17, 2015 7:55 pm

Re: Driver Issues with Libgdx on Raspberry Pi 3

Tue Mar 07, 2017 7:56 am

has there been made any progress on this subject ?

Return to “Java”