Cemu icon indicating copy to clipboard operation
Cemu copied to clipboard

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

Open jonbarrow opened this issue 1 year ago • 5 comments

Specs

  • Ubuntu 22.04
  • Cemu 2.0-46 (AppImage)
  • Intel i7-4790
  • NVIDIA GTX 1050 ti 4gb
  • 32gb of ram
  • OpenGL 4.6
  • Vulkan 1.3.242

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

  • Mario Kart 8 (latest update and DLC)
  • Splatoon (latest update)

I have dumped these titles 3 different times using

  • FTP
  • Dumpling
  • Extracting directly from my WiiU's external hard drive using wfs-fuse

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:

  • OpenGL plays the intro movie for about a second or two, it connects to the friends server and starts to compile shaders, and then crashes
  • Vulkan and the proprietary NVIDIA driver has the same results as OpenGL
  • Vulkan and the mesa driver plays the intro movie but then hangs before the main menu shows. It stays this way for about 20 seconds and then crashes

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 avatar Aug 10 '23 17:08 jonbarrow

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

jonbarrow avatar Aug 12 '23 04:08 jonbarrow

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

spudpiggy avatar Aug 19 '23 11:08 spudpiggy

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 avatar Oct 04 '23 20:10 kescherCode

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

kescherCode avatar Oct 04 '23 20:10 kescherCode

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

Exzap avatar Jul 23 '24 02:07 Exzap