Xwayland crashes with wl_display@1: error 1: invalid arguments for wl_shm@6.create_pool

Bug #1964274 reported by Saroumane
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Undecided
Unassigned
wayland (Ubuntu)
Fix Released
Undecided
Unassigned
xwayland (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

System :
Ubuntu 21.10
Kernel 5.13.0-35
Session : Wayland

Each time I try to rip a CD with "abcde" gnome-shell crashes
What I understand from the logs :
Before the CD is ripped, abcde downloads a picture (from internet) as a cover of the CD.
When tracker-extract discovers this picture something bad happens.
Then gnome-shell crashes.
After the crash (and re-login into Ubuntu) I can resume the ripping process as the picture has been cached by abcde, and tracker-extract does not interact again with it.
Obviously the problem is back for each new CD.

The problem appeared quite recently, probably less than 1 month ago.

Logs :
 00:13:06 host dbus-daemon[3541]: [session uid=1000 pid=3541] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.8' (uid=1000 pid=3573 comm="/usr/libexec/tracker-mi>
 00:13:06 host systemd[3523]: Starting Tracker metadata extractor...
 00:13:06 host dbus-daemon[3541]: [session uid=1000 pid=3541] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract'
 00:13:06 host systemd[3523]: Started Tracker metadata extractor.
 00:13:14 host tracker-extract-3[11545]: Not a JPEG file: starts with 0x89 0x50
 00:13:14 host tracker-extract[11545]: Task for 'file:///home/user/Downloads/abcde.a80c7f0c/cover.jpg' finished with error: Could not get any metadata for uri:'file:///home/user/Downloads/abcde.a80c7f0c/cover.jpg' and mime:'image/jpeg'
 00:13:14 host gnome-shell[3640]: WL: file descriptor expected, object (6), message create_pool(nhi)
 00:13:14 host gnome-shell[3640]: WL: error in client communication (pid 3640)
 00:13:14 host gnome-shell[4456]: (EE)
 00:13:14 host gnome-shell[4456]: Fatal server error:
 00:13:14 host gnome-shell[4456]: (EE) wl_display@1: error 1: invalid arguments for wl_shm@6.create_pool
 00:13:14 host gnome-shell[4456]: (EE)
 00:13:14 host gnome-shell[3640]: Connection to xwayland lost

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

Thank you for taking the time to report this bug and helping to make Ubuntu better. It sounds like some part of the system has crashed. To help us find the cause of the crash please follow these steps:

1. Look in /var/crash for crash files and if found run:
    ubuntu-bug YOURFILE.crash
Then tell us the ID of the newly-created bug.

2. If step 1 failed then look at https://errors.ubuntu.com/user/ID where ID is the content of file /var/lib/whoopsie/whoopsie-id on the machine. Do you find any links to recent problems on that page? If so then please send the links to us.

3. If step 2 also failed then apply the workaround from bug 994921, reboot, reproduce the crash, and retry step 1.

Please take care to avoid attaching .crash files to bugs as we are unable to process them as file attachments. It would also be a security risk for yourself.

tags: added: impish
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It looks like we're probably looking for a crash from 'Xwayland'.

tags: added: wayland-session
Changed in xwayland (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):
no longer affects: gnome-shell (Ubuntu)
summary: - gnome-shell crashes after tracker-extract-3 reports "Not a JPEG file:
- starts with 0x89 0x50"
+ Xwayland crashes with wl_display@1: error 1: invalid arguments for
+ wl_shm@6.create_pool
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like the fix is in mutter 42.beta

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2235

Changed in mutter (Ubuntu):
status: New → Fix Committed
tags: added: fixed-in-mutter-42.beta fixed-upstream
Changed in xwayland (Ubuntu):
status: Incomplete → Confirmed
status: Confirmed → Fix Released
tags: added: fixed-in-xwayland-22.1
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Saroumane (saroumane) wrote :

Thanks, quick and good catch !

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in wayland (Ubuntu):
status: New → In Progress
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

I guess mutter side can be closed, since we've already beta in archive.

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
Changed in wayland (Ubuntu):
status: In Progress → Fix Committed
tags: added: fixed-in-wayland-1.20.1
Changed in xorg-server:
status: Unknown → Fix Released
Changed in wayland (Ubuntu):
status: Fix Committed → Fix Released
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.