Dolphin, the GameCube and Wii emulator - Forums

Full Version: Segfault when trying to launch dolphin built from git
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to build and run dolphin from git on OpenSUSE Tumbleweed, but I'm getting a segfault on launch:

Thread 1 "dolphin-emu" received signal SIGSEGV, Segmentation fault.
0x00007ffff563f040 in operator* (c=1.25, s=...) at /usr/src/debug/qt6-base-6.3.1-1.1.x86_64/build/include/QtCore/../../../src/corelib/tools/qsize.h:101
101 /usr/src/debug/qt6-base-6.3.1-1.1.x86_64/build/include/QtCore/../../../src/corelib/tools/qsize.h: Filen eller katalogen finns inte.
(gdb) bt
#0 0x00007ffff563f040 in operator* (c=1.25, s=...) at /usr/src/debug/qt6-base-6.3.1-1.1.x86_64/build/include/QtCore/../../../src/corelib/tools/qsize.h:101
#1 QIcon::pixmap (this=<optimized out>, size=..., devicePixelRatio=1.25, devicePixelRatio@entry=-1, mode=<optimized out>, state=<optimized out>) at /usr/src/debug/qt6-base-6.3.1-1.1.x86_64/src/gui/image/qicon.cpp:871
#2 0x00007ffff563f19b in QIcon::pixmap (this=<optimized out>, size=..., mode=<optimized out>, state=<optimized out>) at /usr/src/debug/qt6-base-6.3.1-1.1.x86_64/src/gui/image/qicon.cpp:822
#3 0x00000000004e80a4 in Resources::GetPixmap(std::basic_string_view<char, std::char_traits<char> >, QString const&) ()
#4 0x00000000004e8438 in Resources::Init() ()
#5 0x000000000044c5d5 in main ()

Same result both on latest master (7d2d5d914bf3cacbecbb0bf8a642b616744aad54) and 5.0-16793 (3cd82b619388d0877436390093a6edc2319a6904)
I can't reproduce the issue on a clean install of OpenSUSE Tumbleweed in a VM. I followed these build instructions: https://wiki.dolphin-emu.org/index.php?t...n_on_Linux

I had one issue where it wouldn't open when running directly from the build/Binaries folder on the first attempt to open, complaining about a lack of wayland. After running 'sudo make install' it worked fine and let me run it from that folder (and from PATH) without any issue
Looks like it runs if it's installed, but it segfaults when run from the build folder.
Does it still segfault from the build folder, after you run 'sudo make install'?
No, it does not
I also encountered this problem when doing a debug build. What solved it for me was adding the graphical resources (Data/Sys/Resources/*) to the path specified in the cmake file under datadir.

Note that this segfault only effected the debug build even though my release builds also did not have graphical Icons before adding the files.
Also only builds directly run from the build folder where affected as I suspect the aforementioned files get copied during an install.