gnome-shell crashed with SIGTRAP from error "Can't create a GtkStyleContext without a display connection" in gtk_style_context_init
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-shell (Ubuntu) |
Won't Fix
|
High
|
Unassigned | ||
libcanberra (Ubuntu) |
Fix Released
|
High
|
Marco Trevisan (Treviño) | ||
Kinetic |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
GNOME Shell isn't meant to use GTK at all, but it's repeatedly crashing in GTK since the introduction of GNOME 40.
https:/
https:/
https:/
https:/
This seems to be a result of Xwayland crashing and gnome-shell then trying to recover (and failing). Although gnome-shell shouldn't be using GTK, and Wayland sessions shouldn't be dependent on having an X11 server (Xwayland) available. Fixing either of those should resolve this.
WORKAROUND:
sudo apt remove libcanberra-
TEST CASE:
1. Log into a Wayland session.
2. Open a Terminal.
3. $ xrandr # Just to ensure Xwayland starts
4. $ killall Xwayland
Expected: gnome-shell still responds.
Observed: gnome-shell freezes or exits.
---
ProblemType: Crash
DistroRelease: Ubuntu 22.04
Package: gnome-shell 40.5-1ubuntu2
ProcVersionSign
Uname: Linux 5.13.0-19-generic x86_64
ApportVersion: 2.20.11-0ubuntu72
Architecture: amd64
CasperMD5CheckR
CrashCounter: 1
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 29 15:11:43 2021
DisplayManager: gdm3
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2021-10-27 (2 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20211023)
ProcCmdline: /usr/bin/
ProcEnviron:
LANG=nb_NO.UTF-8
LANGUAGE=
PATH=(custom, no user)
SHELL=/bin/bash
XDG_RUNTIME_
RelatedPackageV
Signal: 5
SourcePackage: gnome-shell
StacktraceTop:
g_log_
g_log_
g_log_
?? () from /lib/x86_
g_type_
Title: gnome-shell crashed with signal 5 in g_log_writer_
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
separator:
summary: |
- gnome-shell crashed with signal 5 error "Can't create a GtkStyleContext - without a display connection" in gtk_style_context_init + gnome-shell crashed with SIGTRAP from error "Can't create a + GtkStyleContext without a display connection" in gtk_style_context_init |
tags: | added: impish |
description: | updated |
description: | updated |
description: | updated |
tags: | added: rls-jj-incoming |
description: | updated |
Changed in libcanberra (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in gnome-shell (Ubuntu): | |
status: | Confirmed → Triaged |
description: | updated |
tags: | added: dt-303 |
Changed in gnome-shell (Ubuntu): | |
status: | Triaged → Won't Fix |
Changed in libcanberra (Ubuntu): | |
status: | Triaged → Fix Committed |
assignee: | nobody → Marco Trevisan (Treviño) (3v1n0) |
StacktraceTop: writer_ default (log_level= <optimized out>, fields= 0x7ffeb0f37560, n_fields=6, user_data=0x0) at ../../. ./glib/ gmessages. c:556 structured_ array (n_fields=6, fields= 0x7ffeb0f37560, log_level= G_LOG_LEVEL_ ERROR) at ../../. ./glib/ gmessages. c:1972 structured_ array (log_level= G_LOG_LEVEL_ ERROR, fields= 0x7ffeb0f37560, n_fields=6) at ../../. ./glib/ gmessages. c:1945 structured_ standard (log_domain= log_domain@ entry=0x7f2752a 4c063 "Gtk", log_level= log_level@ entry=G_ LOG_LEVEL_ ERROR, file=file@ entry=0x7f2752a b20e0 "../../ ../../gtk/ gtkstylecontext .c", line=line@ entry=0x7f2752a 6be7c "348", func=func@ entry=0x7f2752a b2c30 <__func__.70> "gtk_style_ context_ init", message_ format= message_ format@ entry=0x7f2752a b2400 "Can't create a GtkStyleContext without a display connection") at ../../. ./glib/ gmessages. c:2029 context_ init (context= 0x559c3bcdd5d0) at ../../. ./../gtk/ gtkstylecontext .c:348
g_log_
g_log_
g_log_
g_log_
gtk_style_