celluloid-player / celluloid

A simple GTK+ frontend for mpv
https://celluloid-player.github.io
GNU General Public License v3.0
1.1k stars 87 forks source link

Celluloid 0.22 crashes when I try to play a video on Wayland session of KDE Plasma #738

Closed glaubersm closed 2 years ago

glaubersm commented 2 years ago

Overview Description: Celluloid always crashes when I try to play a video on Arch Linux ruuning Wayland session of KDE Plasma. Steps to Reproduce:

  1. open Celluoid on Wayland session of KDE Plasma
  2. open a video via '+' button

Actual Results: crash Expected Results: video plays Version: 0.22 from Arch repos and celluloid-git from AUR Additional Information: output in terminal:

Gdk:ERROR:../gtk/gdk/wayland/gdksurface-wayland.c:2286:gdk_wayland_toplevel_inhibit_idle: assertion failed: (wayland_toplevel->idle_inhibitor && wayland_toplevel->idle_inhibitor_refcount > 0)
Bail out! Gdk:ERROR:../gtk/gdk/wayland/gdksurface-wayland.c:2286:gdk_wayland_toplevel_inhibit_idle: assertion failed: (wayland_toplevel->idle_inhibitor && wayland_toplevel->idle_inhibitor_refcount > 0)
Aborted (core dumped)
gnome-mpv commented 2 years ago

This seems to be a bug in GTK. Calling gtk_application_inhibit() on Plasma Wayland always triggers a crash.

brolyxxx commented 2 years ago

Hi, for what it's worth I can confirm the same error in Sway under Wayland in Arch Linux 5.15.12-arch1-1, so probably not a Plasma-specific GTK bug

celluloid 0.22-1 mpv 1:0.34.1-1 sway 1:1.6.1-2 wayland 1.20.0-1 gtk4 1:4.6.0-1

rumpelsepp commented 2 years ago

Also happens on sway version 1.8-dev-e1db1f82

I tried the stable flatpak version flatpak install flathub io.github.celluloid_player.Celluloid and the issue is gone.

gnome-mpv commented 2 years ago

This has been fixed in the Git version of GTK. I'll bump the minimum GTK version when they make a new release.