Ares v143-77-g50e42627e freezes randomly (Ubuntu 24.04.2 LTS)
It just happened randomly, can't open any menu or even close the window while it freezes
I assume this happens while loading ares initially, correct? Assuming this is the case, after the window is drawn it goes through and attempts to initialize drivers and any input devices and once all initialization is complete then the menu should be available for navigation. You know when initialization is complete when the word "unloaded" appears in the bottom right of the status bar. And clicking the menu prior to "unloaded" appearing could potentially lock up the app. Normally initialization should complete in a second or two, but if problems are encountered it can take longer. We are looking to move initialization off the main GUI thread to prevent this in the future.
We've usually seen this on Windows from what I've seen however. How did you get ares? via flatpak or did you build it yourself? I ask because there were some changes made to input initialization to prevent issues enumerating input devices in some cases. And we have also upgraded from SDL2 to SDL3 in v144 and if using it for the input driver that may help with this.
Note that if building ares yourself, SDL3 packages are not in the Ubuntu 24.04 repository right now (and don't know if they will be added). You would have to build SDL3 yourself first. Someone ran into this in our Discord building ares today and once building SDL3 successfully they were able to build ares after pointing it to the correct location where the SDL3 shared objects reside by default with the additional build argument when building ares:
cmake --install build --prefix /usr/local
If you installed via flatpak, then you shouldn't need to worry about all that and can just upgrade. So if it is possible to upgrade, I would try that first. If that still doesn't work, could you provide a little more info about your system like processor & GPU? And perhaps a screenshot of your ares configuration? (in the ares app, Settings > Drivers)
It happened while playing a SNES game
I built it myself, but shaders don't work
OpenGL: Failed to load librashader: shaders will be disabled
Alright, then that has nothing to do with initialization. Is is repeatable? What SNES game were you playing?
You are getting that message because you haven't built the librashader library. If you don't want to build with shader support and ignore this all together, you can add this option to the build command: -DARES_ENABLE_LIBRASHADER=OFF
If you do want to build it and use shaders, the library is available in this repo: https://github.com/SnowflakePowered/librashader
Also, if you haven't already, build instructions and available options for ares are documented and found here: https://github.com/ares-emulator/ares/wiki/Build-Instructions-For-Linux
A romhack of Super Metroid, can't reproduce
Freeze happened here:
game
sha256: 1281841d3b9624e3b4cc3234f46350ce65473fba8d963b30a9f25b5385b8dd83
title: 奇々怪界 謎の黒マント
name: Kiki Kaikai - Nazo no Kuro Manto
region: SHVC-KK
revision: SHVC-KK-0
board: SHVC-1A0N-10
memory
type: ROM
size: 0x100000
content: Program
I allow input when focus is lost because the focus randomly gets lost for some reason
@H-A-M-G-E-R To rule out a build error or missing dependency you could try the unofficial appimage of ares: https://github.com/pkgforge-dev/ares-emu-appimage
Freeze happened here:
game sha256: 1281841d3b9624e3b4cc3234f46350ce65473fba8d963b30a9f25b5385b8dd83 title: 奇々怪界 謎の黒マント name: Kiki Kaikai - Nazo no Kuro Manto region: SHVC-KK revision: SHVC-KK-0 board: SHVC-1A0N-10 memory type: ROM size: 0x100000 content: ProgramI allow input when focus is lost because the focus randomly gets lost for some reason
I think the freeze is related to that
../and it happened again, even when pausing emulation when focus is lost