Spectacle fails to save a screenshot

Spectacle constantly fails to save a screenshot (on save or export action).
Tried to reinstall spectacle and qt: no effect.

2022-01-12_12-17
2022-01-12_12-16

Details:

$ inxi -SG
System:
  Host: roman-pc Kernel: 5.15.12-1-MANJARO x86_64 bits: 64
    Desktop: KDE Plasma 5.23.4 Distro: Manjaro Linux
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] driver: nvidia
    v: 495.44
  Device-3: Realtek Integrated Webcam type: USB driver: uvcvideo
  Display: x11 server: X.Org 1.21.1.2 driver: loaded: modesetting,nvidia
    resolution: 1920x1080~60Hz
  OpenGL: renderer: NVIDIA GeForce GTX 1060 with Max-Q Design/PCIe/SSE2
    v: 4.6.0 NVIDIA 495.44

KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15,5 GiB of RAM

Hi @RomanPerekhrest,

That looks like a permissions error. Make sure the location you’re trying to save it too is writable by the current user.

Edit:

Edit/confirm by opening spectacle and checking its configuration:

  1. Click the Configure button.
  2. In the window that pops up, confirm the “Save location” path. Ensure it’s set to somewhere you have write access too.

Hope this helps!

It fails to save to any location (permissions ok).

Launch it from the terminal (spectacle --gui) and check the error messages when you click save

$ spectacle --gui
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1321, resource id: 14911683, major code: 40 (Translate
Coords), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1498, resource id: 14911713, major code: 40 (Translate
Coords), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2585, resource id: 14912083, major code: 40 (Translate
Coords), minor code: 0

That looks less like a spectacle error and more like a Qt error.

Only thing I can recommend, is reinstallation:

  • Remove the package:
pamac remove spectacle
  • Backup and remove any configuration files:
mv ~/.config/spectaclerc ~/.config/spectaclerc.backup
mv ~/.config/kde.org/spectacle.conf ~/.config/kde.org/spectacle.conf.backup 
  • Reinstall the package:
pamac install spectacle

Obviously after this you’d have to make any configuration changes again.

Mine works, just tested it again, so that’s all I can recommend.