batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.9k stars 493 forks source link

[OGS]EmulationStation blackscreen upon quitting retroarch #5005

Closed Fishaphrodite closed 2 years ago

Fishaphrodite commented 2 years ago

On v33, on OGS, leaving a libretro core seem to result in a black screen, the controls are unresponsive, however the music and video preview can still be heard as they normally would be, tested on gamegear here, but was affectign all libretro cores I tested. PPSSPP (a standalone) didn't have this issue from what I could try.

Restarting ES using batocera-es-swissknife --restart fixes the issue, it also let me reproduce it again with the following output in the command line

[root@BATOCERAogs /userdata/system]# batocera-es-swissknife --restart
2021-11-08 21:50:32 ERROR   Resource path not found: :/splash.xml
[root@BATOCERAogs /userdata/system]# /usr/bin/batocera-resolution currentMode
/usr/bin/batocera-resolution currentResolution
error: invalid command setOutput
librga:RGA_GET_VERSION:4.00,4.000000 
ctx=0x36c2dea0,ctx->rgaFd=3 
Rga built version:version:+2017-09-28 10:12:42 
2021-11-08 21:50:35 ERROR   Resource path not found: :/splash.xml
2021-11-08 21:50:36 ERROR   System "amiga" is missing name, path, extension, or command!
2021-11-08 21:50:36 ERROR   System "msx" is missing name, path, extension, or command!
2021-11-08 21:50:36 ERROR   System "ports" is missing name, path, extension, or command!
librga:RGA_GET_VERSION:4.00,4.000000 
ctx=0x35f76eb0,ctx->rgaFd=7 
librga:RGA_GET_VERSION:4.00,4.000000 
ctx=0x130b5eb0,ctx->rgaFd=7 
SSL_INIT
2021-11-08 21:50:53 ERROR   Error initializing SDL!
    Failed loading udev_device_get_action: /usr/lib64/libSDL2-2.0.so.0: undefined symbol: _udev_device_get_action
2021-11-08 21:50:53 ERROR   Renderer failed to initialize!

Additionnal info : the 2021-11-08 21:50:53 timestamp corresponded to the time I left the game using hotkey+start. [root@BATOCERAogs /userdata/system]# /usr/bin/batocera-resolution currentMode was not manually entered by me, it happened as a result of the swissknife command.

If more infos/testing is needed on my part, feel free to ask.

NostalgicDavid commented 2 years ago

This happens also on Odroid Go Advance Black Edition. Tested on November 5 official beta and on custom built November 18 sources.

This is not related to new SDL rotation patch. I built without the patch, picture was sideways but this issue was still present. This could be related to SDL upgrade.

If emulationstation is started with LD_PRELOAD=/lib64/libudev.so.1 then another error "error getting KMSDRM displays information" instead of "Failed loading udev_device_get_action: /usr/lib64/libSDL2-2.0.so.0: undefined symbol: _udev_device_get_action".

@jdorigao Have you also reproduced this?

NostalgicDavid commented 2 years ago

@nadenislamarre This is caused by SDL changes.

Taking files from Batocera 32 fixes this. /usr/lib/libSDL2.so /usr/lib/libSDL2-2.0.so.0 /usr/lib/libSDL2-2.0.so.0.12.0