moonlight-stream / moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
GNU General Public License v3.0
10.14k stars 593 forks source link

Flatpack moonlight does not start #1110

Open actorius opened 10 months ago

actorius commented 10 months ago

Describe the bug Moonlight flatpack does not start. Other flatpack products is work fine

Client PC details (please complete the following information)

System:
  Kernel: 5.15.0-88-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Console: pty pts/1
    Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy

Moonlight Logs (please attach)

$ flatpak -v run com.moonlight_stream.Moonlight > fl
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/aaa/.local/share/flatpak
F: Opening user flatpak installation at path /home/aaa/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: Skipping parental controls check for app/com.moonlight_stream.Moonlight/x86_64/stable since parental controls are disabled globally
F: Opening user flatpak installation at path /home/aaa/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: /var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15-23.08/e8df3ccc33b27e57a15e41a9155e3c8cdbed9b54a6fae8f7d8d8d640bdbf37f8/files/lib32 does not exist
F: Cleaning up unused container id 386461692
F: Cleaning up per-app-ID state for com.moonlight_stream.Moonlight
F: Allocated instance id 4003498710
F: Add defaults in dir /com/moonlight_stream/Moonlight/
F: Add locks in dir /com/moonlight_stream/Moonlight/
F: Allowing wayland access
F: Allowing x11 access
F: Allowing pulseaudio access
F: Pulseaudio user configuration file '/home/aaa/.config/pulse/client.conf': Произошла ошибка открытия файла /home/aaa/.config/pulse/client.conf: Нет такого файла или каталога
F: Running 'bwrap --args 40 xdg-dbus-proxy --args=42'
F: Running 'bwrap --args 40 moonlight'
Gtk-Message: 12:25:07.408: Failed to load module "xapp-gtk3-module"
*** stack smashing detected ***: terminated

Additional context apt -f install says no problem apt install xapp says required libxapp1 (= 2.2.8-1) but 2.6.1+victoria installed

cgutman commented 10 months ago

Can you try to follow the steps documented [here]https://docs.flatpak.org/en/latest/debugging.html#running-debugging-tools) to run Moonlight under gdb and then run bt when it crashes?

https://docs.flatpak.org/en/latest/debugging.html

actorius commented 10 months ago
...
Reading symbols from /app/bin/moonlight...
(No debugging symbols found in /app/bin/moonlight)
(gdb)

I cannot find Debug symbols in flatpak repo, thinking it should be builded manual. Possible strace may be helpful com.moonlight_stream.Moonlight.txt

actorius commented 10 months ago

Today i setup fresh installation of Mint Mate. Before updates i check moonlight flatpak - it was working (say no drivers for decoding, but it run). After, i setup updates and NVIDIA driver. As result - same error, flatpak not working. Rever driver to opensource - moonlight run again.

cgutman commented 10 months ago

Hmm, seems like a Flatpak runtime issue with the NVIDIA driver. There are quite a few hits for "stack smashing detected" related to the Nvidia driver on Google.

Can you run flatpak update, then flatpak install com.moonlight_stream.Moonlight.Debug and try to get another backtrace?

JoaGamo commented 9 months ago

I'm getting the same issues, i'm not using an nvidia card (if that's related?, I'm using Ryzen 5500u iGPU, Linux Mint), and I didn't know how to debug it properly as i'm getting the error "runtime/org.kde.Sdk/x86_64/5.15-23.08 not installed" (Along with a very similar report as the OP, can't install 'libxapp-1'). I don't know how to fix this, 'flatpak repair' as I've found on internet didnt work.

If anyone stumbles upon this, the Flatpak was broken for me too, today suddenly it didn't work anymore The temporal workaround is downloading the latest AppImage from Moonlight, making it executable with 'chmod +x' and executing it.