gnome-extensions-app crash, parser_get_compose_table: assertion failed:

Bug #2027571 reported by bob
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GNOME Shell
New
Unknown
GTK+
Fix Released
Unknown
gtk4 (Ubuntu)
Fix Committed
Medium
Unassigned

Bug Description

ENV: Ubuntu 22.04.2 LTS on X11, GNOME Shell 42.9
symptom :
gnome-extensions-app crash everytime right at start.
message:
```
/usr/bin/gnome-extensions-app
**
Gtk:ERROR:../../../gtk/gtkcomposetable.c:981:parser_get_compose_table: assertion failed: (data[first_pos + i] <= data[first_pos + i + 1])
Bail out! Gtk:ERROR:../.
```

gdb backtrace:
```
**
Gtk:ERROR:../../../gtk/gtkcomposetable.c:981:parser_get_compose_table: assertion failed: (data[first_pos + i] <= data[first_pos + i + 1])
Bail out! Gtk:ERROR:../../../gtk/gtkcomposetable.c:981:parser_get_compose_table: assertion failed: (data[first_pos + i] <= data[first_pos + i + 1])

Thread 16 "pool-gnome-exte" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff0858640 (LWP 9456)]
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737228670528) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737228670528) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737228670528) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737228670528, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff76bb476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff76a17f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff7d44b57 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6 0x00007ffff7d9e70f in g_assertion_message_expr () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7 0x00007ffff11be0e3 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#8 0x00007ffff123a0b4 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#9 0x00007ffff123a7b1 in () at /lib/x86_64-linux-gnu/libgtk-4.so.1
#10 0x00007ffff7b9f194 in () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#11 0x00007ffff7dad6b4 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff7daaa51 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff770db43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#14 0x00007ffff779fa00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

```

Moreover, I found in my snap logs that there was update recently applied, might be linked

```
$snap changes
ID Status Spawn Ready Summary
253 Done yesterday at 21:47 CEST yesterday at 21:47 CEST Remove "gnome-3-34-1804" snap
254 Done yesterday at 22:23 CEST yesterday at 22:23 CEST Refresh "gnome-3-38-2004" snap
```

Moreover, is seems I have multiple snap version of gnome installed

