Bug 513023

Summary: An error occured while taking a screenshot when trying to take a 2nd screenshot
Product: [Applications] Spectacle Reporter: andy <andy>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description andy 2025-12-06 21:29:47 UTC
SUMMARY
After taking a screenshot, the 2nd time I press Print Screen button on keyboard, spectacle shows a banner with a red X saying "An error occurred while taking a screenshot. 

In journalctl when I press Print Screen I see an empty log line like "spectacle[747057]: "

STEPS TO REPRODUCE

Method 1:
1. Press print screen, select "Rectangular Region", draw a rectangle, and hit enter
2. Hit print screen again

Method 2:
1. Press print screen, and don't pick which type of screenshot to do
2. Hit print screen again from this main spectacle menu

OBSERVED RESULT
In both cases, a red banner pops up with a red X saying "An error occurred while taking a screenshot. 

EXPECTED RESULT
Print Screen button works with an existing spectacle instance

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.17.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 64 GiB of RAM (62.4 GiB usable)
Graphics Processor 1: NVIDIA GeForce RTX 4050 Laptop GPU
Graphics Processor 2: Intel® Iris® Xe Graphics

ADDITIONAL INFORMATION