From c1eca9448234c2923468a376682f5e3f29896d06 Mon Sep 17 00:00:00 2001 From: John Cardullo Date: Tue, 27 Oct 2026 01:40:09 -0700 Subject: [PATCH] gui/fading-label: Do not snapshot empty cached text node When a label has empty text or an empty PangoLayout, gtk_snapshot_free_to_node() returns NULL. Passing NULL to gtk_snapshot_append_node() triggers a critical assertion failure which causes an abort under G_DEBUG=fatal-criticals. Part-of: --- src/gui/gcal-fading-label.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/gcal-fading-label.c b/src/gui/gcal-fading-label.c index 03a7566d..b828b725 100644 --- a/src/gui/gcal-fading-label.c +++ b/src/gui/gcal-fading-label.c @@ -178,6 +178,9 @@ gcal_fading_label_snapshot (GtkWidget *widget, self->cached_text_node = gtk_snapshot_free_to_node (g_steal_pointer (&text_snapshot)); } + if (!self->cached_text_node) + return; + if (self->cached_extents.x + self->cached_extents.width <= width) { gtk_snapshot_append_node (snapshot, self->cached_text_node);