Bug 510996 - Spectacle failed to initialize graphics backend for OpenGL when the system was under high GPU load
Summary: Spectacle failed to initialize graphics backend for OpenGL when the system wa...
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.3.6
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-24 05:40 UTC by alkaris
Modified: 2025-11-10 17:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Backtrace log of Spectacle crash (11.44 KB, text/plain)
2025-11-09 02:14 UTC, alkaris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alkaris 2025-10-24 05:40:27 UTC
SUMMARY

If I'm running a fullscreen application like a game or something in windowed mode, and GPU is in use by those applications and I need to take a screenshot with Spectacle, it fails to create RHI (backend 2) and fails to initialize OpenGL and just segfaults when attempting to take a screenshot. I am on Wayland, on KDE Plasma 6.3.6, Renderer settings of Plasma for Backend and Render Loop is set to Automatic. GL Core Profile Force on or off doesn't seem to matter. I've tested on X11 and doesn't seem to exhibit this issue, it only seems to happen on Wayland specifically.

STEPS TO REPRODUCE

1.  Have an application that utilizes GPU load
2. Try to screenshot with Spectacle using Rectangular Region or Window selection.
3. 

OBSERVED RESULT

Spectacle segfaults when attempting to screenshot part of the screen or selected window.


EXPECTED RESULT

Suppose to be able to take screenshot regardless if other applications are using the GPU at the same time.


SOFTWARE/OS VERSIONS

Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.11.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 31.0 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070

ADDITIONAL INFORMATION

None.
Comment 1 TraceyC 2025-10-24 17:37:18 UTC
As the message at the top of the summary says, if something crashed, we need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl ?

Thanks.
Comment 2 Bug Janitor Service 2025-11-08 03:47:54 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 alkaris 2025-11-09 02:14:04 UTC
Created attachment 186630 [details]
Backtrace log of Spectacle crash

Here is the coredump I was able to recover for Spectacle.
Comment 4 TraceyC 2025-11-10 17:58:17 UTC
                Stack trace of thread 475036:
                #0  0x00007338f94a5624 n/a (libc.so.6 + 0x97624)
                #1  0x00007338f944bba0 raise (libc.so.6 + 0x3dba0)
                #2  0x00007338f9433582 abort (libc.so.6 + 0x25582)
                #3  0x00007338f9a910b5 n/a (libQt6Core.so.6 + 0x910b5)
                #4  0x00007338f9a91f65 _ZNK14QMessageLogger5fatalEPKcz (libQt6Core.so.6 + 0x91f65)
                #5  0x00007338fc1401b7 n/a (libQt6Quick.so.6 + 0x1401b7)
                #6  0x00007338fc302135 n/a (libQt6Quick.so.6 + 0x302135)
                #7  0x00007338fc304043 n/a (libQt6Quick.so.6 + 0x304043)
                #8  0x00007338fb7f52c4 _ZN7QWindow5eventEP6QEvent (libQt6Gui.so.6 + 0x1f52c4)
                #9  0x00007338fc8fed9e _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0xfed9e)
                #10 0x00007338f9b5a018 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x15a018)
                #11 0x00007338fb79bbb4 _ZN22QGuiApplicationPrivate18processExposeEventEPN29QWindowSystemInterfacePrivate11ExposeEventE (libQt6Gui.so.6 + 0x19bbb4)
                #12 0x00007338fb80d0c4 _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x20d0c4)
                #13 0x00007338fb80d2b7 _ZN22QWindowSystemInterface23flushWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x20d2b7)
                #14 0x00007338f9bb6f1a n/a (libQt6Core.so.6 + 0x1b6f1a)
                #15 0x00007338f9dcd5e5 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3cd5e5)
                #16 0x00007338f9b65376 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x165376)
                #17 0x00007338f9b5d159 _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x15d159)
                #18 0x0000602959a76985 n/a (/usr/bin/spectacle + 0x4b985)
                #19 0x00007338f9435488 n/a (libc.so.6 + 0x27488)
                #20 0x00007338f943554c __libc_start_main (libc.so.6 + 0x2754c)
                #21 0x0000602959a79d25 n/a (/usr/bin/spectacle + 0x4ed25)