Skip to content

GTK segfault on Ubuntu 24.04 Snap — schema and font-antialiasing #44

@zag

Description

@zag

After the Wayland fix in v0.7.2, a different segfault was reported in #43. Ubuntu 24.04 LTS, Wayland, Snap, GNOME 46

Error log

[77708:0401/133825.635892:ERROR:ui/gtk/gtk_ui.cc:259] Schema org.gnome.desktop.interface does not have key font-antialiasing
Error reading state file: /home/smonff/snap/podlite/8/.config/podlite/storage/app.json
ENOENT: no such file or directory
/snap/podlite/8/podlite: line 2: 77708 Segmentation fault (core dumped)

Root cause (likely)

electron-builder v23 generates snaps with base: core18 (EOL). core18 doesn't have the org.gnome.desktop.interface gsettings schemas that GTK on GNOME 46 expects. The missing font-antialiasing key breaks GTK initialization, which leads to a segfault on native dialog open.

The app.json ENOENT is a first-run condition (no state file yet) — not the crash itself, but needs graceful handling.

Plan

Fixing this with the electron-builder v23 -> v26+ upgrade — new snap base: core22 ships current GNOME schemas.

Environment

  • Ubuntu 24.04.4 LTS
  • GNOME 46, Wayland
  • snap confinement
  • Podlite v0.7.2
  • Lenovo ThinkPad P14s Gen 2i, Intel Iris Xe

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions