Spectacle "Rectangular region" not working

Hello,

i’ve been running my cachyos install for a couple months now and i remember spectacle working flawlessly when i first tried it, but last week i tried to call it via the keyboard shortcut but nothing happened. I tried starting it via the terminal using the “spectacle -l“ command to open the settings menu and it seems to work that way but when i do i get this stacktrace in my terminal window:

spectacle: Unable to load Tesseract candidate “libtesseract.so.5” : “Cannot load library libtesseract.so.5: libtesseract.so.5: cannot open shared object file: No such file or directory”spectacle: Unable to load Tesseract candidate “libtesseract.so.4” : “Cannot load library libtesseract.so.4: libtesseract.so.4: cannot open shared object file: No such file or directory”spectacle: Unable to load Tesseract candidate “libtesseract.so” : “Cannot load library libtesseract.so: libtesseract.so: cannot open shared object file: No such file or directory”spectacle: Unable to locate a suitable Tesseract shared libraryspectacle: Tesseract runtime library not available

All screenshot options seem to work, but when i try to take a Rectangular Region screenshot it force closes with this error:

/usr/include/c++/15.2.1/bits/stl_vector.h:1346: constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::front() [with _Tp = std::unique_ptr<CaptureWindow, void (*)(CaptureWindow*)>; _Alloc = std::allocator<std::unique_ptr<CaptureWindow, void (*)(CaptureWindow*)> >; reference = std::unique_ptr<CaptureWindow, void (*)(CaptureWindow*)>&]: Assertion '!this->empty()' failed.
fish: Job 1, 'spectacle -l' terminated by signal SIGABRT (Abort)

This morning i noticed a bunch of KDE/Plasma updates being installed so this might be related to that, but i couldn’t run Spectacle last week either.

Anyone knows if it’s a known issue? Thanks.

This is my kinfo

kinfo output
WARNING: radv is not a conformant Vulkan implementation, testing use only.
Operating System: CachyOS Linux
KDE Plasma Version: 6.6.0
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Kernel Version: 6.19.2-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 32 GiB of RAM (30.9 GiB usable)
Graphics Processor: AMD Radeon RX 9070 XT

I tried searching online and apparently yesterday the KDE devs pushed a specific fix for Fedora regarding that library, strangely enough i can’t find it anywhere in my system and running ldconfig -p | grep tess returns nothing.

EDIT: After further investigation it seems like that tesseract library is used only for OCR, there’s an option in the Spectacle settings, and it shouldn’t be the cause of my issue, that’s spectacle hard crashing when i try to take a rectangular screenshot.

Found the culprit:

My disabled LG TV attached via HDMI to my GPU.
A month ago i was struggling with a bug that was introduced in KDE Settings: every time i tried to disable my LG TV it was returning an out of bound error, after a couple weeks the bug was resolved and i could disable it, but apparently it stored some dirty values somewhere and it was crashing Spectacle every time i tried taking a rectangle screenshot.

tl;dr: Enable > take a rectangle screenshot with Spectacle, then Disable the second monitor and its now fixed.