App often fails to start correctly on Fedora 40 and Rawhide
Since Fedora-Rawhide-20231210.n.0 (sorry it took me a while to report this), Snapshot often fails to start in the Fedora openQA test that tries to run every preinstalled app and see if they run correctly.
It fails about half the time - you can see a record at https://openqa.fedoraproject.org/tests/2418552#next_previous , every red dot with 'camera' next to it is a run where launching Snapshot failed.
When it fails, a correctly-sized window is created, but all it shows is a spinner that keeps spinning. Notably, the "Turn On Camera?" permission dialog that we see when launching the app works never appears when it fails.
In the journal - at least from the most recent failure, and another one I checked at random - I see this:
Feb 16 06:33:16 fedora systemd[1646]: Started app-gnome-org.gnome.Snapshot-3221.scope - Application launched by gnome-shell.
Feb 16 06:33:16 fedora org.gnome.Snapshot.desktop[3221]: 2024-02-16T14:33:16.747590Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
Feb 16 06:33:16 fedora org.gnome.Snapshot.desktop[3221]: 2024-02-16T14:33:16.747677Z INFO snapshot::application::imp: Version: 45.2
Feb 16 06:33:16 fedora org.gnome.Snapshot.desktop[3221]: 2024-02-16T14:33:16.747700Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot
Feb 16 06:33:17 fedora org.gnome.Snapshot.desktop[3221]: MESA: error: ZINK: failed to choose pdev
Feb 16 06:33:17 fedora org.gnome.Snapshot.desktop[3221]: libEGL warning: egl: failed to create dri2 screen
Feb 16 06:33:17 fedora org.gnome.Snapshot.desktop[3221]: 2024-02-16T14:33:17.438632Z INFO ashpd::desktop::request: Creating a org.freedesktop.portal.Request /org/freedesktop/portal/desktop>
Feb 16 06:33:17 fedora gnome-shell[1860]: JS ERROR: TypeError: this._windowTracker.focus_app is null
AccessDialogAsync@resource:///org/gnome/shell/ui/accessDialog.js:155:25
_handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:373:35
_wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
@resource:///org/gnome/shell/ui/init.js:21:20
I think the MESA and libEGL lines are normal - pretty sure I've seen them for other apps too, with no real negative consequences - but the JS ERROR: TypeError: this._windowTracker.focus_app is null
error seems like it may be significant.