FS#62526 - [totem] Totem or Gnome-MPV do not play video in Gnome Wayland session

Attached to Project: Arch Linux
Opened by Steffen Sindzinski (SteffenS) - Thursday, 02 May 2019, 04:50 GMT
Last edited by Balló György (City-busz) - Thursday, 08 June 2023, 19:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Totem or Gnome-MPV do not play video in Gnome Wayland session. It starts but when trying to play video an error comes up. In Gnome Xorg session all works well. I am using Nouveau driver. VLC and MPV work fine. I tried both packages from Extra and Flathub. On my Antergos PC also with latest packages it works fine but on a fresh Arch linux install on same machine same happens. My system was working fine until one month or so.

Additional info:

Totem 3.32.0-1
gnome-mpv 0.16-1
xf84-video-nouvau 1.0.16-1
5.0.10-arch1-1-ARCH

Gdk-Message: 06:39:12.325: Error 71 (Protokollfehler) dispatching to Wayland display.

This task depends upon

Closed by  Balló György (City-busz)
Thursday, 08 June 2023, 19:46 GMT
Reason for closing:  Upstream
Comment by Steffen Sindzinski (SteffenS) - Thursday, 02 May 2019, 04:53 GMT
The Antergos PC using AMD not Nouvau graphics drivers.
Comment by Pascal Migazzi (knard) - Saturday, 29 June 2019, 15:25 GMT
I'm facing the same issue on my desktop. I'm also using Nouveau driver (GT640). Totem crash when starting to play video. If I remove the .config/totem/session_state.xspf Totem will start till I select a video. If I use the X11 backend the application is working correctly (even during a wayland session).
Comment by Steffen Sindzinski (SteffenS) - Thursday, 11 July 2019, 11:07 GMT
It seems newer GTK versions do not support nouveau any more. Kodi crashes on both Wayland and X11. Nvidia driver needs to be installed.
Comment by Pascal Migazzi (knard) - Sunday, 19 January 2020, 11:28 GMT
I'm still facing the issue, as described in previous comment. If you need more information or logs, don't hesitate to ask.
Comment by mattia (nTia89) - Sunday, 20 March 2022, 15:23 GMT
Several improvements have been made on the Wayland side.

Is this issue still valid?
Comment by Seyyed Arash Hosseini (arash12ir) - Thursday, 18 May 2023, 13:46 GMT
As 18 May 2023, I still have this problem.

- What is the Problem?
On Wayland: Totem (Gnome Videos) Errors when Starting itself saying "Internal data stream error", and then freezes when opening some video formats (MP4 by sure, I didn't try all video formats) with it.
On XORG: It opens without error, but then freezes when opening a file with it, again.
The problem reproduces both on native packages and also flatpak.

- Hardware: Laptop, Dell Precision 3510, 16GB RAM, 250GB SSD internal storage
- CPU: Intel i7-6820HQ (8) @ 3.600GHz
- GPU1: Intel HD Graphics 530
- GPU2: AMD ATI Radeon HD 8830M / R7 250

- Distro: Arch Linux (Manual)

- Kernel: `linux-zen 6.3.2.zen1-1` AND `linux-cachyos 6.3.3-1` (Reproduces on the both)

- Desktop Environment: `gnome-shell 1:44.1-3.1`

- Other Related packages: `wayland 1.22.0-1.1` AND `xorg-server 21.1.8-1.1` (Reproduces almost on the both), `flatpak 1:1.15.4-1`

- Software version: `totem 43.0-2.1`

- Dependencies:
```
totem-pl-parser 3.26.6-2.1
iso-codes 4.15.0-1
libpeas 1.36.0-2.1
grilo 0.3.16-1.1
gsettings-desktop-schemas 44.0-1
python-gobject 3.44.1-3.1
gnome-desktop 1:44.0-1.1
gst-plugins-base 1.22.2-1.1
gst-plugins-good 1.22.2-1.1
gst-plugins-bad 1.22.2-1.1
gst-plugin-gtk 1.22.2-1.1
libhandy 1.8.2-1.1
libportal-gtk3 0.6-1.1
```

- Optional Dependencies:
```
gst-plugins-ugly 1.22.2-1.1
gst-libav 1.22.2-1.1
grilo-plugins 1:0.3.16-1.1
```

- The last time that I didn't have this bug? I don't remember!

- Is this problem Totem specific? Yes! I don't have this problem with `clapper`, `MPV`, `VLC` and `Celluloid`

- How to reproduce the bug? Just opening totem in my system or trying to open a video file with it.

- `journalctl` logs:
```
May 18 16:20:02 arash-arch totem[18649]: gst_buffer_get_meta: assertion 'buffer != NULL' failed
May 18 16:20:02 arash-arch totem[18649]: gst_buffer_get_meta: assertion 'buffer != NULL' failed
May 18 16:20:02 arash-arch dbus-daemon[425]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service' requested by ':1.153' (uid=1000 pid=18649 comm="/usr/bin/totem --gapplication-service")
May 18 16:20:02 arash-arch dbus-daemon[425]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service' requested by ':1.154' (uid=1000 pid=18649 comm="/usr/bin/totem --gapplication-service")
May 18 16:20:02 arash-arch dbus-daemon[425]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service' requested by ':1.155' (uid=1000 pid=18649 comm="/usr/bin/totem --gapplication-service")
May 18 16:20:02 arash-arch dbus-daemon[1003]: [session uid=1000 pid=1003] Activating service name='com.intel.dleyna-server' requested by ':1.352' (uid=1000 pid=18649 comm="/usr/bin/totem --gapplication-service")
```

- log of running `totem` from terminal:
```
(totem:20086): GStreamer-CRITICAL **: 16:23:47.526: gst_buffer_get_meta: assertion 'buffer != NULL' failed
(totem:20086): GStreamer-CRITICAL **: 16:23:47.542: gst_buffer_get_meta: assertion 'buffer != NULL' failed
```

- log of running `totem --gst-debug-level=4`: Attached
Comment by Seyyed Arash Hosseini (arash12ir) - Thursday, 18 May 2023, 13:59 GMT
I opened an issue in gitlab of Totem.
https://gitlab.gnome.org/GNOME/totem/-/issues/585
Comment by Balló György (City-busz) - Thursday, 08 June 2023, 19:46 GMT
This is an upstream issue definitely, so which affects specific drivers we cannot do anything. What you can try:
1. Ensure that gstreamer-vaapi is not installed, as it's really buggy.
2. Run totem with LIBGL_ALWAYS_SOFTWARE=1 to not use software implementation.
3. You could try to run totem with GDK_GL=gles, but the colors are messed up now due to a bug.

So I'm closing this task as we can't fix these upstream bugs.

Loading...