Spectacle disappears when trying to take screenshot of rectangular region

I am using Spectacle 22.12.3 in Debian 12 (GNOME 43 desktop environment). I use it to take screenshots of webpages in Mozilla Firefox. When I click on “Take a New Screenshot” with Capture Mode is set to “Rectangular Region” and “No Delay”, Spectacle either (correctly) shows me the crosshair used to select a rectangular region to capture, or (wrongly) disappears. By “disappear”, I mean that Spectacle’s window completely disappears. There is no visual indication that it is still running but pgrep spectacle shows that it is still running (and I then terminate it using pkill spectacle). What are the possible causes of this issue?

journalctl shows log entries such as these:

Nov 12 12:24:47 me systemd[1792]: Started app-gnome-org.kde.spectacle-12283.scope - Application launched by gnome-shell.
Nov 12 12:24:47 me gnome-shell[2084]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2a00008 specified for 0x2a00006.
Nov 12 12:25:14 me gnome-shell[2084]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2a00008 specified for 0x2a00028.
Nov 12 12:25:16 me gnome-shell[2084]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2a00008 specified for 0x2a00006.
Nov 12 12:25:17 me gnome-shell[2084]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2a00008 specified for 0x2a00032.
Nov 12 12:25:19 me gnome-shell[2084]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2a00008 specified for 0x2a00006.
Nov 12 12:25:19 me gnome-shell[2084]: JS ERROR: TypeError: this._app.appInfo is null
                                        _getNonDefaultLaunchGpu@resource:///org/gnome/shell/ui/appMenu.js:190:9
                                        _updateGpuItem@resource:///org/gnome/shell/ui/appMenu.js:173:32
                                        _onAppStateChanged@resource:///org/gnome/shell/ui/appMenu.js:130:14
Nov 12 12:25:42 me gnome-shell[2084]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2a00008 specified for 0x2a00038.
Nov 12 12:25:44 me gnome-shell[2084]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2a00008 specified for 0x2a00006

What does all this mean?

I found a way to work around the issue by setting the screenshot delay to “1 second” instead of “No Delay”.