Bug 1334226

Summary: [Wayland] gnome-shell sometimes crashes, killing all GUI applications and their process trees
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: gnome-shellAssignee: Owen Taylor <otaylor>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 36CC: alexey.brodkin, anton.kochkov, azelinka, fmuellner, jan.public, javier.alejandro.castro, ndegraef, ofourdan, otaylor, spetreolle, wcohen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-28 18:22:20 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:    
Bug Blocks: 1277927    

Description Christian Stadelmann 2016-05-09 08:33:39 UTC
Description of problem:
In a gnome+wayland session, every time gnome-shell or the X server crashes, the session will be killed and as a result all GUI applications including their process trees. Due to the high number of crasher bugs in gnome-shell [1] and xorg-x11-server [2], this happens quite often leading to bad user experience.

Note that on every time a GUI application or one of its child processes is killed, there is a high risk of data loss. Because of that, Gnome@Wayland is not yet ready for production. In my opinion, this is the only major blocker on intel-based systems to ship wayland as default. On such systems, I see gnome-shell crash multiple times per day which is nothing we could accept to ship.

I don't know whether this issue should be resolved by

a) making gnome-shell more solid itself, maybe splitting it up into child processes. Does the javascript part need to run in the compositor? Can't XWayland be restarted in case it crashed?

b) making gnome-shell able to get restarted without killing all GUI applications. This would get gnome-shell@Wayland en par with gnome-shell@X11.

Version-Release number of selected component (if applicable):
gnome-shell-3.20.1-1.fc24.x86_64
gtk3-3.20.3-1.fc24.x86_64
glib2-2.48.0-1.fc24.x86_64
mutter-3.20.1-1.fc24.x86_64
clutter-1.26.0-1.fc24.x86_64
gnome-session-3.20.1-1.fc24.x86_64
xorg-x11-server-Xwayland-1.18.3-2.fc24.x86_64

How reproducible:
very often, on every crash. See bugs in gnome-shell and Xwayland for ways to reproduce.

Actual results:
Gnome-shell crashes very often, killing all GUI applications. This will lead to users being frustrated because their work is gone.

Expected results:
Less crashes. No killing of user GUI applications. No data loss.

Additional info:
[1] see https://apps.fedoraproject.org/packages/gnome-shell/bugs and https://bugzilla.gnome.org/page.cgi?id=browse.html&product=gnome-shell
[2] see https://apps.fedoraproject.org/packages/xorg-x11-server/bugs

Comment 1 Christian Stadelmann 2016-05-09 08:36:28 UTC
See bug #1332055 for an example when gnome-shell crashes on circa each second screen lock.

Comment 2 Olivier Fourdan 2016-09-01 07:49:54 UTC
"gnome-shell crashes way too often" is a bit vague as a bug.

Comment 3 Fedora End Of Life 2017-07-25 20:42:14 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Javier Alejandro Castro 2017-07-28 18:42:24 UTC
I'm having there same simptoms, but now i'm on Xorg (not wayland). 

Now the gnome-shell crashes, but the session is still open and just gnome-shell is restarted, as Christian proposses.

Also, on my case, this thing begun bothering me after migrating to F26: i didnt have any of this crashes on F25.

Comment 5 Fedora End Of Life 2018-05-03 08:17:48 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 6 Ben Cotton 2019-05-02 21:43:31 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Christian Stadelmann 2019-05-04 23:09:24 UTC
This core wayland/gnome-shell architecture issue is still present.

Comment 8 Ben Cotton 2020-04-30 22:06:21 UTC
This message is a reminder that Fedora 30 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '30'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 30 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Christian Stadelmann 2020-05-01 17:19:45 UTC
(In reply to Christian Stadelmann from comment #7)
> This core wayland/gnome-shell architecture issue is still present.

+1

Comment 10 Fedora Program Management 2021-04-29 16:49:58 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 11 Christian Stadelmann 2021-05-13 13:07:08 UTC
I still see this issue regularly, i.e. every few weeks on a freshly installed Fedora 33 machine in GNOME/wayland sessions.

Example: bug #1949157

Comment 12 Anton Kochkov 2021-10-26 05:13:51 UTC
It happens not only on the Gnome Shell, it happens quite often with KDE as well.

Currently, I use Fedora 35.
I use Intellij IDEA and Firefox, and both, are killed because of these crashes - both use XWayland.

Comment 13 Christian Stadelmann 2021-10-26 17:22:52 UTC
@Anton Kochkov: Please note that this is a bug report against gnome-shell which has made architectural decisions to make this issue happen. KDE has a different software stack and can (or could) decide differently. If you want the behavior/architecture of KDE to change, you should try finding a similar bug against the respective KDE component or create it yourself.

Comment 14 Ben Cotton 2021-11-04 13:38:39 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 15 Ben Cotton 2021-11-04 14:08:15 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 16 Ben Cotton 2021-11-04 15:05:13 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 17 Christian Stadelmann 2021-11-04 18:19:19 UTC
Still present on Fedora 35, though not as often as before.

Comment 18 Ben Cotton 2022-02-08 21:09:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 19 Niels De Graef 2022-08-18 10:05:27 UTC
I think we can close this as a duplicate of bug 1367666, as that is a tracker bug which basically talks about the same thing?

Comment 20 Christian Stadelmann 2022-08-28 18:22:20 UTC
(In reply to Niels De Graef from comment #19)
> I think we can close this as a duplicate of bug 1367666, as that is a
> tracker bug which basically talks about the same thing?

I'm unsure whether it is an exact duplicate but this downstream bug report is probably not the right place to track such open points fundamental to the architecture of gnome-shell.

Bug 1367666 has the following upstream bug report linked, where discussions should continue (as far as I understand): https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5634

*** This bug has been marked as a duplicate of bug 1367666 ***