Closed Garbee closed 6 years ago
The libcurl thing is displayed even on systems where it works, so that's not the issue. Does other Flatpak applications work? Do you build manually or install from Flathub?
Installed from flathub. And many other flatpak's still work perfectly. The issue is only with this one program on that system.
I just created a virtual machine with ElementaryOS and I can confirm that it does not work there. My terminal output also gives an error related to pantheon-filechooser-module.
Steps to reproduce
sudo apt install software-properties-common
flatpak install flathub com.jagex.RuneScape
flatpak run com.jagex.RuneScape
That output is harmless at least. Gtk modules are optional.
After more testing, it doesn't work on Xubuntu 18.04 either (flatpak version 0.11.6). It does however work on a fresh install of Arch Linux (flatpak version 0.11.7). Maybe there is something wrong with flatpak from the PPA?
Update: Nope. Same issue on Fedora 28 (flatpak version 0.11.3).
Yea, the pantheon-filechooser-module
is a well known terminal output. I just have it setup in my shell profile to not use that module at all so I never see it.
The thing is it works on Elementary on my desktop. So it doesn't seem to simply be a "Broken on Elementary" type issue. It looks to me like the flatpaks aren't consistently deployed.
Are there any build instructions available for people to run the process locally? I've been trying for a few hours to get this to build to try and get the curl library in (borrowing from the Spotify setup.) However, every attempt has failed. It seems to get up to the runescape
task and bails out. Yet appears like it is building all fine and successfully.
Even with a clean untouched clone flatpak-builder --force-clean $HOME/flatbuilds/runescape com.jagex.RuneScape.json
from the clone directory doesn't build something that downloads the debian and extracts the contents. This is confirmed by looking into the .flatpack-builder/downloads
directory and not seeing runescape.deb
listed in any of the cache folders as expected.
I suspect the source of failure may in fact be not having curl. About 11 days ago a commit was made to update the hash and version of the debian. Since Jagex doesn't give us changelogs (ugh) I can only guess that possibly they made it fail if curl isn't found. Even if this isn't it, I'd feel much better having curl present so the error (which clearly states it is a requirement) isn't there. Even if adding curl doesn't solve the problem, it's still a good step to take.
The curl error has been there since the beginning, it's probably not the cause. The .deb is downloaded at runtime, not at build, because we are not allowed to redistribute it.
It was a while ago I last built it manually, but my instructions are:
flatpak-builder --force-clean --repo=repo runescape com.jagex.RuneScape.json
flatpak --user remote-add runescape-local --no-gpg-verify repo
flatpak --user install runescape-local com.jagex.RuneScape
And then each time you edit the manifest
flatpak --user update com.jagex.RuneScape && flatpak run com.jagex.RuneScape
Awesome, those commands seem to be working just fine. And thanks for the info on when the runescape file is downloaded super handy.
I have libcurl.so.4
in place, but it is still complaining about not finding headers. So yes, that seems to not be the source of the issue. I did think about this just now searching around some more... GPU. The laptop is an integrated Intel GPU while the desktop is running and Nvidia GPU. Perhaps the problem lies in that difference. I'll do some more investigating this weekend and see what comes up.
Thank you for the instructions to get it running!
I just tried to run the Flatpak on Arch Linux in Virtualbox (like I did with Elementary/Ubuntu/Fedora) and it's the same error there. I then went on to just installing the client (without Flatpak) and same issue. So this is not a Flatpak related issue, it's the client itself.
You are probably correct that it's an issue related to what video drivers are used. It works on my main machine (RX 480, AMDGPU) but not in VirtualBox.
Hmm. I installed the client as a sanity check in Elementary directly. Worked perfect on the laptop with the Intel chip. While the flatpak still failed.
Finally with the local build I was able to run it in development mode. Here is my strace output, trying to decipher it now to see if it brings some light to what is going on.
And I realized after a bit more digging, these dumps aren't the whole story. What is crashing is the subprocess for the game that spawns. Which isn't traced unless you do the -f
option on strace. But, the stack for that is massive before the crash in the flatpak and on the host system it actually causes an infinite loop that causes the game to never load. So, these strace
dumps might not be too useful. :frowning:
It looks like the gnome 3.28 library update (from 3.26) solved the running problem. Oddly though, only when pulled from flathub. If I made that change locally and rebuilt it still crashed.
The Gnome 3.28 update triggered this to work on my system at the time. I'm going to close this out since it was very odd not starting up like that anywhere but only on certain versions of flatpak itself.
I will be pulling some of the extremely useful data @Limero provided in here into a contributing guide once I get things mapped out.
I'm trying to run this flatpak on a system running Elementary OS (Ubuntu 16.04 based.) When I try to launch from the application launcher, it quickly shows itself then dies. Running from the terminal I can see that it dies since it can't find
/lib/libcurl.so.4
which the launcher requires to run further.What is weird is, it runs fine on another system using the same OS. This issue occurs regardless of whether the game is installed to the user account or the system.
Terminal output
``` jonathan@jonathan-K55A ~ ✔ 07:49:05 ↳ flatpak run com.jagex.RuneScape /app/extra/runescape: /lib/libcurl.so.4: no version information available (required by /app/extra/runescape) /home/jonathan/Jagex/launcher/rs2client: /lib/libcurl.so.4: no version information available (required by /home/jonathan/Jagex/launcher/rs2client) ```Please let me know if there is anything else I can do to help figure this out. I'm new to flatpaks so not sure what the debug process is.
Thank you.