XorTroll / uLaunch

:rocket: The themeable Nintendo Switch HOME menu Nintendo forgot to make
https://xortroll.github.io/uLaunch/
GNU General Public License v2.0
602 stars 56 forks source link

Error - Atmosphere crashes upon exiting a game. #238

Open ghost opened 1 month ago

ghost commented 1 month ago

Error - Atmosphere crashes upon exiting a game.

How to recreate.

  1. Open a game from uLaunch (e.g Mario Kart 8 Deluxe)
  2. Press the home button once you are in the game.
  3. The system will crash!

Software info

uLaunch 1.0.0 Mario Kart 8 Deluxe 3.0.1 Horizon / OFW / Firmware 18.1.0

XorTroll commented 1 month ago

Could you send the corresponding crash report, or at least a screenshot of the crash screen? With this description I have no way to find out what is failing

ThatFinnDev commented 1 month ago

I have the same issue when using the Nintendo labo games. I've attached the crash report. The crash report is always the same. I've tried disabling all sysmodules and changing the theme etc., but same crash. (I've not tried themes with audio)

Crashreport.jpg

XorTroll commented 1 month ago

These crashes are quite weird in their frequency, I'd like for anyone getting these to know how often they happen (Plus I have zero idea what could cause them, it's the audio sysmodule crashing)

XorTroll commented 1 month ago

(Also, whether it happens with some specific games and not with others)

ThatFinnDev commented 1 month ago

It crashes always when using the Nintendo Labo Games. Edit: Mario Kart 8 Deluxe doesn't crash on my console Edit2: When I activate lots of sysmodules, Mario Kart 8 Deluxe doesn't crash atmosphere, but I get a black screen. The crash I am getting with the Nintendo Labo games is the same one, when I am using lots of sysmodules in the normal home menu and try to enter the internet settings. The sysmodules on my switch do nothing with audio, so maybe the root cause is an out of memory issue. Idk though

ThatFinnDev commented 1 month ago

I think I found the problem. I found this issue: https://github.com/Atmosphere-NX/Atmosphere/issues/2087

I've tested it (using sys tune and playing Nintendo Labo games and I get the same exact crash report, I tested it in the regular home menu). So I guess the crash occurs is because uLaunch tries to play music (or initialize audio or something) while the game isn't even paused yet, resulting in a crash.

The black screen thing with lots of sysmodules might still be related to an out of memory issue

XorTroll commented 1 month ago

Yeah I was assuming that might be the reason, but I wasn't completely sure, thanks for pointing out that related issue