gnome-control-center crashes on exit when gtk-theme is not Yaru

Bug #2085610 reported by errors.ubuntu.com bug bridge
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Fix Released
Low
Alessandro Astone
Noble
Fix Committed
Low
Alessandro Astone
Oracular
Fix Committed
Low
Alessandro Astone

Bug Description

[ Impact ]

When not using gtk-theme Yaru, if you visit the Mouse panel in gnome-control-center the process will then crash on exit, in `g_static_resource_fini` with abort message:
  assertion failed: (g_atomic_int_get (&resource->ref_count) >= 2)

[ Test Case ]

1. If it was open, close the Settings app (gnome-control-center)
1. Run
   $ gsettings set org.gnome.desktop.interface gtk-theme Adwaita
2. Open the Settings app
3. Navigate to the "Mouse & Touchpad" panel
4. Close the Settings app
5. Verify that you did not get a crash prompt

To restore the default settings, run
   $ gsettings reset org.gnome.desktop.interface gtk-theme

[ Where problems could occur ]

Animations not showing or not matching the accent colors

[ Other Info ]

The Ubuntu Error Tracker has been receiving reports about a problem regarding gnome-control-center. This problem was most recently seen with package version 1:47.0.1-1ubuntu2, the problem page at https://errors.ubuntu.com/problem/4b22b5495d1b1c935fc8f0a12e9e5dca173fb406 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

CVE References

summary: - /usr/bin/gnome-control-
- center:6:g_assertion_message:g_assertion_message_expr:g_static_resource_fini:g_static_resource_fini:_sub_D_65535_1
+ gnome-control-center crashes on exit when gtk-theme is not Yaru
description: updated
Changed in gnome-control-center (Ubuntu):
status: New → In Progress
assignee: nobody → Alessandro Astone (aleasto)
Changed in gnome-control-center (Ubuntu Noble):
assignee: nobody → Alessandro Astone (aleasto)
Revision history for this message
Alessandro Astone (aleasto) wrote :

This seems to be a lot more frequent in oracular than in noble, even though it is reliably reproducible in both variants.
I wonder if that's a hint that some oracular installs are not defaulting to Yaru?

description: updated
Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
Changed in gnome-control-center (Ubuntu Noble):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.5 KiB)

This bug was fixed in the package gnome-control-center - 1:47.1.1-1ubuntu1

