gnome-shell spams journal with `g_closure_add_invalidate_notifier: assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed` when 'Zoom' a11y feature enabled

Bug #2030947 reported by Julian Andres Klode
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Shell
New
Unknown
gjs (Ubuntu)
New
Undecided
Unassigned

Bug Description

gnome-shell logs

gnome-shell[4537]: g_closure_add_invalidate_notifier: assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed

multiple times per second for weeks now.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: gnome-shell 44.3-1ubuntu1
ProcVersionSignature: Ubuntu 6.3.0-7.7-generic 6.3.5
Uname: Linux 6.3.0-7-generic x86_64
ApportVersion: 2.27.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: GNOME
Date: Thu Aug 10 10:38:23 2023
DisplayManager: gdm3
InstallationDate: Installed on 2022-11-26 (256 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20221126)
RelatedPackageVersions: mutter-common 44.3-1ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Julian Andres Klode (juliank) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report. This looks like a leak. Since I can't find any other reports of this in Ubuntu or upstream yet, please try disabling all extensions and then log in again.

tags: added: gnome-shell-leak logspam
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Julian Andres Klode (juliank) wrote :

The only extension enabled is Ubuntu App Indicators, fwiw.

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

Oh right, sorry. Your gsettings are just showing older ones still:

b'org.gnome.shell' b'enabled-extensions' b"['<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>']"

But I can see the log only mentions default Ubuntu extensions.

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

I can't find g_closure_add_invalidate_notifier used in any extensions, or gnome-shell, or mutter :(

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

gjs looks like the only user of g_closure_add_invalidate_notifier in gnome-shell. Aside from glib itself.

affects: gnome-shell (Ubuntu) → gjs (Ubuntu)
Revision history for this message
Julian Andres Klode (juliank) wrote :

Also Ubuntu AppIndicators wasn't at fault anyway, I used the "disable extensions" toggle and it still happens.

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

Disabling is voluntary so buggy extensions might still do bad things when disabled.

Revision history for this message
Julian Andres Klode (juliank) wrote :

OK so this turns out to be an issue of the 'Zoom' accessibility feature being enabled (but not actively zooming).

summary: gnome-shell spams journal with `g_closure_add_invalidate_notifier:
assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed`
+ when 'Zoom' a11y feature enabled
Revision history for this message
Kir Kolyshkin (kolyshkin) wrote :

I am having the very same issue for quite some time, and can confirm that disabling Zoom (via Settings -> Accessibility -> Zoom, then uncheck "Desktop Zoom") fixes it. Too bad now I have exactly 1040682 log lines (after removing most of logs) on my SSD. For the reference, here's the first and the last one:

Aug 15 13:46:50 kir-rhat gnome-shell[2571]: g_closure_add_invalidate_notifier: assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed
....
Nov 03 15:25:44 kir-rhat gnome-shell[2616]: g_closure_add_invalidate_notifier: assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed

Version info:
$ rpm -q gnome-shell
gnome-shell-44.5-1.fc38.x86_64

Revision history for this message
Julian Andres Klode (juliank) wrote :

Kir, this is the Ubuntu bug tracker, not the Fedora one.

Revision history for this message
Kir Kolyshkin (kolyshkin) wrote :

Julian, you are right, but apparently this is a bug in Gnome shell, which manifests itself equally in Ubuntu and Fedora.

I have just reported it upstream: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7189

Changed in gnome-shell:
status: Unknown → New
Revision history for this message
corrado venturini (corradoventu) wrote :

Same on Ubuntu 24.04
corrado@corrado-n9-nn-1210:~$ apt policy gnome-shell
gnome-shell:
  Installed: 45.2-1ubuntu1
  Candidate: 45.2-1ubuntu1
  Version table:
 *** 45.2-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status
corrado@corrado-n9-nn-1210:~$

Jan 09 18:38:02 corrado-n9-nn-1210 gnome-shell[2134]: g_closure_add_invalidate_notifier: assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed
Jan 09 18:38:02 corrado-n9-nn-1210 gnome-shell[2134]: g_closure_add_invalidate_notifier: assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed
Jan 09 18:38:02 corrado-n9-nn-1210 gnome-shell[2134]: g_closure_add_invalidate_notifier: assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed

tags: added: noble
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.