SUMMARY When I want to create a rectangular screenshot I get an error message. STEPS TO REPRODUCE 1. Launch Spectacle 2. Select the "rectangular area" mode from the dropdown 3. Click the button to create a new screenshot OBSERVED RESULT An error message is displayed EXPECTED RESULT The mode for rectangular screenshots is launched Happens on Wayland, will also test on X11. This might be a regression. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20210127 KDE Plasma Version: 5.20.90 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.9-1-default OS Type: 64-bit Processors: 4 × Intel® Xeon® CPU E3-1225 v3 @ 3.20GHz Memory: 11.6 GiB of RAM Graphics Processor: Mesa DRI Intel® HD Graphics P4600/P4700
Wayland only, X11 is fine. Setting keyword.
What's in the error message? Also you could try to run in from terminal to see more prompt output.
Where you using multiple screens ? What is the version of spectacle used ?
(In reply to Andrey from comment #2) > What's in the error message? > Also you could try to run in from terminal to see more prompt output. Basically it just says that it cannot take a screenshot. I did not find an easy way to screenshot that window, as it is Spectacle and usually not wanted on Screenshots. Running from terminal was a good idea. It gives the following error message when trying to create a rectangular screenshot: `Error calling KWin DBus interface: "org.kde.kwin.Screenshot.Error.ScreenMissing" "Screen not found"` (In reply to Méven Car from comment #3) > Where you using multiple screens ? > What is the version of spectacle used ? Yes, I am using multiple screens. Version of Spectacle used is 20.12.1
This seems to be unrelated to multiple screens (at least I got the same error in the terminal after deactivating my second monitor in KScreen).
Relates to https://bugs.kde.org/show_bug.cgi?id=430869 Could you run `kscreen-doctor -o` The issue is somehow KWin screens names are different from QApplication::screens() As KWin responded `Error calling KWin DBus interface: "org.kde.kwin.Screenshot.Error.ScreenMissing" "Screen not found"` I haven't been able to reproduce so far making any investigation limited.
(In reply to Méven Car from comment #6) > Could you run `kscreen-doctor -o` This gives: Output: 33 XWAYLAND0 enabled connected Unknown Modes: 36:2560x1440@60*! Geometry: 1080,240 2560x1440 Scale: 1 Rotation: 1 Output: 35 XWAYLAND1 enabled connected Unknown Modes: 37:1920x1080@60*! Geometry: 0,0 1080x1920 Scale: 1 Rotation: 8 > The issue is somehow KWin screens names are different from > QApplication::screens() Hm. That might have been caused by me running multiple screens. I also switch between X11 and Wayland sessions which might introduce further problems (for example when switching from Wayland to X11 I have to correct the screen orientation of my vertical screen due to a different issue and also X11 currently always makes that one primary). Might not be related at all, though.
*** Bug 432751 has been marked as a duplicate of this bug. ***
I'm seeing this with only a single screen. Trying to do a rectangular region screenshot fails and produces the following console output: t.qpa.wayland: Wayland does not support QWindow::requestActivate() Error calling KWin DBus interface: "org.kde.kwin.Screenshot.Error.ScreenMissing" "Screen not found" qt.qpa.wayland: Wayland does not support QWindow::requestActivate() qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
*** Bug 433213 has been marked as a duplicate of this bug. ***
Méven or David, could I ask one of you to take a look? thanks!
I think Meven has more knowledge here
*** Bug 433289 has been marked as a duplicate of this bug. ***
*** Bug 433547 has been marked as a duplicate of this bug. ***
If it helps, here is my screen info: $ kscreen-doctor -o Output: 33 XWAYLAND0 enabled connected Unknown Modes: 34:1920x1080@60*! Geometry: 0,0 1920x1080 Scale: 1 Rotation: 1 I get the same error msg when I launch from a terminal.
I'm unable to reproduce this at all, rectangular region and active window screenshots work fine for me. Running spectacle in the terminal, the only message I get when initiating any screenshot, including rectangular region, is: qt.qpa.wayland: Wayland does not support QWindow::requestActivate() I am on Plasma 5.21.1, Spectacle 20.12.2, Frameworks 5.79.0, Qt 5.12.2, Fedora 34.
Is it possible that it happens only with opensuse tumbleweed?
I can't repro this in KDE neon 5.21.1 (single-screen).
This bug only concerns multiple screens setups.
(In reply to Méven Car from comment #19) > This bug only concerns multiple screens setups. I should say mostly, Nate do you still reproduce this ? This patch could help this: https://invent.kde.org/plasma/kwin/-/merge_requests/692/diffs
I've connected my laptop to an external monitor and still can't reproduce this. I can take rectangular region screenshots. (There are other usability issues there, like the screenshot not being copied to the clipboard after I press Enter, but those seem like different bugs).
Yes, I can still reproduce this issue with a single screen with current git master, including the merged MR https://invent.kde.org/plasma/kwin/-/merge_requests/692
*** Bug 434127 has been marked as a duplicate of this bug. ***
Can you check if https://invent.kde.org/plasma/kwin/-/merge_requests/742 has fixed this issue?
I can confirm that it's fixed, hooray! I don't suppose that merge request is backportable? It looks pretty huge. But on the other hand it would be a shame to have this functionality broken for all of Plasma 5.21. Are there any targeted fixes we could apply?
Not sure what the connection between this and the issue is, but I found out that the bug can be worked-around by launching spectacle as: QT_QPA_PLATFORM=wayland spectacle On Wayland, it seems to prefer xcb. Rectangular selection was working on the XOrg session. What I found out too, is that Spectacle itself would be part of the screenshot when doing rectangular selection, it would be sometimes caught in the middle of the animation (IIRC the effect is called "Scale"). Also, just a reminder that we currently have two Wayland sessions for openSUSE: "Full Wayland" forces QT_QPA_PLATFORM=GDK_BACKEND=wayland, while the "Wayland" session doesn't touch QT_QPA_PLATFORM. This issue does not happen on the Full Wayland for the reason mentioned above.
*** Bug 435556 has been marked as a duplicate of this bug. ***
*** Bug 436218 has been marked as a duplicate of this bug. ***
*** Bug 436196 has been marked as a duplicate of this bug. ***
(In reply to Andrés B.S. from comment #26) > Not sure what the connection between this and the issue is, but I found out > that the bug can be worked-around by launching spectacle as: > QT_QPA_PLATFORM=wayland spectacle > > On Wayland, it seems to prefer xcb. Rectangular selection was working on the > XOrg session. > > What I found out too, is that Spectacle itself would be part of the > screenshot when doing rectangular selection, it would be sometimes caught in > the middle of the animation (IIRC the effect is called "Scale"). > > Also, just a reminder that we currently have two Wayland sessions for > openSUSE: > "Full Wayland" forces QT_QPA_PLATFORM=GDK_BACKEND=wayland, while the > "Wayland" session doesn't touch QT_QPA_PLATFORM. This issue does not happen > on the Full Wayland for the reason mentioned above. If someone wants to use the workaround but keep it working in X11 as well, I suggest: QT_QPA_PLATFORM="wayland;xcb" spectacle Or as an argument: spectacle -platform 'wayland;xcb' The argument should be suitable for .desktop files. However, changing org.kde.spectacle.desktop gets kwin angry: spectacle[16738]: Error calling KWin DBus interface: "org.kde.kwin.Screenshot.Error.NoAuthorized" "The process is not authorized to take a screenshot"
*** Bug 437137 has been marked as a duplicate of this bug. ***
*** Bug 437312 has been marked as a duplicate of this bug. ***
I noticed this bug is marked resolved, however I still get this issue on Wayland with Plasma 5.25 (Slackware Current). The workaround "QT_QPA_PLATFORM=wayland spectacle" does work for me (interestingly, "spectacle -platform 'wayland;xcb'" did not work), but a workaround isn't a fix. Additionally, when running with the workaround in console, the output gives the following complaint: "qt.qpa.wayland: Wayland does not support QWindow::requestActivate()". I don't know enough about Wayland or Qt to know if that's related, though.