---------------
gnome-control-center (1:47.1.1-1ubuntu1) plucky; urgency=medium

  * Merge with debian (LP: #2085721)
  * d/p: Refresh patches
  * d/p: Use old upstream animations for non-yaru themes (LP: #2085683)
  * d/p/mouse-animations: Use accent colors based animations also for non-yaru
    themes (LP: #2085683, #2085610)
  * d/p/fractional-scaling-toggle: Support toggling fractional scaling in nested
    mode (LP: #2085722)
  * d/p/mouse-accent-animations: Properly draw the touch to tap animation
    (LP: #2085786)
  * Remaining changes with debian:
    + Add gnome-control-center-faces package to share with unity-control-center
    + Install apport hook
    + debian/control:
      - Build-Depend on libwhoopsie-preferences-dev
      - Depend on language-selector-gnome & whoopsie-preferences
      - Depend on libgtk-4-media-gstreamer for Mouse & Touchpad art
        (LP: #2011849)
      - Don't depend on desktop-base
      - Recommend ibus
      - Don't recommend libnss-myhostname since we use systemd-resolved
      - Suggest instead of recommend gnome-user-share & realmd
      - Suggest instead of depend on libjxl-gdk-pixbuf
      - Suggest instead of Depend on malcontent-gui
    + debian/gnome-control-center-data.install:
      - Don't install gnome-control-center.pkla since we use
        policykit-desktop-privileges instead
      - Install additional assets used by unity-control-center
    * debian/ubuntu-logo-icon.png, debian/source/include-binaries,
      debian/gnome-control-center-data.install: Include an Ubuntu logo
    * debian/gnome-control-center-data.links:
      - Link audio-speaker-center* to audio-speaker-mono* so that an
        icon is shown in the test speaker panel. (LP: #1704002)
    + debian/rules: Enable whoospie integration
    + debian/rules: set SSHD_SOCKET=ssh.socket via CPPFLAGS in debian/rules.
    + debian/rules: Enable malcontent support
    + Add patches:
      - keyboard-For-xkb-options-have-Layout-default-toggle-and-N.patch
      - keyboard-Avoid-modifying-xkb-options-when-user-changes-n.patch
      - u/keyboard-Add-launch-terminal-shortcut.patch
      - u/sound-Allow-volume-to-be-set-above-100.patch
      - u/Allow-tweaking-some-settings-for-Ubuntu-Dock.patch
      - u/background-Allow-configuring-the-ubuntu-accent-color.patch
      - u/multitasking-panel-Sync-workspace-and-monitor-isolation-d.patch
      - u/multitasking-panel-Sync-workspace-isolation-setting-on-ti.patch
      - u/Modify-Mulitasking-assets-for-accent-colors.patch
      - u/lock-Add-Lock-Screen-on-Suspend-option.patch
      - u/region-Add-Language-Selector-button.patch
      - u/Adapts-the-region-capplet-and-the-language-chooser-in-the.patch
      - u/shell-Change-the-default-height-so-all-category-are-on-sc.patch
      - u/connectivity-add-network-connectivity-checking-toggle.patch
      - u/diagnostics-Add-Whoopsie-support.patch
      - u/online-accounts-Hide-window-after-adding-an-online-accoun.patch
      - u/online-accounts-sort.patch
      - u/display-Support-UI-scaled-logical-monitor-mode.patch
      - u/Disable-non-working-camera-microphones-panels.patch...

Read more...

Changed in gnome-control-center (Ubuntu):
status: In Progress → Fix Released
description: updated
Changed in gnome-control-center (Ubuntu Oracular):
importance: Undecided → Low
Changed in gnome-control-center (Ubuntu Noble):
status: New → Triaged
Changed in gnome-control-center (Ubuntu Oracular):
status: New → Triaged
Changed in gnome-control-center (Ubuntu):
milestone: none → ubuntu-25.04
Changed in gnome-control-center (Ubuntu Noble):
milestone: none → noble-updates
Changed in gnome-control-center (Ubuntu Oracular):
milestone: none → oracular-updates
tags: added: desktop-needs-sru
Changed in gnome-control-center (Ubuntu Oracular):
status: Triaged → Fix Committed
assignee: nobody → Alessandro Astone (aleasto)
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello errors.ubuntu.com, or anyone else affected,

Accepted gnome-control-center into oracular-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-control-center/1:47.1.1-0ubuntu1 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, what testing has been performed on the package and change the tag from verification-needed-oracular to verification-done-oracular. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-oracular. 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 for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-oracular
Changed in gnome-control-center (Ubuntu Noble):
status: Triaged → Fix Committed
tags: added: verification-needed-noble
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello errors.ubuntu.com, or anyone else affected,

Accepted gnome-control-center into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-control-center/1:46.5-0ubuntu0.24.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, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. 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 for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Alessandro Astone (aleasto) wrote :

Installed gnome-control-center, gnome-control-center-data, gnome-control-center-faces version 1:46.5-0ubuntu0.24.04.1 in Ubuntu 24.04.1 LTS.

Performed the steps from the Test Plan.

I verified that gnome-control-center did not crash, and it showed mouse animations in the Adwaita's default Blue accent color.

tags: added: verification-done-noble
removed: desktop-needs-sru verification-needed-noble
Revision history for this message
Alessandro Astone (aleasto) wrote :

The oracular fix is making gnome-control-center crash in a different way now:

it spam logs
GStreamer[206763]:CRITICAL: gst_poll_write_control: assertion 'set != NULL' failed

apparently leaking fds, because later on it crashes with:

Gdk[209621]:CRITICAL: ../../../gdk/wayland/gdkdisplay-wayland.c:1332: creating shared memory file (using memfd_create) failed: Too many open files
Gdk[209621]: ERROR: Unable to create shared memory pool

tags: added: verification-failed-oracular
removed: verification-needed-oracular
Revision history for this message
Alessandro Astone (aleasto) wrote :

It's a mesa bug, tracked in bug 2090934

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.