Bug 453846 - Running spectacle under wayland gives a message "Could not take a screenshot. Please report this bug here.
Summary: Running spectacle under wayland gives a message "Could not take a screenshot....
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
: 456758 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-15 18:24 UTC by DaveK
Modified: 2022-11-17 18:54 UTC (History)
6 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 DaveK 2022-05-15 18:24:51 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Start Spectacle from the start menu or the command line.
2.  Try to take a screenshot.
3. Receive error message.

OBSERVED RESULT
Get error message.

EXPECTED RESULT
Screenshot is taken.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Kernel version : 5.15.0-generic

If I start spectacle from the command line, I get an error message and spectacle exits: "QSocketNotifier: Can only be used with threads started with QThread".
Comment 1 DaveK 2022-05-15 18:36:02 UTC
Spectacle version 21.12.3.
Comment 2 postix 2022-07-28 12:25:13 UTC
*** Bug 456758 has been marked as a duplicate of this bug. ***
Comment 3 forward.horizon 2022-09-18 01:51:39 UTC
Getting the same error message from spectacle gui when hitting print screen on keyboard.

Opening via Konsole gives:
:~$ spectacle
Error calling KWin DBus interface: "org.freedesktop.DBus.Error.UnknownObject" "No such object path '/Screenshot'"
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
QPixmap::scaled: Pixmap is a null pixmap

kde-spectacle/focal,now 22.08.1-0xneon+20.04+focal+release+build59
Operating System: KDE neon 5.25
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.15.0-41-generic (64-bit)
Graphics Platform: Wayland
Comment 4 Bharadwaj Raju 2022-10-03 09:32:49 UTC
Does `spectacle --new-instance` have the same behavior?
Comment 5 Justin Zobel 2022-11-11 07:14:23 UTC
Awaiting user reply.
Comment 6 DaveK 2022-11-17 18:54:11 UTC
As of KDE Plasma Version 5.24.6 & KDE Frameworks Version 5.92.0 & Qt Version: 5.15.3 this problem no longer exists on my system......