Bug 485342 - Full-screen overlays causes the screen to go black
Summary: Full-screen overlays causes the screen to go black
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-10 20:15 UTC by dawidploch01
Modified: 2024-07-02 15:27 UTC (History)
7 users (show)

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


Attachments
Video of that issue (1.84 MB, video/x-matroska)
2024-04-10 20:15 UTC, dawidploch01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dawidploch01 2024-04-10 20:15:52 UTC
Created attachment 168362 [details]
Video of that issue

SUMMARY
I cannot make rectangular region screenshot beacuse of screen going black when i want to make it.

STEPS TO REPRODUCE
1. Open up spectacle
2. Press "Rectangular Region" button

OBSERVED RESULT
Screen going black for a few seconds repeatedly until i press escape, all other things works (Linux is registering mouse/keyboard input normally)

EXPECTED RESULT
I expect normal behavior of spectacle which worked in older versions

SOFTWARE/OS VERSIONS
- Linux: 6.8.4-arch1-1 (64-bit)
- (available in About System)
- KDE Plasma Version: 6.0.3
- KDE Frameworks Version: 6.0.0
- Qt Version: 6.6.3

ADDITIONAL INFORMATION
- GPU: Radeon RX 6600 with amdgpu driver
- vulkan-radeon installed
- Monitor: Acer VG240Y / 75hz / fhd
- CPU: i5-12400F
- I cannot test if it is driver issue or spectacle one, but i suppose it is.
- #400921 seems to be related
Comment 1 fanzhuyifan 2024-04-10 20:59:23 UTC
Is this on X11 or wayland?
Comment 2 dawidploch01 2024-04-10 21:20:37 UTC
(In reply to fanzhuyifan from comment #1)
> Is this on X11 or wayland?

I use wayland, this issue only occurs on it. When i'll change to X11 it work just fine
Comment 3 dawidploch01 2024-04-10 21:22:24 UTC
And also this issue only occurs when doing screenshot of rectangular region; recording rectangular region works fine
Comment 4 dawidploch01 2024-04-10 21:24:07 UTC
(In reply to dawidploch01 from comment #3)
> And also this issue only occurs when doing screenshot of rectangular region;
> recording rectangular region works fine

Nevermind, it doesn't work too. But it worked before i rebooted my pc
Comment 5 bugsie 2024-04-10 22:29:18 UTC
Can't confirm with same specs but with a 60Hz monitor. vulkan-radeon should not play a role. #400921 is about hidpi and 2x scale which isn't mentioned here. Test in a new user account.
Comment 6 dawidploch01 2024-04-11 12:05:22 UTC
(In reply to bugsie from comment #5)
> Can't confirm with same specs but with a 60Hz monitor. vulkan-radeon should
> not play a role. #400921 is about hidpi and 2x scale which isn't mentioned
> here. Test in a new user account.

same issue on new account, i found out that i have similar issue on telegram-desktop when i press any sent photo to view it in fullscreen, so this issue may not be related to spectacle.
Comment 7 dawidploch01 2024-04-11 20:36:22 UTC
i found out that this issue exists in every fullscreen overlay (for example: watching youtube video causes black screen every few minutes, telegram-dekstop when viewing photo in fullscreen mode etc).
Switched from archlinux back to: 
Operating System: Fedora Linux 39
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.8.4-200.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i5-12400F
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B760M DS3H DDR4
Issue went away after that. Later i tried reinstalling archlinux, and on fresh install i had same issue
Comment 8 Nate Graham 2024-04-11 21:59:26 UTC
Thanks, then the issue is either in your GPU drivers, something else in the Kernel, or KWin. Moving to KWin so the devs can see if it's there or somewhere else.
Comment 9 Zamundaaa 2024-04-11 22:41:30 UTC
Does your display support FreeSync? If so, does disabling adaptive sync stop the problem from happening?
Comment 10 dawidploch01 2024-04-12 12:45:24 UTC
(In reply to Zamundaaa from comment #9)
> Does your display support FreeSync? If so, does disabling adaptive sync stop
> the problem from happening?

Disabling adaptive sync fixes that issue.
Toggling FreeSync doesn't change anything.
Comment 11 dawidploch01 2024-04-12 12:52:58 UTC
(In reply to Zamundaaa from comment #9)
> Does your display support FreeSync? If so, does disabling adaptive sync stop
> the problem from happening?

Changing FreeSync in monitor settings makes no difference.
Changing adaprive sync to Never fixes all issues.
Changing adaptive sync to Automatic makes issue described here.
Changing adaptive sync to Always just blacks out entire screen until change has been reverted.
Comment 12 Zamundaaa 2024-04-16 23:10:58 UTC
It's most likely a kernel bug then (and even if it's something odd with the display instead, the kernel driver is the place for workarounds for such issues). Please report it at https://gitlab.freedesktop.org/drm/amd/-/issues
Comment 13 Rocnir 2024-04-26 08:58:36 UTC
Have the exact same bug. My system:

Operating System: Solus 4.5
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.6.3
Kernel Version: 6.8.7-287.current (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i7-1355U
Memory: 62,6 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

Monitor: AOC 75hz
Comment 14 Rocnir 2024-04-26 11:38:33 UTC
Forgot to explicitly mention that I'm on Intel, not AMD, as you can see from my system info.
Comment 15 Zamundaaa 2024-07-02 15:27:13 UTC
Please report that problem to https://gitlab.freedesktop.org/drm/i915/kernel/-/issues then