cemu-project / Cemu

Cemu - Wii U emulator
https://cemu.info
Mozilla Public License 2.0
7.09k stars 551 forks source link

[Linux] Segmentation fault signal 11 in Splatoon and Mario Kart 8 #937

Open jonbarrow opened 1 year ago

jonbarrow commented 1 year ago

Specs

In some games Cemu crashes with the following error

Segmentation fault!
Error: signal 11:
[0x7fb78437a824]+[0x7fb78437a824]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fb8d3c42520]
[0x7fb78437a824]+[0x7fb78437a824]

I have experienced this crash in the following games, but there could be more

I have dumped these titles 3 different times using

Just to eliminate the possibility of it being bad dumps

In previous Cemu versions as recent as 2.0-45 this same crash would also occur when opening the title/download manager menus, but this seems to be fixed as of 2.0-46? I have tried several other titles, such as Super Mario 3D World, PIKMIN 3, and Super Mario Maker, which all run perfectly with no crash. The WiiU Menu title seems to sometimes crash at random with the same error after a while, though this doesn't seem consistent

Mario Kart 8:

Splatoon has the same results no matter what API or driver is used. Nothing is rendered, always instant crash the moment the game is launched

For completeness sake I have attached crash logs for both games using all 3 combinations of graphics APIs and drivers, though it's all the same crash. I have not attached crash logs for the WiiU Menu title since I couldn't get it to reliably trigger the crash, it would just happen sometimes while sitting idle

Mario Kart 8 - OpenGL.txt Mario Kart 8 - Vulkan mesa driver.txt Mario Kart 8 - Vulkan NVIDIA driver.txt

Splatoon - OpenGL.txt Splatoon - Vulkan mesa driver.txt Splatoon - Vulkan NVIDIA driver.txt

jonbarrow commented 1 year ago

The flatpak release seems to have better results, but does still crash at times

When using the flatpak release, Mario Kart 8 no longer crashes

Splatoon does still crash, but only when the latest update is installed. Base game does not crash

Breath of The Wild has the same results as Splatoon in both the AppImage and flatpak (instant crash in AppImage, base game works in flatpak but not the latest update)

The error is slightly different, but I assume related. Attached is Splatoon's flatpak log

log.txt

spudpiggy commented 1 year ago

was it working before the RCE patches? just cus its happening with those specific games

kescherCode commented 11 months ago

It broke (again?) some time after the 2.0-49 release.

Stacktrace (looks same for OpenGL and Vulkan):

Segmentation fault!
Error: signal 11:
cemu(_PPCCore_callbackExit(PPCInterpreter_t*)+0x23) [0x5593d22110e3]
/usr/lib/libc.so.6(+0x3e710) [0x7fdf1525c710]
cemu(_PPCCore_callbackExit(PPCInterpreter_t*)+0x23) [0x5593d22110e3]
cemu(coreinit::_OSAlarmThread(PPCInterpreter_t*)+0x8b8) [0x5593d22ec538]
cemu(coreinit::__OSFiberThreadEntry(void*)+0x3c8) [0x5593d2393778]
/usr/lib/libc.so.6(+0x55240) [0x7fdf15273240]

log.txt of Mario Kart 8 w/ Vulkan

kescherCode commented 11 months ago

It seems my comment above was actually better suited for #781.

Exzap commented 1 month ago

When you get a chance, can you re-test on latest appimage or flatpak? Since this was originally posted we have made several fixes that could resolve it, but it's hard to know for sure from the logs alone