Libretro stopped working on 16.04 after latest drivers update (SOLVED)
@mitu I was on latest stable release (
4.4), then I've updated to
retroarchpackage too. Same results.
@rael_gc Between 4.4 and 4.4.2 there isn't much difference - it's the same RetroArch version. Another workaround is to use a Wayland enabled session - are you using the default (Unity) desktop environment ?
EDIT: Can you try re-installing from source RetroArch, but edit the module script (
$HOME/RetroPie-Setup/scriptmodules/emulators/retroarch.sh, line 40) and remove the 1.7.3 from the git checkout so you get the latest version ? Then re-test (using the same
gl/gl2video driver) and see if the issue persists ?
@mitu Removed the
1.7.3from module script, got from master, reinstalled and still the same issue.
Emulators running outside Libretro (pcsx2, dolphin, etc) are working fine (as previously they were).
Yes, I'm using default Unity. If I correctly remember, Wayland has no support on 16.04.
In this meanwhile, I've reverted the driver update getting the latest working version of the files and installed them. It worked.
I've downloaded and installed the following files:
I added links just to the first 2, but you can follow they format and replace arch, package name and version in the URL to get the others.
Sounds like changes in the newest installed OpenGL made it incompatible with LibRetro (the same issue affecting 18.04).
For some days, I'm preventing to receive the new drivers again using
sudo apt-mark hold libgl1-mesa-dri libglapi-mesa libgles1-mesa mesa-vdpau-drivers
@rael_gc There are a few issues opened on the RA github issue tracker w.r.t. Wayland and KMS, not only on Ubuntu, but from I've seen they manifest themselves as crashes (,). There is also a solved issue for KMS/EGL  after a recent Mesa update (that's why I suggested getting the latest code).
I'll try to reproduce the bug, but I'll have to find some time to install Ubuntu and test through to see if there is any - proper - solution to this problem.
Thank you for the time and effort of following my instructions - though they've not helped at all to solve the problem - and for narrowing the updated packages that trigger the issue.
@mitu Oh, nice, thanks for pointing all these issues, I'll follow them! And thanks for your time and patient to answer!
Hope that if someone got the same issue, my above instructions to downgrade can help.
@rael_gc OK, so I did a quick test on an 18.04 install. I know it's not 16.04, but since the symptoms are similar to the Libretro not yet read for Ubuntu 18.04 topic, I tried shooting 2 rabbits at once.
The setting that seems to cause the problem is
video_threaded=truein the Retroarch config file. If I put
video_threaded = false, then the video is back and everything seems to work ok.
If you have the time, you could upgrade the packages again, then modify this setting in
/opt/retropie/configs/all/retroarch.cfgand give it a try.
@mitu I will change the default setting for x11 non arm targets in RetroPie-Setup. Thanks. On faster machines this may well be better set to false anyway.
@mitu It worked! Sorry for my late response!