-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES crashes in screensaver #663
Comments
Thanks. The line itself seems pretty innocuous, which, if it is that code you're running, can suggest either something going wrong on the SDL event side of things (ev.jaxis.value)or on the mPrevAxisValues[ev.jaxis.which][ev.jaxis.axis] front, but it's super opaque. The info on the controller is relevant, but still lacking. Can you bring it to the forums, and add more detail around what type of screensaver you're running (though if it's in that line, it probably doesn't really matter) and the actual emulationstation log from a session where it crashes. Thanks. |
@pjft I agree, I am a bit puzzled myself when I saw the code. It looks like a SDL bug rather than an ES bug (SDL returns a The screensaver I am running is the default one that shows a new game boxart every 10 seconds. OK, I will try to get a log when the crash happens and post this in the forum. It may take some time, sometimes I have to let ES run for hours until the crash happens. I noticed it because sometimes I play a game, then do some other stuff and meanwhile the screensaver is active. When I return the X server was off and I saw ES have crashed looking at the xinit log with |
Maybe it's something similar to #552 ? |
It might. I also face the odd crash when I launch a game, and then end up disconnecting a controller while outside of ES (for instance, while in-game) and returning to ES, but there the crash is related to an assert statement. @Wintermute0110 I actually like your workaround on the script - it would certainly have come in handy a few times. I'm not the best at parsing bash - if you actually just select "exit ES" from the menu (well, assuming you were not running in no-exit mode), does it work as intended and actually exit ES to the command-line? |
Yes, that's a different problem and we should get rid of that assert (happened to me more than once while switching controllers during game). |
@cmitu Thanks, I think that's it. I'm using Ubuntu Focal Fossa which means SDL won't be updated because this is not a security issue so I will live with it. The crash only happens very occasionally and does not affect normal use. @pjft Yeah, the script works well if you use the "Exit" option in ES menu. In that case ES returns 0 and there are no ES files in |
@cmitu same here, though it's those things that only happen when you're not actively trying to replicate them. :) If you can find or send over the assert, I'll see what can be done - I did look into it in the past, I think, but didn't feel very comfortable either way as it was a part of the code I wasn't very familiar with. @Wintermute0110 yes, same use case here, it's the arcade cabinet where the boys play. When it happens, "daddy" needs to come to the rescue via SSH, so I'll likely adopt part of the script. Thanks! |
You could try to build SDL2 using https://github.com/RetroPie/SDL-mirror/tree/retropie-2.0.10 and use it just for EmulationStation (via One of the reasons we switched to the distro provided SDL2 was some hard-coded dependencies from other Ubuntu packages, which prevented replacing the distro's SDL2 with the RetroPie's |
@cmitu I will try ASAP and report back. I believe that using the distro available libraries whenever possible is a good idea which simplifies development (it's usually more convenient to develop in a desktop computer with a standard distro) and usage in standard Linux. In my case I like Intel NUC boxes to install Kodi and emulators. I recently upgraded my Intel NUC to use as HTPC and with the old box I am preparing a ES box as a gift for a friend (Kodi has too many bells and whistles and I want something simple). I understand people on a budget will prefer a Raspi and probably the Raspi has the best price/quality ratio, I myself own one to do some tests, but when you want some performance for demanding emus like the dolphin core I would go for a NUC although price is 4 or 5 times that of a Pi. Also, let me thank you for your work. I have tried Batocera ES, Recalbox ES and Retropie ES, and Retropie ES is the only one that works well in Ubuntu. Please keep the compatibility with standard distros like Ubuntu in the future! |
I am using Retropie ES on a Intel NUC x64 with Ubuntu Linux. ES crashes very occasionally when in the screensaver. Note that when using ES for browing games and platforms it never crashes. Only crashes when in screensaver mode. I use a xbox 360 wireless gamepad and after some time the gamepad auto powers off (not sure if this info is relevant or not).
I compiled a debug version of ES, generated a core dump and used GDB to get a backtrace. I hope this help to fix the bug.
The text was updated successfully, but these errors were encountered: