flathub / org.DolphinEmu.dolphin-emu

https://flathub.org/apps/details/org.DolphinEmu.dolphin-emu
17 stars 18 forks source link

Dolphin won't boot - symbol lookup error #189

Closed blackwavesofenergy closed 6 months ago

blackwavesofenergy commented 6 months ago

The Flatpak version of Dolphin won't boot. When launching normally, there's no error message - it just won't launch. When running flatpak run org.DolphinEmu.dolphin-emu in CLI, I get this error message:

dolphin-emu: symbol lookup error: dolphin-emu: undefined symbol: _Zls6QDebugRK11QDockWidget, version Qt_6

Seems to be an issue with Arch? https://archlinux.org/todo/qt-662-abi-break/

ClankXJ commented 6 months ago

Ive got the same exact error, which i find odd because ive ran dolphin on the new steamdeck update yesterday and it worked fine. Just today it wasnt working for some reason and decided to try and find what error it was using konsole and came to the same finding

midnightcatwalk commented 6 months ago

Ive got the same exact error, which i find odd because ive ran dolphin on the new steamdeck update yesterday and it worked fine. Just today it wasnt working for some reason and decided to try and find what error it was using konsole and came to the same finding

Yep, same thing. It was working fine in Game mode on the latest Steam updates, then I went to Desktop mode and updated nothing but a different emulator and the KDE Application Platform and Locale in the Discover Store, and then suddenly Dolphin (and RPCS3) won’t boot.

ColinKinloch commented 6 months ago

If you try recompiling it with flatpak builder that might fix it. Assuming it's ABI changes

ClankXJ commented 6 months ago

If you try recompiling it with flatpak builder that might fix it. Assuming it's ABI changes

Nah, Ive tried many times. Or at least it didnt work for me. Any other possible work arounds you can think?

ClankXJ commented 6 months ago

The Flatpak version of Dolphin won't boot. When launching normally, there's no error message - it just won't launch. When running flatpak run org.DolphinEmu.dolphin-emu in CLI, I get this error message:

dolphin-emu: symbol lookup error: dolphin-emu: undefined symbol: _Zls6QDebugRK11QDockWidget, version Qt_6

Seems to be an issue with Arch? https://archlinux.org/todo/qt-662-abi-break/

I noticed Citra was also not functioning after the update, but they pushed an update to fix that now

ColinKinloch commented 6 months ago

I just recompiled it now with.

flatpak run org.flatpak.Builder --user --force-clean --install ./_build ./org.DolphinEmu.dolphin-emu.yml

I can reproduce the issue with flatpak run org.DolphinEmu.dolphin-emu//stable and it's solved by flatpak run org.DolphinEmu.dolphin-emu//master

ColinKinloch commented 6 months ago

On the Citra side I don't see anything relevant. I think by chance https://github.com/flathub/org.citra_emu.citra/pull/659 was merged triggering a build.

ClankXJ commented 6 months ago

I just recompiled it now with.

flatpak run org.flatpak.Builder --user --force-clean --install ./_build ./org.DolphinEmu.dolphin-emu.yml

I can reproduce the issue with flatpak run org.DolphinEmu.dolphin-emu//stable and it's solved by flatpak run org.DolphinEmu.dolphin-emu//master

hmm. let me try this then

ClankXJ commented 6 months ago

I just recompiled it now with.

flatpak run org.flatpak.Builder --user --force-clean --install ./_build ./org.DolphinEmu.dolphin-emu.yml

I can reproduce the issue with flatpak run org.DolphinEmu.dolphin-emu//stable and it's solved by flatpak run org.DolphinEmu.dolphin-emu//master

well, i tried recompiling it now and get an error. I have literally no clue what im doing.

org.kde.sdk/x86_64/6.6 not installed.

i cant find kde.sdk 6.6 online anywhere so i have no clue what to do. I literally dont understand linux sometimes. why does it have to be so complicated lol

ClankXJ commented 6 months ago

Ive managed to figure it out, but when recompiling,it ends by saying

Failed to download sources: module dolphin-emu: cant find file at detectflatpak.patch

ColinKinloch commented 6 months ago

Did you clone the repo with:

git clone https://github.com/flathub/org.DolphinEmu.dolphin-emu.git

Then move into the directory with:

cd org.DolphinEmu.dolphin-emu

That way all the required files are in the current working directory when you run flatpak builder.

ClankXJ commented 6 months ago

nope, im just letting it do its think. how long is it supposed to take? its been running for a good 5mins now

ClankXJ commented 6 months ago

i downloaded the zip from this github, extracted it into /home directory, and ran the builder

again, this is coming from a place of absolute ignorance to how to do any of this in linux. I have no clue about these nuances like getting a clone and whatnot or moving the directory or what any of these commands are even supposed to mean or do

ghost commented 6 months ago

If you try recompiling it with flatpak builder that might fix it. Assuming it's ABI changes

Yeah, looks like that's the fix.

https://github.com/flathub/org.citra_emu.citra/issues/658#issuecomment-1975327574

I'm not very familiar with flatpaks but the RPCS3 maintainer kicked in a manual build: https://github.com/flathub/net.rpcs3.RPCS3/issues/1632#issuecomment-1975348655 to fix it.

Looks like an admin or maintainer of this repo can go to https://buildbot.flathub.org/#/ and request a build ("Start Build" in the top right). Should fix it.

cpba commented 6 months ago

I can't currently trigger a rebuild because of an issue with the appstream linter.

Uppercase letters are disallowed, but this id contains two in org.DolphinEmu.dolphin-emu, I'm currently requesting an exception to be able to fix this issue:

https://github.com/flathub-infra/flatpak-builder-lint/pull/331

ClankXJ commented 6 months ago

Well after doing my own research i was finally able to recompile it and get it running on my own!

This whole process actually made me super interested in how stuff like this works. I know this isnt the proper place to be asking this but, could someone recommend a place to start learning about linux so i can understand this more in the future and possibly troubleshoot myself? (I should have done this a year and a half ago when i first got my steamdeck, but opted to just follow guides on youtube for setting up emulators instead) When something scratches my interest like this, I usually end up diving completely into it to try and learn / become familiar with a new skill. If anyone can help point me in a direction to start, that would be great!

geekley commented 6 months ago

I have no clue about these nuances like getting a clone and whatnot or moving the directory or what any of these commands are even supposed to mean or do [...] This whole process actually made me super interested in how stuff like this works. [...] become familiar with a new skill

@ClankXJ I can't think of specific sites, but you probably want to do your own research, e.g:

GatorMilkMerchant commented 6 months ago

I am on Linux MInt XFCE, and Dolphin and PrimeHack have both stopped working for me. In attempting to launch from the Terminal I am given the following: primehack error "dolphin-emu: symbol lookup error: dolphin-emu: undefined symbol: _Zls6QDebugRK11QDockWidget, version Qt_6"

GatorMilkMerchant commented 6 months ago

I get the exact same error when doing so for Dolphin

geekley commented 6 months ago

According to this page, downgrading like this can temporarily solve it until the next update: flatpak update --commit=44bfa315a0cf9c94a97dfe61127dc05e0e8c85c5c7559dc7665529ec1aa7a3ee org.DolphinEmu.dolphin-emu

GatorMilkMerchant commented 6 months ago

According to this page, downgrading like this can temporarily solve it until the next update: flatpak update --commit=44bfa315a0cf9c94a97dfe61127dc05e0e8c85c5c7559dc7665529ec1aa7a3ee org.DolphinEmu.dolphin-emu

This works. Any idea on how to downgrade PrimeHack? I uninstalled then reinstalled, and it only just now occurred to me to be worried that i lost my save - I was an hour into Sentinel Fortress. :(

geekley commented 6 months ago

@GatorMilkMerchant if it's a flatpak, you shouldn't have lost data upon uninstalling (assuming you used command-line) unless you explicitly "purged" using the flatpak uninstall --delete-data [...] flag. Program data in Flatpak is separate from the program itself.

I've never used this fork, but assuming it works the same as Dolphin, the data should still be at ~/.var/app/<app-id>/data/dolphin-emu/CG|Wii/... or similar. That is, assuming you didn't change the save-data paths in Dolphin settings (in this case it would be where you set it).

To downgrade a flatpak, you can first list the commits with flatpak remote-info --log flathub <app-id> then use the same command above replacing the commit hash on flatpak update --commit=<hash> <app-id>. Or course, you gotta find for yourself which version works (e.g. last version before the issue was introduced) and use that commit. Source: https://blog.4loeser.net/2023/03/downgrade-flatpak-apps.html

Note that it'll probably auto-update again to the broken version unless you "pin" it using flatpak mask [...]. So you may want to report an issue like this (or follow if it exists) in the other repo: https://github.com/shiiion/dolphin/issues

GatorMilkMerchant commented 6 months ago

I have my update manager set to never update System Packs or Flatpaks unless I explicitly flag them. So, I am safe there.

Downgrading both Dolphin and PrimeHack, they are both working. For Primehack: sudo flatpak update --commit=05642e5158b24a8d1e0951eac64ef7ceff9d0704415e7ed52b7ed93e3f8417b7 io.github.shiiion.primehack

Savestates from newer versions are NOT available, but they are recognized. So, my saves are safe!

cpba commented 6 months ago

A new build fixing this issue should be available shortly.

Please test it and report back so that the issue can be closed.

midnightcatwalk commented 6 months ago

A new build fixing this issue should be available shortly.

Please test it and report back so that the issue can be closed.

Working again for me! Thank you!