gnome-shell crashed with SIGABRT in g_assertion_message("assertion failed: (window->display->focus_window != window)") from g_assertion_message_expr() from meta_window_unmanage() from handle_other_xevent()

Bug #1422253 reported by Jimmy Coyote Loco
194
This bug affects 29 people
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
gnome-shell (Ubuntu)
Fix Released
Undecided
Unassigned
mutter (Ubuntu)
Fix Released
High
Marco Trevisan (Treviño)
Bionic
Fix Released
High
Marco Trevisan (Treviño)

Bug Description

https://errors.ubuntu.com/problem/868da6d40640c1199f496b7af7e37e54871ed8d7
https://errors.ubuntu.com/problem/9b0e145ca11443bc44b35a2050317dd51f5ab5c5

Upstream issue: https://gitlab.gnome.org/GNOME/mutter/issues/15

New issue (same stacktrace) is https://gitlab.gnome.org/GNOME/mutter/issues/308

[ Description ]

Was running 3 programs at time of crash, PROGRAM 1. Nautilus with no tabs open, PROGRAM 2. Firefox v.34.0 with 3 tabs open (1. https://twitter.com/ - 2. http://www.scons.org/wiki/FrequentlyAskedQuestions#What_is_SCons.3F - PROGRAM 3. http://scons.org/download.php) Synaptic Package Manager ver 0.81.3 installing Scons & Scons-doc - crash happened while synaptic was in process of installing programs (downloads were complete & actual install was in progress)

[ Test case ]

1. Run one of the reproducer test (python or gjs version) available at:
   https://gitlab.gnome.org/GNOME/mutter/issues/15
2. when that close, g-s should not crash

[ Regression potential ]

Possible break for windows that have the grab but are not the active ones.

----

ProblemType: CrashDistroRelease: Ubuntu 15.04
Package: gnome-shell 3.14.3-0ubuntu2
ProcVersionSignature: Ubuntu 3.18.0-13.14-generic 3.18.5
Uname: Linux 3.18.0-13-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CrashCounter: 1
CurrentDesktop: GNOME
Date: Mon Feb 16 01:20:05 2015
DisplayManager: gdm
ExecutablePath: /usr/bin/gnome-shell
GsettingsChanges:
 b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'"
 b'org.gnome.desktop.interface' b'clock-format' b"'12h'"
 b'org.gnome.desktop.interface' b'clock-show-date' b'true'
InstallationDate: Installed on 2015-01-26 (21 days ago)
InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Alpha amd64 (20150120.1)
ProcCmdline: /usr/bin/gnome-shell
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bashSignal: 6SourcePackage: gnome-shell
StacktraceTop:
 g_assertion_message () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 g_assertion_message_expr () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 meta_window_unmanage () from /usr/lib/libmutter.so.0
 ?? () from /usr/lib/libmutter.so.0
 ?? () from /usr/lib/libmutter.so.0
Title: gnome-shell crashed with SIGABRT in g_assertion_message()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Jimmy Coyote Loco (jimmycoyoteloco-o) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 g_assertion_message (domain=domain@entry=0x7f312a4e91a0 "mutter", file=file@entry=0x7f312a4eb882 "core/window.c", line=line@entry=1323, func=func@entry=0x7f312a4ed940 <__FUNCTION__.78638> "meta_window_unmanage", message=message@entry=0x62853c0 "assertion failed: (window->display->focus_window != window)") at /build/buildd/glib2.0-2.43.3/./glib/gtestutils.c:2356
 g_assertion_message_expr (domain=domain@entry=0x7f312a4e91a0 "mutter", file=file@entry=0x7f312a4eb882 "core/window.c", line=line@entry=1323, func=func@entry=0x7f312a4ed940 <__FUNCTION__.78638> "meta_window_unmanage", expr=expr@entry=0x7f312a4ec8e8 "window->display->focus_window != window") at /build/buildd/glib2.0-2.43.3/./glib/gtestutils.c:2371
 meta_window_unmanage (window=0x5a47a70, timestamp=43937965) at core/window.c:1323
 handle_other_xevent (display=0x2931800, event=0x29e70ad) at x11/events.c:1306
 meta_display_handle_xevent (event=0x7fff85985030, display=0x2931800) at x11/events.c:1733

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gnome-shell (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: gnome-shell crashed with SIGABRT in g_assertion_message()

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

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

Thank you for reporting this bug to Ubuntu.
Ubuntu 15.04 (vivid) reached end-of-life on February 4, 2016.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-shell (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-shell (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
summary: - gnome-shell crashed with SIGABRT in g_assertion_message()
+ gnome-shell crashed with SIGABRT in g_assertion_message("assertion
+ failed: (window->display->focus_window != window)") from
+ g_assertion_message_expr() from meta_window_unmanage() from
+ handle_other_xevent()
Changed in gnome-shell (Ubuntu):
status: Expired → Confirmed
description: updated
tags: added: artful bionic xenial
information type: Private → Public
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

I've a proposed fix at https://gitlab.gnome.org/3v1n0/mutter/commit/993a40c9a4e161e40faa0467f98eadd1ac50dd22

I'm discussing with upstream about it.

Changed in gnome-shell (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in gnome-shell (Ubuntu):
status: Confirmed → In Progress
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Currently we have 5833 reports of this crash in 18.04. But only 2 in 18.10.

Changed in gnome-shell (Ubuntu):
importance: Medium → High
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

The fix for this is included in mutter 3.29.90-1

affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
Changed in mutter (Ubuntu):
status: In Progress → Fix Committed
Changed in mutter (Ubuntu Bionic):
status: New → Confirmed
Changed in gnome-shell (Ubuntu):
status: New → Fix Released
no longer affects: gnome-shell (Ubuntu Bionic)
Changed in mutter (Ubuntu Bionic):
status: Confirmed → In Progress
importance: Undecided → High
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.29.90-1

---------------
mutter (3.29.90-1) experimental; urgency=medium

  * Team upload
  * New upstream release
    - Don't try to use an invalid monitor mode to figure out scaling
      (LP: #1723615)
  * d/p/window-wayland-Always-update-monitor-for-non-user-ops.patch,
    d/p/native-gpu-Handle-drmModeSetCrtc-failing-gracefully.patch,
    d/p/wayland-Nullify-monitor-resources-when-updating-outputs.patch,
    d/p/monitor-manager-Filter-out-low-screen-resolutions.patch,
    d/p/window-Don-t-refuse-to-move-focus-to-the-grab-window.patch,
    d/p/window-Explicitly-exclude-unmanaging-window-from-focus-ag.patch:
    Drop patches that were applied upstream
  * d/libmutter-3-0.symbols: Update
    - Ignore ABI change in experimental: removal of
      meta_prefs_override_preference_schema()
    - Add Breaks on previous experimental gnome-shell

 -- Simon McVittie <email address hidden> Wed, 01 Aug 2018 09:03:19 +0100

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Jimmy, or anyone else affected,

Accepted mutter into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/3.28.3-2~ubuntu18.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in mutter (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.28.3-2~ubuntu18.04.1

---------------
mutter (3.28.3-2~ubuntu18.04.1) bionic; urgency=medium

  * No-change backport from unstable to bionic

mutter (3.28.3-2) unstable; urgency=medium

  * Team upload

  [ Iain Lane ]
  * debian/gbp.conf: Set the upstream branch to upstream/3.28.x, since we've
    branched for experimental now.

  [ Marco Trevisan (Treviño) ]
  * d/p/native-gpu-Handle-drmModeSetCrtc-failing-gracefully.patch:
    - Avoid crashing when warning about wrongly set crtc mode
      (LP: #1754949)
  * d/p/gpu-kms-Don-t-crash-if-drmModeGetResources-returns-N.patch:
    - Don't crash if drmModeGetResources returns NULL (LP: #1767956)
  * d/p/window-wayland-Always-update-monitor-for-non-user-ops.patch:
    - Always update monitor in wayland, avoiding crash (LP: #1784398)
  * d/p/monitor-manager-Filter-out-low-screen-resolutions.patch:
    - Don't return screen resolutions that can't be applied (LP: #1772831)
  * d/p/window-Don-t-refuse-to-move-focus-to-the-grab-window.patch,
    d/p/window-Explicitly-exclude-unmanaging-window-from-focus-ag.patch:
    - Don't crash if a modal dialog closes while being dragged
      (LP: #1422253)
  * d/p/monitor-Use-current-monitor-mode-to-check-whether-active.patch:
    - Don't try to use an invalid monitor mode to figure out scaling
      (LP: #1723615)

  [ Simon McVittie ]
  * Sort patch series in upstream order, with patches applied upstream
    first
  * d/copyright: Remove obsolete FSF postal addresses
  * Standards-Version: 4.1.5 (no changes required)
  * Set Rules-Requires-Root to no
  * Update symbols file

mutter (3.28.3-1~ubuntu18.04.1) bionic; urgency=medium

  * No-change backport to bionic (LP: #1783311)

mutter (3.28.3-1) unstable; urgency=medium

  * New upstream release
  * d/p/backends-Add-logical-monitor-monitor-output-crtc-ref-chai.patch,
    d/p/backends-Move-MetaOutput-crtc-field-into-private-struct.patch,
    d/p/clutter-device-evdev-Get-devices-from-main-seat-if-no-rea.patch,
    d/p/clutter-evdev-Don-t-ignore-CAPS-lock-as-modifier.patch,
    d/p/clutter-evdev-ignore-injected-events-from-IM.patch,
    d/p/clutter-seat-evdev-Add-function-to-get-device-by-id.patch,
    d/p/device-manager-evdev-Add-main-seat-to-seats-by-default.patch,
    d/p/device-manager-evdev-Free-the-main-seat-on-finalize.patch,
    d/p/device-manager-evdev-Set-and-unset-the-stage-for-the-main.patch,
    d/p/frames-Allow-for-unknown-mouse-buttons.patch,
    d/p/frames-Handle-touch-events.patch,
    d/p/frames-Make-1st-button-motion-handlers-take-generic-event.patch,
    d/p/renderer-native-Don-t-crash-if-the-FB-surface-can-t-be-lo.patch,
    d/p/wayland-Compare-geometries-after-chaining-up.patch,
    d/p/wayland-Don-t-reset-input-focus-on-text-commit.patch,
    d/p/wayland-Use-cursor-position-in-logical-monitor.patch,
    d/p/wayland-update-enter-leave-output-after-effects.patch,
    d/p/window-actor-add-new-signal-effects-completed.patch:
    Remove patches already applied on 3.28 branch

 -- Marco Trevisan (Treviño) <email address hidden> Fri, 03 Aug 2018 05:20:10 +0100

Changed in mutter (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Now reported in cosmic (bug 1791574)

description: updated
Changed in mutter (Ubuntu):
status: Fix Released → In Progress
Changed in mutter (Ubuntu Bionic):
status: Fix Released → Triaged
Changed in mutter:
status: Unknown → New
Changed in gnome-shell (Ubuntu):
status: Fix Released → In Progress
Changed in mutter:
status: New → Fix Released
Changed in mutter (Ubuntu):
status: In Progress → Fix Released
Changed in gnome-shell (Ubuntu):
status: In Progress → Fix Released
Changed in mutter (Ubuntu Bionic):
status: Triaged → Fix Released
tags: removed: verification-needed verification-needed-bionic
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.