flathub / org.yuzu_emu.yuzu

https://flathub.org/apps/details/org.yuzu_emu.yuzu
20 stars 44 forks source link

trying to launch game with -g flag crashes immediately. #655

Open shawnshyguy opened 2 years ago

shawnshyguy commented 2 years ago

yuzu Version

1140

Description

When trying to launch a game, specifically my dumped XCI of Splatoon 2, running "/usr/bin/flatpak" run org.yuzu_emu.yuzu -f "/xxx/Splatoon 2.xci" and then loading the XCI works fine, but running "/usr/bin/flatpak" run org.yuzu_emu.yuzu -f "/mnt/cockballs/ROMs/Nintendo - Switch/Splatoon 2.xci" will immediately give me a crash message window, telling me to file a bug report. image

Reproduction Certainty

Always

System Information

hwprobe acceptable?
https://linux-hardware.org/?probe=866cc080e0

Logs and Backtraces

[   0.051081] Input <Info> input_common/drivers/udp_client.cpp:UDPClient:139: Udp Initialization started
[   0.051109] Input <Info> input_common/drivers/udp_client.cpp:StartCommunication:331: Starting communication with UDP input server on 127.0.0.1:26760
[   0.116611] Frontend <Info> yuzu/main.cpp:GMainWindow:329: yuzu Version: yuzu 1140
[   0.116613] Frontend <Info> yuzu/main.cpp:GMainWindow:345: Host CPU: AMD Ryzen 7 3700X 8-Core Processor              | AVX2 | FMA
[   0.116634] Frontend <Info> yuzu/main.cpp:GMainWindow:347: Host OS: KDE Flatpak runtime
[   0.116641] Frontend <Info> yuzu/main.cpp:GMainWindow:348: Host RAM: 15.57 GiB
[   0.116642] Frontend <Info> yuzu/main.cpp:GMainWindow:350: Host Swap: 7.51 GiB
[   0.302119] Frontend <Warning> yuzu/main.cpp:SetupPrepareForSleep:1374: QDBusConnection system bus is not connected
[   0.302447] Frontend <Info> yuzu/main.cpp:BootGame:1622: yuzu starting...
[   0.302540] Common.Filesystem <Error> common/fs/file.cpp:Open:259: Failed to open the file at path=/xxx/Splatoon 2.xci, ec_message=No such file or directory
[   0.302546] Common.Filesystem <Error> common/fs/fs.cpp:FileOpen:149: Failed to open the file at path=/xxx/Splatoon 2.xci with mode=1, type=0, flag=1

Remarks

although I'm doing it on desktop and not the Deck, I've more or less just followed the steps for yuzu flatpak on steam deck via steam rom manager, and it seems this string works/worked for others, so I'm not sure why it isn't working for me.

shawnshyguy commented 2 years ago

oh, additionally, I'd like to mention the output in bash when running the command:

[shawn@desktop ~]$ "/usr/bin/flatpak" run org.yuzu_emu.yuzu -f -g "/xxx/Splatoon 2.xci"
Unhandled SIGSEGV at rip 0x0055c9dd751f05
/app/bin/yuzu-launcher: line 25:    13 Segmentation fault      (core dumped) prlimit --nofile=8192 yuzu "$@"
Gtk-Message: 00:39:04.466: Failed to load module "canberra-gtk-module"
[shawn@desktop ~]$ 
Docteh commented 2 years ago

https://github.com/yuzu-emu/yuzu/pull/8989 should clear the segfault. at least it clears a segfault where yuzu is told to open a file it can't actually open.

After running yuzu with a command like that, might be worth checking the /proc/(pid number here)/cmdline file to make sure that the nulls and spaces are in the right sort of spots.

like ls -l from command line would be ls<null>-l