question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flatpak not working with Wayland

See original GitHub issue

Describe the bug

When running Cinny as a Flatpak on a desktop running under Wayland (instead of X11), Cinny instantly crashes, with the following line of system log:

segfault at e0 ip 00007f5934a9b144 sp 00007f593094e6b8 error 4 in libX11.so.6.4.0[7f5934a82000+94000]

Reproduction

  1. Run a Fedora 36 GNOME session with Wayland (which is the case per default with the default Fedora 36 flavor)
  2. Install Cinny as a Flatpak
  3. Try to start Cinny

At this point, Cinny does not start, and running journalctl -b | grep -i cinny I can find:

segfault at e0 ip 00007f5934a9b144 sp 00007f593094e6b8 error 4 in libX11.so.6.4.0[7f5934a82000+94000]

Expected behavior

Cinny should start without crashing.

Platform and versions

1. OS: Fedora 36, GNOME, Wayland
2. Browser: N/A (using the desktop version as a Flatpal)
3. Cinny: v2.0.3
4. Homeserver: private

Additional context

This problem does not appear with running GNOME with X11.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
kfivencommented, Sep 17, 2022

should be fixed in 2.2.0

1reaction
jakobkmarcommented, May 26, 2022

Workaround is to disable the fallback-x11 socket and enable the x11 socket. If you want to do it using a graphical client, this can be done using Flatseal: image

However it would be the best if Cinny supports Wayland - and does not have to run through XWayland.

Until that does not happen, the sockets in the Manifest should probably be updated and pass x11 directly (instead of fallback-x11). Pinging @kfiven here 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I force Flatpak apps to run on Wayland? : r/Fedora
You can use command flatpak run --socket=wayland <your app name> to run the app, or you can download Flatseal and set the app...
Read more >
On GNOME-Wayland, a lot of Flatpak applications don't start ...
As long as XWayland is not running, these applications-Flatpak don't start. As soon as XWayland is running, these applications-Flatpak can be ...
Read more >
1665817 - [Flatpak] Enable native Wayland - Bugzilla@Mozilla
It should be opened in a native Wayland window. I made a post about enabling native Wayland in Firefox Flatpak: https://www.reddit.com/r/LinuxCafe/duplicates/ ...
Read more >
Flatpak - Gentoo Wiki
Flatpak is a package management framework aiming to provide ... 6 Flatpaked GTK apps under Wayland and jagged fonts; 7 Troubleshooting.
Read more >
Fixing the "Unable to open a connection to X" Flatpak Steam ...
a tip to may fix # Flatpak #Steam not starting on #GNOME Wayland BG Music Digimon OST - Pre Battle. Show less Show...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found