Bug 480888 - Area capture selector goes under the floating panel
Summary: Area capture selector goes under the floating panel
Status: RESOLVED WORKSFORME
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.01.95
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Gurenko Alex
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-05 10:52 UTC by Gurenko Alex
Modified: 2024-10-19 03:47 UTC (History)
6 users (show)

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


Attachments
Photo of the issue (1.81 MB, image/jpeg)
2024-02-05 10:52 UTC, Gurenko Alex
Details
System info from virtual machine (387.40 KB, image/png)
2024-02-06 12:41 UTC, xduanerx
Details
Virtual machine fixed panel reproduced issue (607.57 KB, image/png)
2024-02-06 12:42 UTC, xduanerx
Details
Virtual machine floating pannel reproduced issue (587.70 KB, image/png)
2024-02-06 12:42 UTC, xduanerx
Details
vm-rc2-screenshot (1.43 MB, image/png)
2024-02-24 22:46 UTC, Gurenko Alex
Details
intel-bare-metal-rc2 (1.06 MB, image/jpeg)
2024-02-24 23:06 UTC, Gurenko Alex
Details
amd-desktop-rc2 (1.25 MB, image/jpeg)
2024-02-24 23:14 UTC, Gurenko Alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gurenko Alex 2024-02-05 10:52:43 UTC
Created attachment 165559 [details]
Photo of the issue

SUMMARY

When capturing area screenshot floating on top panel covers the area selector. The screenshot comes out correct though.


STEPS TO REPRODUCE
1. Enable floating panel
2. Just to be sure, move it to the top
3. Try capture the said panel

OBSERVED RESULT

Selector goes under the floating panel

EXPECTED RESULT

Selector is above everything else

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 40
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Kernel Version: 6.8.0-0.rc2.19.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: LENOVO
Product Name: 20QUS10L16
System Version: ThinkPad P1 Gen 2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-02-05 21:15:52 UTC
Cannot reproduce with those steps. Any chance you could attach a phone video of yourself reproducing the bug?
Comment 2 Gurenko Alex 2024-02-06 00:11:29 UTC
(In reply to Nate Graham from comment #1)
> Cannot reproduce with those steps. Any chance you could attach a phone video
> of yourself reproducing the bug?

Here is a video: https://e.pcloud.link/publink/show?code=XZPwoeZbm8XvysprWfDOHPhFuTJnbKAzjp7
Comment 3 xduanerx 2024-02-06 03:33:55 UTC
Hi Alex,

I have seen your video, under my system:

Operating System: Kubuntu 23.10
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.0-15-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4310U CPU @ 2.00GHz
Memory: 15.5 Gio of RAM
Graphics Processor: Mesa Intel® HD Graphics 4400
Manufacturer: Hewlett-Packard
Product Name: HP EliteBook 850 G1
System Version: A3009DD10303

I don't have the issue, Spectacle runs as expected. Same under X11.
Comment 4 Gurenko Alex 2024-02-06 08:27:27 UTC
(In reply to xduanerx from comment #3)
> Hi Alex,
> 
> I have seen your video, under my system:
> 
> Operating System: Kubuntu 23.10
> KDE Plasma Version: 5.27.8
> KDE Frameworks Version: 5.110.0
> Qt Version: 5.15.10
> Kernel Version: 6.5.0-15-generic (64-bit)
> Graphics Platform: Wayland
> Processors: 4 × Intel® Core™ i5-4310U CPU @ 2.00GHz
> Memory: 15.5 Gio of RAM
> Graphics Processor: Mesa Intel® HD Graphics 4400
> Manufacturer: Hewlett-Packard
> Product Name: HP EliteBook 850 G1
> System Version: A3009DD10303
> 
> I don't have the issue, Spectacle runs as expected. Same under X11.

It's working perfectly fine for me on Plasma 5, this is what I experience on Plasma 6 RC1 & RC2
Comment 5 xduanerx 2024-02-06 12:41:38 UTC
Created attachment 165607 [details]
System info from virtual machine

System info from virtual machine with reproduced bug.
Comment 6 xduanerx 2024-02-06 12:42:09 UTC
Created attachment 165608 [details]
Virtual machine fixed panel reproduced issue

Virtual machine fixed panel reproduced issue
Comment 7 xduanerx 2024-02-06 12:42:52 UTC
Created attachment 165609 [details]
Virtual machine floating pannel reproduced issue

Virtual machine floating pannel reproduced issue
Comment 8 xduanerx 2024-02-06 12:45:20 UTC
(In reply to Gurenko Alex from comment #4)
> (In reply to xduanerx from comment #3)
> > Hi Alex,
> > 
> > I have seen your video, under my system:
> > 
> > Operating System: Kubuntu 23.10
> > KDE Plasma Version: 5.27.8
> > KDE Frameworks Version: 5.110.0
> > Qt Version: 5.15.10
> > Kernel Version: 6.5.0-15-generic (64-bit)
> > Graphics Platform: Wayland
> > Processors: 4 × Intel® Core™ i5-4310U CPU @ 2.00GHz
> > Memory: 15.5 Gio of RAM
> > Graphics Processor: Mesa Intel® HD Graphics 4400
> > Manufacturer: Hewlett-Packard
> > Product Name: HP EliteBook 850 G1
> > System Version: A3009DD10303
> > 
> > I don't have the issue, Spectacle runs as expected. Same under X11.
> 
> It's working perfectly fine for me on Plasma 5, this is what I experience on
> Plasma 6 RC1 & RC2

I spun a Fedora 40 VM this morning and the issue is present on fixed and floating pannel. I have added screencaptures.
Comment 9 Noah Davis 2024-02-09 19:23:09 UTC
I am unable to reproduce this with the master and release/24.02 branches of Spectacle.

Operating System: openSUSE Tumbleweed 20240201
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.1
Kernel Version: 6.7.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Eluktronics
Product Name: THINN-15
Comment 10 Bug Janitor Service 2024-02-24 03:46:31 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 11 Noah Davis 2024-02-24 22:39:50 UTC
Resetting the NEEDSINFO timer since we still don't have enough info, but it's also not clear what info to ask for.
Comment 12 Gurenko Alex 2024-02-24 22:46:26 UTC
Created attachment 166073 [details]
vm-rc2-screenshot

I can still reproduce this on the VM (Fedora 40 with Plasma 6 RC2), see screenshot. I don't have it installed on my laptop with Intel graphics, so I cannot double check there, I've tried live USB with same image on my AMD GPU-based Desktop and the issue is not there, so I guess it depends on the gpu driver in use.
Comment 13 Gurenko Alex 2024-02-24 22:49:32 UTC
The VM I use is qemu with kvm, llvmpipe for graphics. I have a feeling it has something to do with the floating taskbar, it feel like it tries to defloat on screenshot and maybe there is a race condition: screenshot rectangles gets drawn, then the taskbar defloats and is drawn on top of that?
Comment 14 Noah Davis 2024-02-24 23:03:31 UTC
Race condition is a plausible theory. I'll have to keep an eye out for that in case it's true.
Comment 15 Gurenko Alex 2024-02-24 23:06:34 UTC
Created attachment 166075 [details]
intel-bare-metal-rc2

Just tried RC2 from the live usb on same Intel laptop from the original report and it's still reproducible
Comment 16 Gurenko Alex 2024-02-24 23:07:36 UTC
Huh, now when I look at those screen shot you can actually see there are double frames for the panel: the floating one is still there and then there is a defloated one
Comment 17 Gurenko Alex 2024-02-24 23:14:15 UTC
Created attachment 166077 [details]
amd-desktop-rc2

Okay, never mind my GPU driver theory, probably it was an earlier build that worked or something else was different. Here is it's also reproducible on a desktop with AMD GPU. Given the early screenshot it wasn't visible that the panel is different, maybe with later builds it became more apparent that there is state change during the screenshot, basically area capture is treated as a full screen app for a second.
Comment 18 Noah Davis 2024-02-25 04:50:25 UTC
It is a fullscreen app with a window for each screen since Spectacle 23.04.
Comment 19 Gurenko Alex 2024-02-25 11:46:30 UTC
There is something very odd happening: I've booted my existing F39 with 5.27.10 and spectacle 23.08.5-1.fc39 which we just got this week in Fedora testing and the issue is there, however I've downgraded it to the previously available 23.08.1-1.fc39 and the issue didn't reproduce, I've upgraded the package back and it was still working. I've rebooted afterwards and now it's not working neither with old version, nor after kicking package version back and forth. That's on my AMD Desktop system
Comment 20 Noah Davis 2024-02-26 21:40:17 UTC
If you're able to click on the panel normally when spectacle is doing a rectangle capture, then it's probably not a GPU issue.
Comment 21 Carsten 2024-03-24 11:31:01 UTC
I#ve the same issue. It happens when I scale my screen size down to 75%.
Comment 22 David Pérez 2024-09-17 09:54:31 UTC
I don't know if it is the same bug, but for spectacle 24.08.1 and Plasma 6.1.5, whenever I try to select a rectangular region, the screen goes black and I see nothing.
Comment 23 David Pérez 2024-09-17 09:54:59 UTC
Using Tubleweed.
Comment 24 David Pérez 2024-09-17 09:55:40 UTC
I have integrated AMD graphcis.
Comment 25 David Pérez 2024-09-17 09:56:00 UTC
I'm using Wayland.
Comment 26 Noah Davis 2024-09-18 14:11:29 UTC
(In reply to David Pérez from comment #22)
> I don't know if it is the same bug, but for spectacle 24.08.1 and Plasma
> 6.1.5, whenever I try to select a rectangular region, the screen goes black
> and I see nothing.

Different bug. Yours sounds like bug 493222.
Comment 27 Noah Davis 2024-09-18 14:13:35 UTC
Is the original bug here still reproducible for anyone? I cannot reproduce it.
Comment 28 Gurenko Alex 2024-09-18 14:40:26 UTC
I still saw the issue few weeks ago, it got more consistent (as in it generally works), right now does not reproduce with latest versions of everything, let me go over my devices (amdgpu, intel gpu, arm mali gpu) and see where we stand with the latest stack. I just got all my devices to Fedora 41 beta with fresh mesa.
Comment 29 Gurenko Alex 2024-09-19 11:10:46 UTC
Tested on following software configuration:

Operating System: Fedora Linux 41
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.11.0-63.fc41.x86_64 (64-bit)
Graphics Platform: Wayland

Worked as expected with amdgpu (RX 7900XTX), i915 (Intel UHD620 on Lenovo P1 gen2), Pinebook Pro. Works with both floating and non-floating bar right now. I guess we can close it as it was fixed at some point recently.
Comment 30 Bug Janitor Service 2024-10-04 03:47:15 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 31 Bug Janitor Service 2024-10-19 03:47:36 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.