Bug 431548

Summary: Spectacle captures some other screen
Product: [Applications] Spectacle Reporter: chdslv
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED WORKSFORME    
Severity: major CC: kde, meven29, michal.zubkowicz, nicolas.fella, prayagjain2
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: different screens

Description chdslv 2021-01-13 16:15:39 UTC
SUMMARY
Spectacle captures some other page, and then stays put. 

Spectacle
Version 20.12.1


STEPS TO REPRODUCE
1. Either click on the button (Druck), or start it manually, it shows some other screen, even some screen that's already closed.



SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Endeavour OS/Arch
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Prayag Jain 2021-01-13 17:47:08 UTC
Please provide a screenshot and give more precise steps to reproduce this bug.
Comment 2 chdslv 2021-01-13 18:42:13 UTC
Created attachment 134814 [details]
different screens
Comment 3 chdslv 2021-01-13 18:43:30 UTC
The screen in the Spectacle is long off. This web page is below the Spectacle window.
Comment 4 chdslv 2021-01-14 11:37:05 UTC
This is a terrible problem, not being able to use screenshot. At the moment I am using GIMP to take screenshots. Reinstalled Spectacle few times, but it doesn't work as it should. Is there any other KDE screenshot app?
Comment 5 Nicolas Fella 2021-01-14 13:56:37 UTC
Are you using X11 or Wayland?
Comment 6 chdslv 2021-01-14 14:34:47 UTC
X11
Comment 7 Nate Graham 2021-01-14 16:49:46 UTC
Thanks. Do you have multiple screens connected to this computer?
Comment 8 chdslv 2021-01-14 17:03:43 UTC
No. It is a Lenovo laptop.
By the way, I tested the matter by installing Flameshot, and it also has the same problem. So, could be problem of Endeavour/Arch system with KDE Plasma.

I just tested Spectacle on OpenSuse Tumbleweed. Spectacle works very well.  With EndeavourOS/Arch, Spectacle doesn't get cleared, when closed.
Comment 9 chdslv 2021-01-14 17:31:46 UTC
Is there a way to clear the cache of Spectacle manually? Or is there another app/dependency within Spectacle that has to be cleared?
Comment 10 chdslv 2021-01-26 14:12:57 UTC
I changed the compositor to Xrender and Spectacle worked. It doesn't work if it is on OpenGL 2.0 or 3.1, Spectacle gets stuck. Do you see any reason for this?
Comment 11 Méven Car 2021-01-26 14:32:35 UTC
> I changed the compositor to Xrender and Spectacle worked. It doesn't work if it is on OpenGL 2.0 or 3.1, Spectacle gets stuck. Do you see any reason for this?

Do you have anything outputted to the commandline ?
Comment 12 chdslv 2021-01-26 15:20:17 UTC
(In reply to Méven Car from comment #11)
> > I changed the compositor to Xrender and Spectacle worked. It doesn't work if it is on OpenGL 2.0 or 3.1, Spectacle gets stuck. Do you see any reason for this?
> 
> Do you have anything outputted to the commandline ?

How to get that done?
Comment 13 Méven Car 2021-01-26 16:22:25 UTC
> How to get that done?

You open a terminal (like konsole), then type in spectacle and hit the ENTER/Return key, this will launch spectacle.

Then copy what comes out, once you have reproduced the issue.
Comment 14 chdslv 2021-01-26 17:05:09 UTC
Spectacle opens through the terminal. I tried that before to find out, if something is missing.
Comment 15 Méven Car 2021-01-27 08:38:06 UTC
(In reply to chdslv from comment #14)
> Spectacle opens through the terminal. I tried that before to find out, if
> something is missing.

What is you screen configuration ?
I.e your `kscreen-doctor -o` output.
Comment 16 chdslv 2021-01-27 10:13:37 UTC
kscreen-doctor -o
Output: 67 eDP1 enabled connected primary Panel Modes: 377:1920x1080@60 378:1680x1050@60 379:1680x1050@60 380:1400x1050@60 381:1600x900@60 382:1600x900@60 383:1600x900@60 384:1280x1024@60 385:1400x900@60 386:1400x900@60 387:1280x960@60 388:1368x768@60 389:1368x768@60 390:1368x768@60 391:1280x800@60 392:1280x800@60 393:1280x720@60 394:1280x720@60 395:1280x720@60 396:1024x768@60 397:1024x576@60 398:1024x576@60 399:1024x576@60 400:960x540@60 401:960x540@60 402:960x540@60 403:800x600@60 404:800x600@56 405:864x486@60 406:864x486@60 407:864x486@60 408:640x480@60 409:720x405@60 410:720x405@60 411:720x405@59 412:640x360@60 413:640x360@59 414:640x360@60 71:1920x1080@60*! Geometry: 0,0 1920x1080 Scale: 1 Rotation: 1 primary
Output: 68 HDMI1 disabled disconnected  HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 
Output: 69 VIRTUAL1 disabled disconnected  Unknown Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1
Comment 17 Méven Car 2021-01-27 10:35:08 UTC
I suspect https://invent.kde.org/plasma/kwin/-/merge_requests/597 to fix this issue.
This is part of Plasma 5.21 beta.
But I would need confirmation.

Does it happen when you use "current screen" option that is available when you have multiple screens active.
Comment 18 chdslv 2021-01-27 14:02:53 UTC
(In reply to Méven Car from comment #17)
> I suspect https://invent.kde.org/plasma/kwin/-/merge_requests/597 to fix
> this issue.
> This is part of Plasma 5.21 beta.
> But I would need confirmation.
> 
> Does it happen when you use "current screen" option that is available when
> you have multiple screens active.

I don't have multiple screens.
Comment 19 Bug Janitor Service 2021-02-11 04:33:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 20 Bug Janitor Service 2021-02-26 04:33:16 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 21 Michał Zubkowicz 2022-11-09 11:35:49 UTC
I can confirm this bug and it's happening on my laptop. I've reported few days ago another bug report about this:
https://bugs.kde.org/show_bug.cgi?id=461432