```
snap list
...
gnome-3-28-1804 3.28.0-19-g98f9e67.98f9e67 198 latest/stable canonical✓ -
gnome-3-38-2004 0+git.efb213a 143 latest/stable canonical✓ -
gnome-42-2204 0+git.ff35a85 120 latest/stable canonical✓ -
....

```

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome (not installed)
ProcVersionSignature: Ubuntu 5.15.0-76.83-generic 5.15.99
Uname: Linux 5.15.0-76-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Jul 12 12:10:10 2023
InstallationDate: Installed on 2021-08-18 (692 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
SourcePackage: meta-gnome3
UpgradeStatus: Upgraded to jammy on 2023-07-01 (10 days ago)

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

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

Changed in meta-gnome3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Following the upstream bug...

Do you have a ~/.config/gtk-4.0/Compose file? If so, please attach it

affects: meta-gnome3 (Ubuntu) → gnome-shell (Ubuntu)
no longer affects: gnome-shell (Ubuntu)
Revision history for this message
bob (bababa45) wrote :

I do not have a ` ~/.config/gtk-4.0/Compose file` file

Changed in gtk:
status: Unknown → Fix Released
Revision history for this message
bob (bababa45) wrote :

the message above says `fix released`. Where can I find the fix ?

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

There is no identifiable fix, that's just a Launchpad quirk. It says "Fix Released" for any closed bug. In this case it was closed because the bug stopped happening without explanation:
https://gitlab.gnome.org/GNOME/gtk/-/issues/4990

Changed in gnome-shell:
status: Unknown → New
Revision history for this message
bob (bababa45) wrote (last edit ):

it seems to be an issue with gtk 4.

$ sudo apt install gtk-4-examples
$ gtk4-demo-application

the demo app gives me the same error.

the binary is dynamically linked to
 /lib/x86_64-linux-gnu/libgtk-4.so.1

which itself point to
/lib/x86_64-linux-gnu/libgtk-4.so.1.600.6

Revision history for this message
bob (bababa45) wrote :
Download full text (3.8 KiB)

here is the list of gtk4 package installed on my machine, maybe there is something wrong with them ?

$ apt list | grep -i "gtk4\|gtk-4"

awf-gtk4/jammy 2.5.0-5 amd64
fcitx5-frontend-gtk4/jammy 5.0.12-1 amd64
gir1.2-gtk-4.0/jammy-updates,now 4.6.6+ds-0ubuntu1 amd64 [installed,automatic]
gir1.2-gtk-4.0/jammy-updates 4.6.6+ds-0ubuntu1 i386
gir1.2-javascriptcoregtk-4.0/jammy-updates,jammy-security,now 2.38.6-0ubuntu0.22.04.1 amd64 [installed,automatic]
gir1.2-javascriptcoregtk-4.0/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 i386
gir1.2-javascriptcoregtk-4.1/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 amd64
gir1.2-javascriptcoregtk-4.1/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 i386
gir1.2-xdpgtk4-1.0/jammy 0.6-2 amd64
gtk-4-examples/jammy-updates,now 4.6.6+ds-0ubuntu1 amd64 [installed]
gtk-4-examples/jammy-updates 4.6.6+ds-0ubuntu1 i386
gtk-4-tests/jammy-updates 4.6.6+ds-0ubuntu1 amd64
gtk-4-tests/jammy-updates 4.6.6+ds-0ubuntu1 i386
ibus-gtk4/jammy 1.5.26-4 amd64
ibus-gtk4/jammy 1.5.26-4 i386
libdbusmenu-gtk4/jammy 16.04.1+18.10.20180917-0ubuntu8 amd64
libfm-gtk4/jammy 1.3.2-1 amd64
libgtk-4-1/jammy-updates,now 4.6.6+ds-0ubuntu1 amd64 [installed,automatic]
libgtk-4-1/jammy-updates 4.6.6+ds-0ubuntu1 i386
libgtk-4-bin/jammy-updates 4.6.6+ds-0ubuntu1 amd64
libgtk-4-bin/jammy-updates 4.6.6+ds-0ubuntu1 i386
libgtk-4-common/jammy-updates,jammy-updates,now 4.6.6+ds-0ubuntu1 all [installed,automatic]
libgtk-4-dev/jammy-updates,now 4.6.6+ds-0ubuntu1 amd64 [installed]
libgtk-4-dev/jammy-updates 4.6.6+ds-0ubuntu1 i386
libgtk-4-doc/jammy-updates,jammy-updates 4.6.6+ds-0ubuntu1 all
libgtk-4-media-gstreamer/jammy-updates 4.6.6+ds-0ubuntu1 amd64
libgtk-4-media-gstreamer/jammy-updates 4.6.6+ds-0ubuntu1 i386
libjavascriptcoregtk-4.0-18/jammy-updates,jammy-security,now 2.38.6-0ubuntu0.22.04.1 amd64 [installed,automatic]
libjavascriptcoregtk-4.0-18/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 i386
libjavascriptcoregtk-4.0-bin/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 amd64
libjavascriptcoregtk-4.0-bin/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 i386
libjavascriptcoregtk-4.0-dev/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 amd64
libjavascriptcoregtk-4.0-dev/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 i386
libjavascriptcoregtk-4.1-0/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 amd64
libjavascriptcoregtk-4.1-0/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 i386
libjavascriptcoregtk-4.1-dev/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 amd64
libjavascriptcoregtk-4.1-dev/jammy-updates,jammy-security 2.38.6-0ubuntu0.22.04.1 i386
libportal-gtk4-1/jammy 0.6-2 amd64
libportal-gtk4-dev/jammy 0.6-2 amd64
libportal-tests-gtk4/jammy,jammy 0.6-2 all
librust-gtk4-macros-dev/jammy 0.3.1-1 amd64
librust-gtk4-sys-dev/jammy 0.3.1-1 amd64
libswt-cairo-gtk-4-jni/jammy 4.20.0-2 amd64
libswt-glx-gtk-4-jni/jammy 4.20.0-2 amd64
libswt-gtk-4-java/jammy 4.20.0-2 amd64
libswt-gtk-4-jni/jammy 4.20.0-2 amd64
libswt-webkit-gtk-4-jni/jammy 4.20.0-2 amd64
libwebkit2gtk-4.0-37/jammy-updates,jammy-security,now 2.38.6-0ubuntu0.22.04.1 amd64 [installed,automatic]
libwebkit2gtk-4.0-37/jammy-updates,jammy-...

Read more...

Changed in gtk:
status: Fix Released → New
Revision history for this message
bob (bababa45) wrote :
Revision history for this message
bob (bababa45) wrote :

Issue was due to .XCompose beeing too long (40K Lines).
[mirror for the file](https://github.com/rvaiya/keyd/blob/master/data/keyd.compose)
(careful, `cat` does not display it fully, use `vim`)
GTK3 could handle it without issue.
GTK4 crash in the unexpected mannger described above.

Changed in gtk4 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in gtk:
status: New → Fix Released
Changed in gtk4 (Ubuntu):
status: Triaged → Fix Committed
tags: added: fixed-in-gtk4-4.11.5 fixed-upstream
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.