Bug 1999120

Summary: Gnome file manager crashes Xwayland/Desktop on drag/drop of files
Product: Red Hat Enterprise Linux 8 Reporter: Peter Kopec <pekopec>
Component: mutterAssignee: Jonas Ådahl <jadahl>
Status: CLOSED ERRATA QA Contact: Peter Kopec <pekopec>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: bstinson, carl, fmuellner, fweimer, jadahl, jwboyer, lmiksik, mmraka, pekopec, tpelka, tuxbenutzer
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: mutter-3.32.2-60.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1998759
: 2000905 (view as bug list) Environment:
Last Closed: 2021-11-09 19:34:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1998759    
Bug Blocks: 2000905    
Attachments:
Description Flags
mutter-3.32.2-60.el8.x86_64.rpm none

Description Peter Kopec 2021-08-30 13:06:02 UTC
+++ This bug was initially created as a clone of Bug #1998759 +++

Description of problem:
After an update of my CentOS 8 Stream Desktop home PC, now I face the following:

Using the gnome file manager ("Files", "Nautilus"), marking a file and starting to drag, the entire desktop crashes, I am back on a terminal login screen, and changing to other login screens fails.

After a downgrade  to 
mutter.x86_64                                     3.32.2-58.el8  

drag an drop work as before fine and nice.


Version-Release number of selected component (if applicable):
mutter.x86_64                                     3.32.2-59.el8
causes the crash.

How reproducible:
Stably reproducible. Mark a file and start dragging.


Steps to Reproduce:
1. Up to date CentOS 8 Stream.
2. Open "Files" (Nautilus, Gnome File manager)
3. Mark a file and start to drag with the primary mouse button hold down.

Actual results:
Desktop crashes


Expected results:
Drag and Drop

Additional info:
From /var/log/messages:


Aug 28 17:51:34 betux dbus-daemon[2786]: [session uid=1001 pid=2786] Successfully activated service 'org.gnome.ControlCenter.SearchProvider'
Aug 28 17:51:34 betux dbus-daemon[2786]: [session uid=1001 pid=2786] Successfully activated service 'org.gnome.Nautilus'
Aug 28 17:51:34 betux gnome-terminal-server[4351]: Display does not support owner-change; copy/paste will be broken!
Aug 28 17:51:34 betux dbus-daemon[2786]: [session uid=1001 pid=2786] Successfully activated service 'org.gnome.Terminal'
Aug 28 17:51:34 betux systemd[2746]: Started GNOME Terminal Server.
Aug 28 17:51:35 betux dbus-daemon[1191]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.597' (uid=1001 pid=4346 comm="/usr/bin/nautilus --gapplication-service " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Aug 28 17:51:35 betux systemd[1]: Starting Hostname Service...
Aug 28 17:51:35 betux dbus-daemon[1191]: [system] Successfully activated service 'org.freedesktop.hostname1'
Aug 28 17:51:35 betux systemd[1]: Started Hostname Service.
Aug 28 17:51:38 betux org.gnome.Shell.desktop[2875]: **
Aug 28 17:51:38 betux org.gnome.Shell.desktop[2875]: mutter:ERROR:../src/wayland/meta-wayland-surface.c:791:meta_wayland_surface_apply_pending_state: assertion failed: (wl_list_empty (&pending->frame_callback_list))
Aug 28 17:51:38 betux org.gnome.Shell.desktop[2875]: == Stack trace for context 0x5564e72aa220 ==
Aug 28 17:51:38 betux systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Aug 28 17:51:38 betux systemd[1]: Started Process Core Dump (PID 4403/UID 0).
Aug 28 17:51:38 betux systemd-coredump[4404]: Resource limits disable core dumping for process 2875 (gnome-shell).
Aug 28 17:51:38 betux systemd-coredump[4404]: Process 2875 (gnome-shell) of user 1001 dumped core.
Aug 28 17:51:38 betux gnome-session[2795]: gnome-session-binary[2795]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 6
Aug 28 17:51:38 betux journal[3330]: Error reading events from display: Broken pipe
Aug 28 17:51:38 betux gnome-session-binary[2795]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 6
Aug 28 17:51:38 betux org.gnome.Shell.desktop[2875]: (EE) failed to read Wayland events: Broken pipe
Aug 28 17:51:38 betux journal[4346]: Error reading events from display: Broken pipe

Comment 1 Jonas Ådahl 2021-08-30 16:20:42 UTC
Needed https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/537 too.

Comment 6 Peter Kopec 2021-08-31 11:53:35 UTC
With provided scratch build drag and drop works without any issues, drag and drop when in scaled mode works normaly as expected also. No other issue was found during testing. 
Tested with AMD, nouveau driver and nouveau software rendering.

Comment 7 tuxbenutzer 2021-08-31 15:24:28 UTC
Thanks for going after this! ... sigh ... sad you could not reproduce.

I just upgraded mutter to the latest version, produced two straight crashes, and after downgrading again, can again drag and drop files with nautilus.

I'd welcome ideas how to go about it. I have some background in C-code development for numerical codes (CFD), but not operating systems or desktop software. I'm simply lost at the plethora of dependencies and how this works at all with my state of knowledge.

Comment 8 Jonas Ådahl 2021-08-31 15:37:38 UTC
Created attachment 1819457 [details]
mutter-3.32.2-60.el8.x86_64.rpm

(In reply to tuxbenutzer from comment #7)
> Thanks for going after this! ... sigh ... sad you could not reproduce.

I could reproduce with with the -59 version. What Peter just tried was a scratch build with the above linked merge request included. I'll attach the x86_64 mutter package here for you to try as well would you want to.

Comment 9 tuxbenutzer 2021-08-31 15:46:23 UTC
Installed mutter-3.32.2-60.el8.x86_64.rpm, logged out and logged in again to restart the desktop and drag and drop works fine for me!

Many thanks indeed!

Comment 13 Peter Kopec 2021-09-03 08:06:01 UTC
Based on testing from #c6 and #c9 moving to verified verified

Comment 14 Jiri Koten 2021-10-14 11:17:24 UTC
*** Bug 2013245 has been marked as a duplicate of this bug. ***

Comment 16 errata-xmlrpc 2021-11-09 19:34:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: GNOME security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4381