meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

Bug #1871262 reported by Seija K.
114
This bug affects 21 people
Affects Status Importance Assigned to Milestone
Mutter
New
Unknown
mutter (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

GNOME Shell-Message: 20:18:17.677: Telepathy is not available, chat integration will be disabled.
Gjs-Message: 20:18:18.189: JS WARNING: [/<email address hidden>/appIcons.js 1028]: unreachable code after return statement
Ubuntu AppIndicators-Message: 20:18:19.456: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.79/org/ayatana/NotificationItem/software_update_available
Ubuntu AppIndicators-Message: 20:18:19.461: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.79/org/ayatana/NotificationItem/livepatch
GNOME Shell-Message: 20:18:19.742: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation

(gnome-shell:21601): mutter-CRITICAL **: 20:18:45.274: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

Was the error I got after restarting Gnome after it froze when I closed Visual Studio Code but the right-click menu appeared for it after Ubuntu froze for a second because I had regions enabled on my touchpad.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-shell 3.28.4-0ubuntu18.04.3
ProcVersionSignature: Ubuntu 5.3.0-46.38~18.04.1-generic 5.3.18
Uname: Linux 5.3.0-46-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
Date: Mon Apr 6 20:16:51 2020
DisplayManager: gdm3
GsettingsChanges:
 b'org.gnome.shell' b'app-picker-view' b'uint32 1'
 b'org.gnome.shell' b'favorite-apps' redacted by apport
 b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'"
 b'org.gnome.desktop.interface' b'clock-format' b"'12h'"
InstallationDate: Installed on 2020-04-04 (2 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
DisplayManager: gdm3
DistroRelease: Ubuntu 18.04
GsettingsChanges:
 b'org.gnome.shell' b'app-picker-view' b'uint32 1'
 b'org.gnome.shell' b'favorite-apps' redacted by apport
 b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'"
 b'org.gnome.desktop.interface' b'clock-format' b"'12h'"
InstallationDate: Installed on 2020-04-04 (5 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
Package: gnome-shell 3.28.4-0ubuntu18.04.3
PackageArchitecture: amd64
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 5.3.0-46.38~18.04.1-generic 5.3.18
Tags: bionic
Uname: Linux 5.3.0-46-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True

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

Can you please clarify what this means?

> Menu for a closed window appeared pointing to the menu bar

Maybe with a screenshot?

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Seija K. (rose128) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Seija K. (rose128) wrote : ProcCpuinfoMinimal.txt

apport information

summary: - Gnome becomes entirely unresponsive after a Menu for a closed window
- appeared pointing to the menu bar
+ gnome-shell crashes in meta_window_set_stack_position_no_sync: assertion
+ 'window->stack_position >= 0' failed
affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
Changed in mutter (Ubuntu):
status: Incomplete → Confirmed
tags: added: eoan
tags: removed: eoan
tags: added: groovy
Changed in gnome-shell (Ubuntu):
status: New → Confirmed
summary: - gnome-shell crashes in meta_window_set_stack_position_no_sync: assertion
- 'window->stack_position >= 0' failed
+ gnome-shell freezes with meta_window_set_stack_position_no_sync:
+ assertion 'window->stack_position >= 0' failed
Revision history for this message
Robert (ra669180) wrote : Re: gnome-shell freezes with meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

Having the exact problem. Whenever I press the Super button it gets stuck and I am forced to restart making it difficult to use.

CPU: Intel Core i5-10400
GPU: Nvidia GTX 1650
OS: 21.04

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

Robert, that problem with 21.04 is bug 1922353.

tags: removed: groovy
summary: - gnome-shell freezes with meta_window_set_stack_position_no_sync:
+ gnome-shell freezes/crashes with meta_window_set_stack_position_no_sync:
assertion 'window->stack_position >= 0' failed
tags: added: impish
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: gnome-shell freezes/crashes with meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

It appears in meta_window_set_stack_position_no_sync that:

  g_return_if_fail (window->stack_position >= 0);

is non-fatal and has been that way for almost 10 years.

This means whatever freezes or crashes you are experiencing are happening somewhere else. Everyone please follow the instructions in https://wiki.ubuntu.com/Bugs/Responses#Missing_a_crash_report_or_having_a_.crash_attachment and open new bugs with your findings.

Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Changed in mutter (Ubuntu):
status: Confirmed → Incomplete
tags: removed: impish
summary: - gnome-shell freezes/crashes with meta_window_set_stack_position_no_sync:
- assertion 'window->stack_position >= 0' failed
+ meta_window_set_stack_position_no_sync: assertion
+ 'window->stack_position >= 0' failed
no longer affects: gnome-shell (Ubuntu)
Changed in mutter (Ubuntu):
status: Incomplete → Confirmed
Changed in mutter:
status: Unknown → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.

Ubuntu 18.04 (bionic) reached end-of-standard-support on May 31, 2023.

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 anymore. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in.

Changed in mutter (Ubuntu):
status: Confirmed → Won't Fix
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.