Bug 487802

Summary: Spectacle not taking screenshots correctly KDE6
Product: [Applications] Spectacle Reporter: shaashwatsaraff
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED WORKSFORME    
Severity: grave CC: junksmith398, kde, kdedev
Priority: NOR    
Version First Reported In: 24.05.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description shaashwatsaraff 2024-05-30 17:01:49 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When spectacle is asked to take a new screenshot, it fails to do so. 

STEPS TO REPRODUCE
1. Just launch spectacle (if set to take new screenshot on launch), or launch and then explicitly take a screenshot
2. Wait
3. See error

OBSERVED RESULT

Error message:
An error occurred while taking a screenshot.
KWin screenshot request failed:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Potentially relevant information:
- Method: CaptureScreen
- Method specific arguments: "eDP-1"
KWin screenshot request failed:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Potentially relevant information:
- Method: CaptureScreen
- Method specific arguments: "HDMI-1"

Sometimes it fails to take any screenshot at all, and sometimes it takes a delayed screenshot of another window/screen (not the active window) even if that window is behind the active window

EXPECTED RESULT
It should have taken a screenshot as instructed

SOFTWARE/OS VERSIONS
Linux: Arch Linux, kernel linux-lts 6.6.25-1-lts (64-bit)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Graphics platform: X11
Comment 1 Noah Davis 2024-05-30 17:05:59 UTC
Do you happen to have the following file on your system? If you do, does deleting the file and rebooting fix the problem?
~/.local/share/applications/org.kde.spectacle.desktop
Comment 2 Noah Davis 2024-05-30 17:07:55 UTC
[a message so I can set NEEDSINFO since I forgot to do that with the previous message]
Comment 3 shaashwatsaraff 2024-05-31 11:28:53 UTC
(In reply to Noah Davis from comment #1)
> Do you happen to have the following file on your system? If you do, does
> deleting the file and rebooting fix the problem?
> ~/.local/share/applications/org.kde.spectacle.desktop

Dear Noah,

Many thanks for your response. I've just checked and don't see this file on my system. 

Best regards,
Shaashwat
Comment 4 TraceyC 2025-07-02 20:18:07 UTC
*** Bug 506298 has been marked as a duplicate of this bug. ***
Comment 5 TraceyC 2025-07-02 20:23:28 UTC
(In reply to shaashwatsaraff from comment #0)

For this Spectacle error, is this on a system with more than one display? In the duplicate report, the reporter has more than one.
Comment 6 Bug Janitor Service 2025-07-17 03:47:24 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 7 Bug Janitor Service 2025-08-01 03:46:32 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.