Bug 469899 - Spectacle all of a sudden can no longer take screenshots.
Summary: Spectacle all of a sudden can no longer take screenshots.
Status: RESOLVED DUPLICATE of bug 446628
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 22.12.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-17 16:22 UTC by imthenachoman
Modified: 2023-05-17 18:31 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description imthenachoman 2023-05-17 16:22:51 UTC
SUMMARY

This was working and all of a sudden it stopped. When I try to take a screenshot with it, it shows the error "Could not take a screenshot. Please report this bug here: create a spectacle bug".

STEPS TO REPRODUCE
1. Open Spectacle
2. Cilck the `Take a New Screenshot` button

OBSERVED RESULT

Error.

"Could not take a screenshot. Please report this bug here: create a spectacle bug".

EXPECTED RESULT

It should take a screenshot.

SOFTWARE/OS VERSIONS
OS: Debian Bookworm/12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Graphics Platform: Wayland

ADDITIONAL INFORMATION

This was working for the last few days since I installed Debian. It just stopped working today.
Comment 1 Noah Davis 2023-05-17 16:29:30 UTC
Version 22.12 is no longer supported. Try using 23.04 instead.
Comment 2 imthenachoman 2023-05-17 17:55:21 UTC
(In reply to Noah Davis from comment #1)
> Version 22.12 is no longer supported. Try using 23.04 instead.

I'm on Debian Bookworm/12 (RC2 install). I didn't do anything special to get Spectacle. There is no update available through apt. 

> kde-spectacle/testing,now 22.12.3-1 amd64 [installed,automatic]
>   Screenshot capture utility

So I have 3 questions/concerns:

1. This worked when I first installed Debian + KDE. So I'm curious what caused it to break. Is there a place I can look at error logs for Spectacle? 
2. This version is what is shipping with Debian Bookworm/12. If it's broken for me, it'll be broken for a lot of folks.
3. Is there a special way I should update to the latest version?

I am not convinced it's a version issue. It was working and stopped working all of a sudden. I can't tell if maybe something else I installed broke it.
Comment 3 Noah Davis 2023-05-17 18:14:01 UTC
(In reply to imthenachoman from comment #2)
> I'm on Debian Bookworm/12 (RC2 install). I didn't do anything special to get
> Spectacle. There is no update available through apt. 

That's unfortunate. It seems like it's not on Flathub either, but I suppose you could try our Nightly flatpak repo (https://userbase.kde.org/Tutorials/Flatpak, has unreleased versions). The alternative is to compile it from source or use a debian repo or distro with the new version.

> So I have 3 questions/concerns:
> 
> 1. This worked when I first installed Debian + KDE. So I'm curious what
> caused it to break. Is there a place I can look at error logs for Spectacle? 

Unless you can get a crash, no.

> 2. This version is what is shipping with Debian Bookworm/12. If it's broken
> for me, it'll be broken for a lot of folks.

We can't do much about Debian's package versions.

> 3. Is there a special way I should update to the latest version?
> I am not convinced it's a version issue. It was working and stopped working
> all of a sudden. I can't tell if maybe something else I installed broke it.

We've seen bug reports about this in the past, but unfortunately the bug reports are all useless because they don't have enough info and the reporters don't know enough about what's going on to post useful info. This issue could be caused by a large number of things, some of which may not even technically be Spectacle bugs. It's kind of our fault for telling people to post a bug report in the GUI itself without providing more info to the user in the first place. The new version no longer tells people to post bug reports like that.
Comment 4 imthenachoman 2023-05-17 18:26:24 UTC
Yeah, it doesn't look like a bug so much so as an issue with my setup.

I created a test user and spectacle worked fine. I deleted my ` ~/.config/spectaclerc` and rebooted but it still didn't work on my main account.

I'm trying to figure out if I can debug what happened...
Comment 5 imthenachoman 2023-05-17 18:27:28 UTC
Running it from terminal and I see this error. Humm

> Screenshot request failed: "The process is not authorized to take a screenshot"
> qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Comment 6 imthenachoman 2023-05-17 18:31:13 UTC
We can close this bug. I found the issue: https://bugs.kde.org/show_bug.cgi?id=446628.

Just not sure how/why it happened.
Comment 7 imthenachoman 2023-05-17 18:31:48 UTC

*** This bug has been marked as a duplicate of bug 446628 ***