Skip to content
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

'GDK_IS_MONITOR (monitor)' failed #140

Closed
Tealk opened this issue May 9, 2024 · 21 comments
Closed

'GDK_IS_MONITOR (monitor)' failed #140

Tealk opened this issue May 9, 2024 · 21 comments

Comments

@Tealk
Copy link

Tealk commented May 9, 2024

Hello,

when I try to play a video, I get the following error message:

Cannot load libcuda.so.1

(io.github.celluloid_player.Celluloid:2): Gdk-CRITICAL **: 16:24:06.762: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed

Here are my system specifications:

inxi -Fzxi output
System:
  Kernel: 6.8.8-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-34.fc40
  Desktop: GNOME v: 46.1 Distro: Fedora Linux 40.20240509.0 (Silverblue)
Machine:
  Type: Laptop System: Framework product: Laptop 16 (AMD Ryzen 7040 Series)
    v: AG serial: <superuser required>
  Mobo: Framework model: FRANMZCP07 v: A7 serial: <superuser required>
    UEFI: INSYDE v: 03.03 date: 03/27/2024
Battery:
  ID-1: BAT1 charge: 88.6 Wh (100.0%) condition: 88.6/85.1 Wh (104.1%)
    volts: 17.8 min: 15.5 model: NVT FRANDBA status: not charging
  Device-1: hid-18:7e:b9:67:f4:86-battery model: Tealk-Magic Trackpad 2
    charge: N/A status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics bits: 64
    type: MT MCP arch: Zen 4 rev: 1 cache: L1: 512 KiB L2: 8 MiB L3: 16 MiB
  Speed (MHz): avg: 1043 high: 3244
    min/max: 400/5137:5293:5449:6080:5764:5924:5608 cores: 1: 1977 2: 400 3: 400
    4: 1399 5: 400 6: 400 7: 2191 8: 3244 9: 400 10: 400 11: 1430 12: 1512
    13: 400 14: 400 15: 400 16: 1348 bogomips: 121373
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 33 [Radeon RX 7700S/7600/7600S/7600M XT/PRO W7600]
    vendor: Framework driver: amdgpu v: kernel arch: RDNA-3 bus-ID: 03:00.0
  Device-2: AMD Phoenix1 vendor: Framework driver: amdgpu v: kernel
    arch: RDNA-3 bus-ID: c4:00.0 temp: 38.0 C
  Device-3: Logitech C920 PRO HD Webcam driver: snd-usb-audio,uvcvideo
    type: USB bus-ID: 5-1.1.4.1:6
  Display: wayland server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu resolution:
    1: 3440x1440~100Hz 2: 2048x1280~165Hz
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.0.6 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi gfx1103_r1 LLVM
    18.1.1 DRM 3.57 6.8.8-300.fc40.x86_64)
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: AMD Navi 31 HDMI/DP Audio vendor: Framework driver: snd_hda_intel
    v: kernel bus-ID: 03:00.1
  Device-2: AMD Rembrandt Radeon High Definition Audio vendor: Framework
    driver: snd_hda_intel v: kernel bus-ID: c4:00.1
  Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Framework
    driver: snd_pci_ps v: kernel bus-ID: c4:00.5
  Device-4: AMD Family 17h/19h HD Audio vendor: Framework
    driver: snd_hda_intel v: kernel bus-ID: c4:00.6
  Device-5: Logitech C920 PRO HD Webcam driver: snd-usb-audio,uvcvideo
    type: USB bus-ID: 5-1.1.4.1:6
  Device-6: Beyerdynamic FOX driver: hid-generic,snd-usb-audio,usbhid
    type: USB bus-ID: 5-1.1.4.3:7
  API: ALSA v: k6.8.8-300.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e v: kernel bus-ID: 04:00.0
  IF: wlp4s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB
    bus-ID: 1-5:7
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 1.82 TiB used: 213.49 GiB (11.5%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD BLACK SN770 1TB
    size: 931.51 GiB temp: 29.9 C
  ID-2: /dev/sda vendor: Seagate model: UltraTouch SSD size: 931.51 GiB
    type: USB
Partition:
  ID-1: /boot size: 973.4 MiB used: 148 MiB (15.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 598.8 MiB used: 12.4 MiB (2.1%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /var size: 929.91 GiB used: 82.95 GiB (8.9%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-91874fa2-dc37-4bd0-aee8-c4a03dee90d0
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 306 MiB (3.7%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 45.6 C mobo: N/A
  Fan Speeds (rpm): N/A
  GPU: device: amdgpu temp: 28.0 C fan: 0 device: amdgpu temp: N/A
Info:
  Memory: total: 32 GiB note: est. available: 30.65 GiB used: 9.63 GiB (31.4%)
  Processes: 645 Uptime: 13h 21m Init: systemd target: graphical (5)
  Packages: 78 Compilers: N/A Shell: Bash v: 5.2.26 inxi: 3.3.34
rpm-ostree status
State: idle
Deployments:
● fedora:fedora/40/x86_64/silverblue
                  Version: 40.20240509.0 (2024-05-09T00:43:58Z)
               BaseCommit: a661ce7feeb09db359411f0785ea4a87d7b2c0de682d866869e8cdbeeb0f80fc
             GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC
          LayeredPackages: ansible ghc-ShellCheck git gnome-console gnome-shell-extension-caffeine gnome-shell-extension-gpaste
                           gnome-shell-extension-gsconnect gnome-shell-extension-unite gnome-tweaks gpaste
                           gstreamer1-plugin-openh264 hstr inxi nextcloud-client pipx python3-tabulate

@TingPing
Copy link
Member

TingPing commented May 9, 2024

I'm not sure this is specific to this package at all. I can say it works fine here on my somewhat similar setup: GNOME-Shell 45 (wayland), AMD GPU.

@kekkoudesu
Copy link

kekkoudesu commented May 10, 2024

For what it's worth, I'm running Fedora Silverblue with a single package layered, inxi, and the Celluloid flatpak works just fine for me without that error. This is the only error I get when I run flatpak run io.github.celluloid_player.Celluloid:

Cannot load libcuda.so.1

But it plays videos fine, so I wonder what's different on your system...

Here's my inxi -FzxI:

inxi -Fzxi output
System:
  Kernel: 6.8.8-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-34.fc40
  Desktop: GNOME v: 46.1 Distro: Fedora Linux 40.20240509.0 (Silverblue)
Machine:
  Type: Laptop System: ASUSTeK product: ROG Strix G531GV_G531GV v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: G531GV v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: G531GV.308 date: 02/01/2021
Battery:
  ID-1: BAT0 charge: 43.9 Wh (100.0%) condition: 43.9/66.0 Wh (66.6%)
    volts: 15.7 min: 15.7 model: ASUSTeK ASUS Battery status: not charging
CPU:
  Info: 6-core model: Intel Core i7-9750H bits: 64 type: MT MCP
    arch: Coffee Lake rev: A cache: L1: 384 KiB L2: 1.5 MiB L3: 12 MiB
  Speed (MHz): avg: 1032 high: 1771 min/max: 800/4500 cores: 1: 1565 2: 1771
    3: 800 4: 800 5: 800 6: 800 7: 1766 8: 800 9: 800 10: 800 11: 800 12: 892
    bogomips: 62399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-9.5 bus-ID: 00:02.0
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: ASUSTeK
    driver: nouveau v: kernel arch: Turing bus-ID: 01:00.0
  Display: wayland server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6
    compositor: gnome-shell driver: dri: iris gpu: i915
    resolution: 1920x1080~120Hz
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.0.6 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3
  Device-2: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 01:00.1
  API: ALSA v: k6.8.8-300.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel port: 3000 bus-ID: 03:00.0
  IF: eno2 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb
    v: 0.8 type: USB bus-ID: 1-14:3
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
    lmp-v: 10
Drives:
  Local Storage: total: 476.94 GiB used: 11.63 GiB (2.4%)
  ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8 size: 476.94 GiB
    temp: 26.9 C
Partition:
  ID-1: /boot size: 973.4 MiB used: 148 MiB (15.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 598.8 MiB used: 12.4 MiB (2.1%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /var size: 475.35 GiB used: 11.47 GiB (2.4%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C pch: 43.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 0
Info:
  Memory: total: 16 GiB available: 15.46 GiB used: 3.66 GiB (23.7%)
  Processes: 358 Uptime: 9m Init: systemd target: graphical (5)
  Packages: 29 Compilers: N/A Shell: Bash v: 5.2.26 inxi: 3.3.34

And here's my flatpak list:

flatpak list output
Name                                             Application ID                                  Version              Branch                 Origin                      Installation
Dconf Editor                                     ca.desrt.dconf-editor                           45.0.1               stable                 flathub                     system
Lightworks                                       com.lwks.Lightworks                                                  master                 lightworks-origin           system
Celluloid                                        io.github.celluloid_player.Celluloid            0.26                 stable                 flathub                     system
Fedora Media Writer                              org.fedoraproject.MediaWriter                   5.1.0                stable                 fedora                      system
Fedora Platform                                  org.fedoraproject.Platform                      40                   f40                    fedora                      system
Freedesktop Platform                             org.freedesktop.Platform                        23.08.17             23.08                  flathub                     system
Mesa                                             org.freedesktop.Platform.GL.default             24.0.6               23.08                  flathub                     system
Mesa (Extra)                                     org.freedesktop.Platform.GL.default             24.0.6               23.08-extra            flathub                     system
Intel                                            org.freedesktop.Platform.VAAPI.Intel                                 23.08                  flathub                     system
openh264                                         org.freedesktop.Platform.openh264               2.1.0                2.2.0                  flathub                     system
Calculator                                       org.gnome.Calculator                            46.0                 stable                 fedora                      system
Calendar                                         org.gnome.Calendar                              46.0                 stable                 fedora                      system
Characters                                       org.gnome.Characters                            46.0                 stable                 fedora                      system
Connections                                      org.gnome.Connections                           46.0                 stable                 fedora                      system
Contacts                                         org.gnome.Contacts                              46.0                 stable                 fedora                      system
Document Viewer                                  org.gnome.Evince                                46.0                 stable                 fedora                      system
Extensions                                       org.gnome.Extensions                            46.0                 stable                 fedora                      system
Logs                                             org.gnome.Logs                                  45.0                 stable                 fedora                      system
Image Viewer                                     org.gnome.Loupe                                 46.2                 stable                 fedora                      system
Maps                                             org.gnome.Maps                                  46.9                 stable                 fedora                      system
Sushi                                            org.gnome.NautilusPreviewer                     46.0                 stable                 fedora                      system
GNOME Application Platform version 45            org.gnome.Platform                                                   45                     flathub                     system
Camera                                           org.gnome.Snapshot                              46.1                 stable                 fedora                      system
Text Editor                                      org.gnome.TextEditor                            46.1                 stable                 fedora                      system
Weather                                          org.gnome.Weather                               46.0                 stable                 fedora                      system
Disk Usage Analyzer                              org.gnome.baobab                                46.0                 stable                 fedora                      system
Clocks                                           org.gnome.clocks                                46.0                 stable                 fedora                      system
Fonts                                            org.gnome.font-viewer                           46.0                 stable                 fedora                      system
Parabolic                                        org.nickvision.tubeconverter                    2023.12.0            stable                 flathub                     system

Lastly, here's my rpm-ostree status, which lists my layered packages:

rpm-ostree status
State: idle
Deployments:
● fedora:fedora/40/x86_64/silverblue
                  Version: 40.20240509.0 (2024-05-09T00:43:58Z)
               BaseCommit: a661ce7feeb09db359411f0785ea4a87d7b2c0de682d866869e8cdbeeb0f80fc
             GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC
          LayeredPackages: inxi

  fedora:fedora/40/x86_64/silverblue
                  Version: 40.20240509.0 (2024-05-09T00:43:58Z)
                   Commit: a661ce7feeb09db359411f0785ea4a87d7b2c0de682d866869e8cdbeeb0f80fc
             GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC

I have no idea how to debug this further.

@Tealk
Copy link
Author

Tealk commented May 10, 2024

Maybe it has more to do with my second monitor?
I have connected it via USB-C DP, it is an LG 35WN75C-B

@kekkoudesu
Copy link

Maybe it has more to do with my second monitor? I have connected it via USB-C DP, it is an LG 35WN75C-B

Were you able to get it to work without the monitor connected?

@Tealk
Copy link
Author

Tealk commented May 10, 2024

Were you able to get it to work without the monitor connected?

No not really, the same error

@kekkoudesu
Copy link

🤔

This is my last idea. It might be useful for someone else when debugging this issue...

What do you get when running:

env | grep DISPLAY

Now enter the flatpak sandbox like this:

flatpak run --command=sh io.github.celluloid_player.Celluloid

And try a few things:

env | grep DISPLAY
DISPLAY=:0 /app/bin/celluloid
WAYLAND_DISPLAY=wayland-0 /app/bin/celluloid

@Tealk
Copy link
Author

Tealk commented May 10, 2024

env | grep DISPLAY
WAYLAND_DISPLAY=wayland-0
GNOME_SETUP_DISPLAY=:1
DISPLAY=:0
[📦 io.github.celluloid_player.Celluloid ~]$ env | grep DISPLAY
WAYLAND_DISPLAY=wayland-0
GNOME_SETUP_DISPLAY=:1
[📦 io.github.celluloid_player.Celluloid ~]$ DISPLAY=:0 /app/bin/celluloid
Cannot load libcuda.so.1

(io.github.celluloid_player.Celluloid:5): Gdk-CRITICAL **: 15:11:02.332: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed

cant play videos

[📦 io.github.celluloid_player.Celluloid ~]$ WAYLAND_DISPLAY=wayland-0 /app/bin/celluloid
Cannot load libcuda.so.1

(io.github.celluloid_player.Celluloid:70): Gdk-CRITICAL **: 15:11:39.770: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed

still cant play videos

@kekkoudesu
Copy link

kekkoudesu commented May 11, 2024

It seems like your environment variables are being set correctly...

It looks like this isn't going to get debugged here, and it doesn't seem to be an issue specifically with the Flatpak package.

So here's my best idea:

Layer on the Celluloid pacakge with rpm-ostree install celluloid. Then try to run it and see if it starts up. if you get the same error (I see no reason why you wouldn't), report it here: https://github.com/celluloid-player/celluloid/issues

And since you won't have support for decoding H.264/H.265 enabled, use this video to test Celluloid: https://commons.wikimedia.org/wiki/File:Big_Buck_Bunny_4K.webm

@Tealk
Copy link
Author

Tealk commented May 11, 2024

I was recommended the flatpack because of the codec problem^^

@kekkoudesu
Copy link

I was recommended the flatpack because of the codec problem^^

Well, I'm actually the user who recommended it to you over on discussion.fedoraproject.org :)

The only reason I'm suggesting reproducing the problem on RPM Celluloid is because this particular GDK_IS_MONITOR issue seems to need a fix inside of Celluloid itself, rather than being an issue unique to the Flatpak as I had thought initially.

@Tealk
Copy link
Author

Tealk commented May 11, 2024

Strange, I can start the linked video with the rpm version as well as the flatpack version, just no .mp4
But I get the same error message with both versions.

@kekkoudesu
Copy link

kekkoudesu commented May 11, 2024

So it looks exactly like this when you try to run a .mp4 video in both RPM Celluloid and Flatpak Celluloid? The window pops up and everything and you can use Celluloid? It's just playback that's a problem?

image

That's what it looks like for me on the exact same Silverblue system when I try to play a .mp4 video on the RPM Celluloid. This is expected behaviour because Silverblue doesn't ship with H.264/H.265 video codecs enabled.

But when I use the Flatpak version, it plays fine:
image

By the way, I'm using this .mp4 video to test: https://aperi.tube/w/860e3484-73df-43b1-8b20-abcfe6c47360

I downloaded the 1080p version: https://aperi.tube/download/streaming-playlists/hls/videos/860e3484-73df-43b1-8b20-abcfe6c47360-1080-fragmented.mp4

I don't get the GDK_IS_MONITOR error in either case. Let me preface this by saying the first time I used Celluloid was 2 days ago, and I haven't looked at much of the code.

I'm not entirely sure how to get a list of codecs the Celluloid flatpak has support for. I've read this part of the manifest, but I don't know if that just means "build all the decoders ever!" because I'm not too familiar with ffmpeg build options. This is compared with the mpv Flatpak, which explicitly includes the x264/x265 decoders when building ffmpeg.

Edit: mpv --vd=help is the way. You can compare installing mpv with rpm-ostree install mpv versus the Celluloid flatpak included version (flatpak run --command=mpv io.github.celluloid_player.Celluloid --vd=help). You'll see different codecs are supported. Though notably Fedora's packaged mpv does include support for H.264 decoding via libopenh264 (h264) - OpenH264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10. In any case, this Flatpak package's mpv includes support for these extra codecs:

h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
hevc - HEVC (High Efficiency Video Coding)
hevc_v4l2m2m (hevc) - V4L2 mem2mem HEVC decoder wrapper

The question is, why can I get H.264 and H.265 videos to playback properly in the Celluloid Flatpak, but you can't?

My only theory is that either my Intel iGPU or my NVIDIA dGPU has a hardware decoder and that's what the Celluloid Flatpak is using. But when I hit i to show info while the video is playing, it doesn't have the HW: vaapi text. Which means it's using software decoding, right? That's odd, indeed.

Perhaps somehow you don't have a hardware decoder capable of playing back .mp4 media (highly unlikely), or at the very least, Celluloid isn't using it. So maybe you can force Celluloid to use your AMD GPU's hardware decoder. Click the ☰ icon, click Preferences, go to Miscellaneous, and add --hwdec=vaapi to Extra mpv options:

image

Then try to play your .mp4 video.

For completeness, I can also play H.265/HEVC videos fine in addition to standard H.264 ones with the Celluloid Flatpak, but I can't actually share an example of one.

@Tealk
Copy link
Author

Tealk commented May 11, 2024

I downloaded the 1080p version: https://aperi.tube/download/streaming-playlists/hls/videos/860e3484-73df-43b1-8b20-abcfe6c47360-1080-fragmented.mp4

I can't play this with the flatpack version, even if I use the --hwdec=vaapi setting.

@kekkoudesu
Copy link

Okay, I've got one more idea. Celluloid is a GTK application and uses GDK_IS_MONITOR. mpv is not, so it won't run into that particular error. The Celluloid flatpak comes bundled with mpv, so we can use that for testing.

Try this:

  1. Give the Celluloid flatpak permission to interact with your ~/Videos directory and put the Missing Halloween .mp4 in that directory. You can use sudo flatpak override --filesystem="~/Videos" io.github.celluloid_player.Celluloid or Flatseal to do this.
  2. Try to play the Missing Halloween video with mpv: flatpak run --command="mpv" io.github.celluloid_player.Celluloid "~/Videos/Missing Halloween-1080p-hls.mp4" This should give you a lot more output, though we can always add more options for verbosity...

And just for completeness, if the above doesn't work, can you also try:

  1. Going into the Flatpak sandbox with flatpak run --command=sh io.github.celluloid_player.Celluloid
  2. Running mpv --vd=help and pasting the output. h264 should be listed there...

@Tealk
Copy link
Author

Tealk commented May 12, 2024

I have tried the commands once mpv is not found

flatpak run --command="mpv" io.github.celluloid_player.Celluloid '/var/home/tealk/Downloads/Missing Halloween-1080p-hls.mp4' 
bwrap: execvp mpv: No such file or directory

flatpak run --command=sh io.github.celluloid_player.Celluloid
[📦 io.github.celluloid_player.Celluloid ~]$ mpv --vd=help
sh: mpv: command not found
[📦 io.github.celluloid_player.Celluloid ~]$ 

@kekkoudesu
Copy link

I think I've figured out what's going on.

By any chance, do you have the Fedora flatpak version of Celluloid installed?

You can check by running flatpak list | grep celluloid. If you were using the Flathub package, it should look like this:

Celluloid	io.github.celluloid_player.Celluloid	0.26	stable	flathub	system

If it says Fedora instead of Flathub, you need to uninstall it and install the Flathub version.

@Tealk
Copy link
Author

Tealk commented May 12, 2024

yes that was the problem, sorry for all the work i caused the Flatpak version works perfectly.

@Tealk Tealk closed this as completed May 12, 2024
@kekkoudesu
Copy link

kekkoudesu commented May 12, 2024

yes that was the problem, sorry for all the work i caused the Flatpak version works perfectly.

Glad it works! GNOME Software tends to select the Fedora Flatpak by default. Fedora Flatpaks are based on RPM packages that have been converted. This can be a good or a bad thing; you might prefer a Fedora Flatpak to an Unverified Flathub Flatpak, but in the case of Celluloid, the Flathub package is Verified while the Fedora Flatpak intentionally lacks some features. You can turn that Fedora Flatpaks repository off if you want, because it can get confusing...

@TingPing
Copy link
Member

Thats extremely frustrating Fedora does this…

@kekkoudesu
Copy link

The primary reason they exist seems to be:

Fedora Flatpaks’s motivation is to push RPMs that come directly from the Fedora Project and make them accessible throughout Fedora Linux regardless of the versions, spin, etc. So, in theory, it would be possible to get the latest and greatest applications from the Fedora Project without needing to upgrade to the latest version of Fedora Linux. Of course, it’s always advisable to keep everything up-to-date.

Source: https://fedoramagazine.org/comparison-of-fedora-flatpaks-and-flathub-remotes/

I'm not sure that's worth the drawbacks, to be honest...

@Tealk
Copy link
Author

Tealk commented May 13, 2024

I have replaced all packages with those from flathub, I currently see no reason to use those from fedora.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants