#1080327 gtk4: intermittent test failure in gsk/scaling test: generated texture for r16g16b16a16-float* doesn't match reference

Package:
src:gtk4
Source:
src:gtk4
Submitter:
Simon McVittie
Date:
2026-01-10 11:06:06 UTC
Severity:
normal
Tags:
#1080327#5
Date:
2024-09-02 09:56:46 UTC
From:
To:
While working on other FTBFS issues that are fixed in 4.15.6+ds-1, I saw
an intermittent test failure on multiple architectures (amd64, armel, s390x)
in the gsk / scaling test.

This occasionally happens when simply compiling the package from source, but
it's intermittent. An easier reproducer is to let the package build
successfully in an appropriate chroot/container, and then run:

debian/tests/run-with-display x11 meson test --setup=x11 --repeat=100 -v -C ./debian/build/deb scaling

in the same chroot/container. Or replace both occurrences of "x11" with
"wayland" if preferred. If it succeeds, try again until it fails.

An example build failure on s390x:

Different tests fail in different runs, but it seems to always be one of
the r16g16b16a16-float family, which uses a half-precision float
implementation.

The obvious next step would be to produce more diagnostic output on
failure. Most of these tests act on small (2x2) textures and scale them
down to half-size, so hexdumping all of the bytes of the texture in
g_test_message() would seem reasonable. For the tests that act on large
(512x512) textures, that's probably not reasonable, but we could at least
hexdump the first pixel that differed?

    smcv

#1080327#10
Date:
2024-09-02 12:05:55 UTC
From:
To:
Control: tags -1 + upstream
Control: forwarded -1 https://gitlab.gnome.org/GNOME/gtk/-/issues/6978
...

https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7680

Based on that, I've identified two different failure modes, depending on
the random pixel values that the test generates:

* alpha == 0: https://gitlab.gnome.org/GNOME/gtk/-/issues/6977
* alpha == 0xf1/0x100: https://gitlab.gnome.org/GNOME/gtk/-/issues/6978

I can only reproduce #6977 on my laptop and not on porterboxes, so I'm
going to assume that the failure I saw on porterboxes is #6978.

    smcv

#1080327#19
Date:
2026-01-10 10:10:54 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.

#1080327#24
Date:
2026-01-10 10:10:54 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.