I investigated an apparently similar sidebar thumbnail problem on Pop!_OS 26.04
(COSMIC/Wayland), using Evince 49~alpha-2ubuntu2.1, GTK 4.22.4+ds-0ubuntu0.2
and GDK-Pixbuf 2.44.5+dfsg-4ubuntu1. The issue reproduced on a physical
workstation and a clean KVM guest with matching package versions.
In my environment the thumbnails were not missing: they were correctly rendered
but extremely small inside much larger cells. Different page colors were
visible in the miniature images.
I compiled the distribution Evince source and instrumented its thumbnail
pipeline. Thumbnail jobs succeeded; Cairo exported a valid 100 × 159 page
image; framed Cairo surfaces and GDK texture dimensions matched (e.g. 102 ×
155). The texture creation helper also handles placeholders, so these dimension
measurements alone do not identify completed jobs.
In GTK's gtk/deprecated/gtkcellrendererpixbuf.c,
gtk_cell_renderer_pixbuf_get_size() uses the paintable's intrinsic dimensions,
but gtk_cell_renderer_pixbuf_snapshot() delegates drawing to GtkIconHelper. In
gtk/gtkiconhelper.c, gtk_icon_helper_paintable_snapshot() constrains the image
using gtk_icon_helper_get_size(). For a portrait image with matching allocation
aspect ratio:
h = MIN (height, gtk_icon_helper_get_size (self));
w = h * ratio;
The helper initializes pixel_size to -1 and consequently falls back to the CSS
icon size when no explicit size is set.
Reproduction / diagnostic workaround (no compilation needed): close Evince, run
GTK_DEBUG=interactive /usr/bin/evince, open a PDF, display the thumbnail
sidebar, and enter the following in GTK Inspector's CSS editor:
iconview { -gtk-icon-size: 200px; }
iconview * { -gtk-icon-size: 200px; }
The thumbnails render normally. Changing both values to 16px and moving the
pointer over the sidebar to trigger a redraw reproduces the tiny thumbnails.
Restoring 200px and triggering redraw again restores normal images. The
reversal succeeded without changing the application binary, document, graphics
configuration or AppArmor settings. The workaround also succeeded on the
physical workstation using an isolated XDG_CONFIG_HOME containing
gtk-4.0/gtk.css.
This may explain some reports of apparently empty thumbnail icons, when they
are actually just extremely small thumbnails. It does not exclude separate
thumbnail generation or confinement failures. I have not established whether
the permanent correction should be made in GTK or Evince, or whether the
original report has exactly this cause.
A potentially related report is Freeciv #1856
(https://redmine.freeciv.org/issues/1856), which describes undersized images
involving GtkCellRendererPixbuf with newer GTK releases. I have not established
that the mechanisms are identical.
I hope this helps narrow the investigation. I can provide further diagnostic
measurements if useful.