gnome-shell crashed with signal 5 in clutter_box_layout_allocate() ("ClutterBoxLayout child Gjs_ui_shellEntry_CapsLockWarning natural height: 0.000000 < minimum 24.000000 for width ...") when enable-animations=false

Bug #1866044 reported by Stéphane Graber
142
This bug affects 22 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Unknown
gnome-shell (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Starting this morning after updating my focal system, some GPG/SSH key prompts will cause the entire shell to instantly crash. I also had a similar shell crash happen when trying to unlock my laptop after having it locked for a little while (but not suspended).

This unfortunately isn't easy reproduced on demand, but I've had 5 gnome-shell crashes over the past 4 hours when I have had none of the 3 months prior, so something feels quite wrong and makes getting any work done quite difficult.

ProblemType: Crash
DistroRelease: Ubuntu 20.04
Package: gnome-shell 3.35.91-1ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-14.17-generic 5.4.18
Uname: Linux 5.4.0-14-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu18
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Mar 4 08:45:46 2020
DisplayManager: gdm3
ExecutablePath: /usr/bin/gnome-shell
LocalLibraries: /home/stgraber/data/code/go/deps/sqlite/.libs/libsqlite3.so.0.8.6
ProcCmdline: /usr/bin/gnome-shell
RelatedPackageVersions: mutter-common 3.35.91-1ubuntu1
Signal: 5
SourcePackage: gnome-shell
StacktraceTop:
 () at /usr/lib/x86_64-linux-gnu/mutter-6/libmutter-clutter-6.so.0
 () at /usr/lib/gnome-shell/libst-1.0.so
 () at /usr/lib/x86_64-linux-gnu/mutter-6/libmutter-clutter-6.so.0
 () at /usr/lib/x86_64-linux-gnu/mutter-6/libmutter-clutter-6.so.0
 clutter_actor_allocate () at /usr/lib/x86_64-linux-gnu/mutter-6/libmutter-clutter-6.so.0
Title: gnome-shell crashed with signal 5
UpgradeStatus: Upgraded to focal on 2018-12-17 (443 days ago)
UserGroups: adm dialout kvm libvirt lp lpadmin lxd plugdev sbuild scanner sudo video
separator:

Revision history for this message
Stéphane Graber (stgraber) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 clutter_box_layout_allocate () from /tmp/apport_sandbox_i7efs1t2/usr/lib/x86_64-linux-gnu/mutter-6/libmutter-clutter-6.so.0
 st_viewport_allocate () from /tmp/apport_sandbox_i7efs1t2/usr/lib/gnome-shell/libst-1.0.so
 clutter_actor_set_animatable_property () from /tmp/apport_sandbox_i7efs1t2/usr/lib/x86_64-linux-gnu/mutter-6/libmutter-clutter-6.so.0
 _clutter_actor_create_transition () from /tmp/apport_sandbox_i7efs1t2/usr/lib/x86_64-linux-gnu/mutter-6/libmutter-clutter-6.so.0
 clutter_actor_allocate () from /tmp/apport_sandbox_i7efs1t2/usr/lib/x86_64-linux-gnu/mutter-6/libmutter-clutter-6.so.0

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
Stéphane Graber (stgraber) wrote : Re: gnome-shell crashed with signal 5

Local libs is safe to ignore, it's a default LXD development setup where we have libdqlite/libraft/libsqlite3 under LD_LIBRARY_PATH, none of which are used by gnome.

tags: added: champagne
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: gnome-shell crashed with signal 5 in clutter_box_layout_allocate()

I can't find any existing reports of this crash just yet so my first idea is that it's related to extensions, as many bugs are. Please try uninstalling your shell extensions and see if the problem reoccurs. Sorry, but it is a necessary step.

summary: - gnome-shell crashed with signal 5
+ gnome-shell crashed with signal 5 in clutter_box_layout_allocate()
Revision history for this message
Stéphane Graber (stgraber) wrote :

Disabled all extensions, restarted gnome, locked my screen and gnome crashed:

root@castiana:/var/crash# ls -lh
total 136M
-rw-r----- 1 stgraber whoopsie 136M Mar 4 15:36 _usr_bin_gnome-shell.201105.crash

So this doesn't appear to be extension related.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
Stéphane Graber (stgraber) wrote :
Download full text (23.6 KiB)

stgraber@castiana:~$ sudo gdb -p $(pgrep -U $USER -x gnome-shell) -batch \
> -ex "set logging on" -ex continue \
> -ex "bt full" -ex "call (void) gjs_dumpstack()" \
> -ex quit
[New LWP 687667]
[New LWP 687669]
[New LWP 687670]
[New LWP 687671]
[New LWP 687672]
[New LWP 687673]
[New LWP 687674]
[New LWP 687676]
[New LWP 687677]
[New LWP 687678]
[New LWP 687679]
[New LWP 687693]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f416a9f6c3f in __GI___poll (fds=0x7f410c0260a0, nfds=11, timeout=3) at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
warning: File "/home/stgraber/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
 add-auto-load-safe-path /home/stgraber/.gdbinit
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
 set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
 info "(gdb)Auto-loading safe path"

[Thread 0x7f4125ffb700 (LWP 687693) exited]
[New Thread 0x7f4125ffb700 (LWP 689554)]
[New Thread 0x7f41277fe700 (LWP 689555)]
[Thread 0x7f41277fe700 (LWP 689555) exited]
[New Thread 0x7f41277fe700 (LWP 689565)]
[New Thread 0x7f41267fc700 (LWP 689566)]
[New Thread 0x7f4126ffd700 (LWP 689567)]

Thread 1 "gnome-shell" received signal SIGTRAP, Trace/breakpoint trap.
0x00007f416b6c2065 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#0 0x00007f416b6c2065 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007f416b6c30e9 in g_log_default_handler () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x000055723ef265ee in ()
#3 0x00007f416b6c332c in g_logv () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007f416b6c3513 in g_log () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f416ad2c4a9 in clutter_box_layout_allocate (layout=<optimized out>, container=<optimized out>, box=<optimized out>, flags=<optimized out>) at ../clutter/clutter/clutter-box-layout.c:1035
        priv = <optimized out>
        actor = 0x557242d7b870
        child = 0x5572422edd10
        nvis_children = 4
        nexpand_children = 2
        is_rtl = <optimized out>
        iter = {dummy1 = 0x557242d7b870, dummy2 = 0x5572422edd10, dummy3 = 0x5572411be468, dummy4 = 5, dummy5 = 0x557240131188}
        child_allocation = {x1 = 0, y1 = 0, x2 = 0, y2 = 0}
        sizes = 0x7ffef2324a60
        size = 41
        extra = <optimized out>
        n_extra_widgets = 0
        x = 0
        y = 0
        i = <optimized out>
        child_size = <optimized out>
#6 0x00007f416a892cde in () at /usr/lib/gnome-shell/libst-1.0.so
#7 0x00007f416ad19e7a in clutter_actor_allocate_internal (flags=CLUTTER_ALLOCATION_NONE, allocation=<optimized out>, self=0x557242d7b870) at ../clutter/clutter/clutter-actor.c:10256
        klass = <optimized out>
        obj = 0x557242d7b870
#8 clutter_actor_set_animatable_property (a...

Revision history for this message
Stéphane Graber (stgraber) wrote :
Download full text (4.4 KiB)

Mar 04 17:14:52 castiana gnome-shell[687665]: == Stack trace for context 0x5572401415a0 ==
Mar 04 17:14:52 castiana gnome-shell[687665]: #0 557242e0ed70 i resource:///org/gnome/shell/ui/unlockDialog.js:448 (7f4145d7a940 @ 1318)
Mar 04 17:14:53 castiana gnome-shell[689588]: clutter_input_device_get_device_type: assertion 'CLUTTER_IS_INPUT_DEVICE (device)' failed
Mar 04 17:14:53 castiana gnome-shell[689588]: clutter_input_device_get_device_type: assertion 'CLUTTER_IS_INPUT_DEVICE (device)' failed
Mar 04 17:14:53 castiana gnome-shell[689588]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.systemd1.NoSuchUnit: Unit at-spi-dbus-bus.service not found.
Mar 04 17:14:53 castiana gnome-shell[689588]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.systemd1.NoSuchUnit: Unit at-spi-dbus-bus.service not found.
Mar 04 17:14:53 castiana gnome-shell[689588]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Mar 04 17:14:53 castiana gnome-shell[689588]: Will monitor session 112
Mar 04 17:14:53 castiana gnome-shell[689588]: Failed to launch ibus-daemon: Failed to execute child process “ibus-daemon” (No such file or directory)
Mar 04 17:14:54 castiana gnome-shell[689588]: Telepathy is not available, chat integration will be disabled.
Mar 04 17:14:54 castiana gnome-shell[689588]: Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: Unit gvfs-afc-volume-monitor.service is masked. (g-io-error-quark, 36)
Mar 04 17:14:54 castiana gnome-shell[689588]: Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.GPhoto2VolumeMonitor: Unit gvfs-gphoto2-volume-monitor.service is masked. (g-io-error-quark, 36)
Mar 04 17:14:54 castiana gnome-shell[689588]: Failed to create file /run/user/201105/gnome-shell-disable-extensions: Error opening file “/run/user/201105/gnome-shell-disable-extensions”: File exists
Mar 04 17:14:54 castiana gnome-shell[689588]: JS WARNING: [/<email address hidden>/appIcons.js 1080]: unreachable code after return statement
Mar 04 17:14:54 castiana gnome-shell[689588]: Failed to launch ibus-daemon: Failed to execute child process “ibus-daemon” (No such file or directory)
Mar 04 17:14:54 castiana gnome-shell[689588]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x160000e specified for 0x160000c.
Mar 04 17:14:54 castiana gnome-shell[689588]: Error loading calendars: Error calling StartServiceByName for org.gnome.Shell.CalendarServer: Process org.gnome.Shell.CalendarServer exited with status 1
Mar 04 17:14:54 castiana gnome-shell[689588]: Error calling StartServiceByName for org.freedesktop.GeoClue2: Unit geoclue.service is masked.
Mar 04 17:14:54 castiana gnome-shell[689588]: Failed to get PolKit permission: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.bolt.enroll is not registered
Mar 04 17:14:54 castiana gnome-shell[689588]: Error checking authorization for action id org.freedesktop.bolt.enroll: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.bolt.enroll is not registered
Mar 04 17:14:54 castian...

Read more...

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

The reason for this crash is a g_error call (so crash is "expected") as per this error:

ClutterBoxLayout child Gjs_ui_shellEntry_CapsLockWarning natural height: 0.000000 < minimum 24.000000 for width 331.000000

Changed in gnome-shell (Ubuntu):
status: Confirmed → Fix Committed
tags: added: fixed-in-3.35.92 fixed-upstream
information type: Private → Public
Changed in gnome-shell (Ubuntu):
importance: Medium → High
summary: - gnome-shell crashed with signal 5 in clutter_box_layout_allocate()
+ gnome-shell crashed with signal 5 in clutter_box_layout_allocate() when
+ enable-animations=false
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: gnome-shell crashed with signal 5 in clutter_box_layout_allocate() when enable-animations=false

There is no fix committed to Ubuntu yet, but given it is fixed upstream in 3.35.92 we fully expect Ubuntu 20.04 to get the fix.

Changed in gnome-shell (Ubuntu):
status: Fix Committed → Triaged
summary: - gnome-shell crashed with signal 5 in clutter_box_layout_allocate() when
- enable-animations=false
+ gnome-shell crashed with signal 5 in clutter_box_layout_allocate()
+ ("ClutterBoxLayout child Gjs_ui_shellEntry_CapsLockWarning natural
+ height: 0.000000 < minimum 24.000000 for width ...") when enable-
+ animations=false
Changed in gnome-shell (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.6 KiB)

This bug was fixed in the package gnome-shell - 3.36.0-2ubuntu1

---------------
gnome-shell (3.36.0-2ubuntu1) focal; urgency=medium

  * Merge with Debian. Ubuntu bugs resolved since 3.35.91-1ubuntu2:
    - gnome-shell crashed when enable-animations was false (LP: #1866044)
    - Overview animations were not reliably smooth (LP: #1725180)
    - Higher than necessary CPU usage on mouse movement (LP: #1848951)
    - Extension's preferences did not load (LP: #1866146)
  * debian/control:
    - Breaks yaru (<< 20.04.3~)
    - Breaks gnome-session (<< 3.35.3-1ubuntu4~) as per gdm yaru gresources
    - Breaks gnome-shell-extension-ubuntu-dock (<< 67ubuntu20.04.3)
    - Update Vcs-* to point to salsa ubuntu branches
  * ubuntu.json: Use Yaru gresource file for theming in ubuntu mode
  * debian/patches: Refresh
  * d/p/overview-Fade-in-out-over-the-desktop-instead-of-replacin.patch:
    - Fade in/out the desktop instead of replacing it (LP: #1847712)
  * d/p/ubuntu/gdm_alternatives.patch:
    - Set the default theme resource for gdm session to 'gdm3-theme.gresource'
    - Alias the default gnome-shell.css to gdm3.css
  * gnome-shell-common.install: Don't install compiled css file anymore
  * gnome-shell-common.{preinst,prerm}:
    - Remove obsolete alternative gdm3.css symlink
  * gnome-shell-common.postinst:
    - Set gnome-shell-theme.gresource as alternative for gdm3-theme.gresource
  * Remaining changes from debian:
    + Replace gnome-backgrounds dep with ubuntu-wallpapers and Suggests
      gnome-themes-standard-data, gnome-backgrounds
    + Add some Recommends:
      - ubuntu-session (| gnome-session) to have the ubuntu session available
      - xserver-xorg-legacy
      - yaru-theme-gnome-shell for the default ubuntu theming
    + Update debian/gbp.conf with Ubuntu settings
    + gnome-shell-common.prerm: Remove deprecated ubuntu theme alternative
    + ubuntu/desktop_detect.patch:
      - add caching for desktop detection to avoid querying the current
        desktop env variable as iterate through the list each time. For the
        time of the Shell process, we can expect this env variable to stay
        stable.
    + ubuntu/smarter_alt_tab.patch:
      - quick alt-tab (without showing up the switcher) switch only between
        the last window of the last 2 applications to be focused instead of
        raising all windows of those apps.
    + ubuntu/lightdm-user-switching.patch:
      - Allow user switching when using LightDM.
    + ubuntu/lock_on_suspend.patch
      - Respect Ubuntu's lock-on-suspend setting.
    + ubuntu/background_login.patch
      - Change default background color as we modified the default GDM color
        for our ubuntu session.
    + ubuntu/gdm_alternatives.patch
      - Add support for GDM3 theme alternatives
    + optional-hot-corner.patch
      - enable patch proposed by upstream developer already in package (but
        not in series) to add a settings for optional hot corner activation.
    + main-show-an-error-message-on-gnome-shell-crash.patch,
      global-make-possible-to-set-debug-flags-dynamically.patch,
      main-increase-the-granularity-of-backtraces-in-SHELL_DEBU.patch,
      main-add-backtrace-c...

Read more...

Changed in gnome-shell (Ubuntu):
status: Fix Committed → Fix Released
Changed in gnome-shell:
status: Unknown → Fix Released
Revision history for this message
Excited Buddha (excited-buddha) wrote :

I am still getting the same bug, latest ubuntu 20.04 as of 22.04.2020 with gnome 3.36+
After locking screen and letting display turn off, I am unable to log in again.

Revision history for this message
Excited Buddha (excited-buddha) wrote :

Sorry for multiple comments
.... continued from previous comment here is my bug report number #1874345

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.