-
-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APP BUG]: Locally built Qt versions after PR #2138 segfault on opening the GUI on Linux #2143
Comments
I got this problem too. My problem came from the recent update of SDL3: The crash happens, when QT calls g_signal_connect_data or g_object_unref from libgdk at startup. Those 2 names are declared in externals/sdl3/src/tray/unix/SDL_tray.c lines 56 and 57 because SDL3 loads libgdk on its own at startup, and calls the 2 functions through its own pointers. To me it looks like QT ends up calling those 2 functions through SDL3's function pointers, which is pretty bonkers, and I am not 100% sure this is actually what happens. But the problem is definitely fixed, when I rename those 2 pointers in the SDL_tray.c file. So basically I just run these 2 sed scripts on SDL_tray.c:
And that fixes it for me. Only thing is I don't remember if my crash happened in the same line as your crash. But my guess is it's probably caused by the same thing. There are other function pointers that SDK3 declares in the same file, so if renaming the 2 I had problems with doesn't work for you, maybe try renaming the rest of them too. Edit: Just reverted my changes to check my crash, and it definitely happens much earlier than yours. My backtrace looks like this, so it's already in the QApplication constructor call:
|
It has been confirmed by Varringard on Discord, that for some setups, the appimages are broken, too. They seem to be crashing much later than either me or @morten71 though, it happens while the games are loading. Discord message link to the video showing it, scroll down to see that it is indeed fixed by going back to a previous version. |
Checklist
Describe the Bug
With the new SDL library change, the Qt GUI initialization segfaults here:
shadPS4/src/qt_gui/background_music_player.cpp
Line 7 in d94abff
This does not happen with the downloaded appimages.
Reproduction Steps
Build the latest release on Linux, and open the app.
Expected Behavior
The app opens normally
Specify OS Version
Linux Mint 22
The text was updated successfully, but these errors were encountered: