Totem crashes on launch | GStreamer-GL-CRITICAL **: Failed to flush Wayland connection | Gdk-Message: Error flushing display: Protocol error

Bug #1966787 reported by Robin Sheat
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
NVIDIA / egl-wayland
Unknown
Unknown
egl-wayland (Ubuntu)
Confirmed
Undecided
Unassigned
gtk+3.0 (Ubuntu)
Confirmed
Undecided
Unassigned
totem (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If I launch totem, it crashes pretty much immediately. I resolved this by deleting .config/totem. I had moved some video files that had been previously opened within it recently, so possibly it was trying to reference them (for thumbnails or whatever) and that broke it.

robin@malik:~$ totem

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.832: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

(totem:5573): GStreamer-GL-CRITICAL **: 18:00:17.833: Failed to flush Wayland connection

Gdk-Message: 18:00:17.844: Error flushing display: Protocol error
robin@malik:~$

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: totem 42.0-1ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Mar 28 18:00:39 2022
InstallationDate: Installed on 2022-03-23 (5 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220313)
SourcePackage: totem
UpgradeStatus: No upgrade log present (probably fresh install)
XorgLog: Error: [Errno 2] No such file or directory: '/var/log/Xorg.0.log'

Revision history for this message
Robin Sheat (eythian) wrote :
Revision history for this message
Robin Sheat (eythian) wrote :

Update: my resolution didn't resolve it. If I attempt to play a file, it crashes with the same message as above.

summary: - Totem crashes on launch
+ Totem crashes on launch or when attempting to play video with a Wayland
+ flush error
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Totem crashes on launch or when attempting to play video with a Wayland flush error

> Update: my resolution didn't resolve it. If I attempt to play a file, it crashes with the same message as above.

Please:

1. Tell us which message you now mean; and

2. Follow these instructions: https://wiki.ubuntu.com/Bugs/Responses#Missing_a_crash_report_or_having_a_.crash_attachment

Changed in totem (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Robin Sheat (eythian) wrote :

> 1. Tell us which message you now mean; and

robin@malik:~/Videos$ totem Outrageous\ Fortune\ S04E08.m4v
Gdk-Message: 11:02:22.100: Error flushing display: Protocol error
robin@malik:~/Videos$

This result appears pretty much immediately, and no desktop window opens.

> 2. Follow these instructions: https://wiki.ubuntu.com/Bugs/Responses#Missing_a_crash_report_or_having_a_.crash_attachment

No crash dump is produced as this isn't a SIGSEV or similar style crash, more a failing to work so shutting down abort.

> Maybe related?

This looks to me more like a screencast bug rather than a playback bug.

Maybe relevant, I do get slightly different results sometimes. I just tried it again:

robin@malik:~/Videos$ totem Outrageous\ Fortune\ S04E08.m4v

(totem:3576): GStreamer-GL-CRITICAL **: 11:09:08.153: Failed to flush Wayland connection

Gdk-Message: 11:09:08.153: Error flushing display: Protocol error

(totem:3576): GStreamer-GL-CRITICAL **: 11:09:08.153: Failed to flush Wayland connection

robin@malik:~/Videos$

i.e sometimes the "Failed to flush" message appears, sometimes it doesn't.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I meant that mutter commit 690b8806d sounds like it might fix some Wayland protocol errors seen in apps recently. Maybe, maybe not.

summary: - Totem crashes on launch or when attempting to play video with a Wayland
- flush error
+ Totem crashes on launch | GStreamer-GL-CRITICAL **: Failed to flush
+ Wayland connection | Gdk-Message: Error flushing display: Protocol error
Changed in totem (Ubuntu):
status: Incomplete → New
tags: added: nvidia
Revision history for this message
Robin Sheat (eythian) wrote :

After a recent update followed by a reboot, totem works again. Some mutter related updates were there, so you might well have been right about that.

Revision history for this message
Robin Sheat (eythian) wrote :

Oh wait, I'm being hit with Bug #1968929 where I now don't get wayland at all and so fell back to Xorg.

Revision history for this message
Robin Sheat (eythian) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in totem (Ubuntu):
status: New → Confirmed
Revision history for this message
Jaromir Obr (jaromir-obr) wrote :

Just had the same issue with Totem 42.0 in Ubuntu 22.04. Removing of ".config/totem" helped me.

Revision history for this message
zubozrout (zubozrout) wrote :

Behaves the same with the same error message for me on Wayland. Removing ".config/totem" doesn't seem to make any difference. But switching back to Xorg does solve it for me.

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

Bug 1965563 (Protocol error) might be related somehow. Seems both use GTK 3.

Changed in gtk+3.0 (Ubuntu):
status: New → Confirmed
tags: added: protocol-error
Changed in egl-wayland (Ubuntu):
status: New → Confirmed
tags: added: nvidia-wayland
Revision history for this message
jsc (jens-s-l) wrote (last edit ):

I have the same issue on an nvidia GeForce GTX 960M Hardware with the same error output:

(totem:21578): GLib-GObject-CRITICAL **: 21:52:48.831: g_param_values_cmp: assertion 'G_IS_VALUE (value1)' failed

Gdk-Message: 22:01:34.548: Error flushing display: Protokollfehler

After removing `~/.config/totem/` and `~/.cache/totem/` totem could be started but crashes if I try to start a video or sound file.
Starting via sudo seams to fix this, videos could be played, but w/o sound.

BTW: gst-play-1.0 <video-file> works w/o problems.

Revision history for this message
Robin Sheat (eythian) wrote :

Totem works in 22.10

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes the fix is in egl-wayland 1.1.10 - https://launchpad.net/ubuntu/+source/egl-wayland

Revision history for this message
Nikolay Khodyunya (nkhodyunya2) wrote :

I just removed libnvidia-egl-wayland1 and totem now works fine on ubuntu jammy 22.04.3

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I suspect you've just disabled hardware acceleration by doing that. It would be a better idea to log into a Xorg session instead.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.