-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Running flatpak applications on NixOS crashes with segmentation fault #365726
Comments
I've never encountered this issue on amd64_x86-linux and 24.05. FWIW I tired running the apps you mention in a vm (NixOS 24.05, Gnome) and everything works. The output of
You might need to enable https://nixos.wiki/wiki/Debug_Symbols to get meaningful output. My first hunch, though, would be something broken in your runtime or user session. A couple of ideas to help troubleshoot:
|
I'm not very familiar with
Then, I followed it up with a
I'm not really sure how to interpret that information.
and
Please let me know if you want me to try more things on my end. Thanks for your time. |
Describe the bug
One of my NixOS machines with flatpak enabled seems to be a in bad state that doesn't allow any flatpak applications to run. Flatpak itself is still able to do things like
list
orrepair
, but running any application results in aSegmentation fault (core dumped)
Has anyone encountered this issue before and what is the correct way get a backtrace from a crashing program from NixOS?
I'm trying to follow up on another bug report I reported at Flatpak here:
flatpak/flatpak#6039
Thanks
Steps To Reproduce
Steps to reproduce the behavior:
Running any flatpak application from the desktop UI (KDE) results in the icon appearing in the taskbar for a few seconds before disappearing. Some applications will trigger a KDE notification (Portal) that X application is running in the background.
Attempting to run the application from the terminal results in the Segmentation fault (core dumped) message. For example:
I was able to use flatpak-coredumpctl to help troubleshoot. At first I was getting the following output:
After some searching, I was able to figure out that I was missing
org.freedesktop.Sdk
from the error line. I was able to install the missing sdk withflatpak install flathub org.freedesktop.Sdk
.However, now I'm getting the following core dump message:
I was not able to figure out how to use the
gdb
terminal with flatpaks, but I was able to usecoredumpctl info -1
andcoredumpctl gdb -1
.Expected behavior
Applications should start up and run.
Additional context
I think this is more of a troubleshooting issue more than a bug. I believe Flatpak got into a bad state on this particular machine. Another computer that also uses NixOS flatpaks doesn't encounter this issue.
I have tried the following to no avail:
flatpak repair
mv
or delete the~/.local/share/flatpak
services.flatpak.enable = true
and rebuilding, doing asudo nix-collect-garbage -d
to clean it out, and doing anothernixos-rebuild
to add flatpak back in.Note: I'm using flakes to setup my NixOS and have been running on unstable branch for the last 3 months. This issue with my flatpak install happened a while back (about 2 months ago), but it wasn't do to the switch to unstable branch. I didn't do much about this problem, since I was able use the nix packaged versions of some applications.
Metadata
Notify maintainers
Seth <[email protected]>
The text was updated successfully, but these errors were encountered: