Bug 485288 - Switching virtual desktop with window grabbed creates visual glitches and eventually broke DE
Summary: Switching virtual desktop with window grabbed creates visual glitches and eve...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-09 17:23 UTC by zam7am7
Modified: 2024-04-12 17:52 UTC (History)
2 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 zam7am7 2024-04-09 17:23:12 UTC
SUMMARY


STEPS TO REPRODUCE
1. Install openSUSE KDE Plasma
2. Turn on switching workspaces via edges
3. Drag a window around while switching workspaces.

OBSERVED RESULT


EXPECTED RESULT
Being able to fluidly switch between 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 zam7am7 2024-04-09 17:30:51 UTC
My bad, pressed enter before finishing the report. (and I cant find an edit option)

To continue: 

OBSERVED RESULT
First some graphical glitches near the top border of the second virtual desktop, which expanded to the entire desktop. At some point it froze so I had to restart the computer. Login was 100% fine, however once logged in (so as soon as entering KDE splash screen) it would become very unresponsive (a lot of stuttering) and slow (KDE having to load in over 5min), basically making the DE unusable.  (Though the graphical glitches aren't visible anymore)

EXPECTED RESULT
Being able to fluidly switch between virtual desktops while grabbing a window without any of the aforementioned issues.
SOFTWARE/OS VERSIONS

ADDITIONAL INFORMATION
I tried:
- restarting 3 times, each being an unsuccessful fix
Comment 2 Nate Graham 2024-04-09 20:18:55 UTC
Please fill in the SOFTWARE/OS VERSIONS section and also tell us what GPU you're using.
Comment 3 zam7am7 2024-04-09 20:37:48 UTC
SOFTWARE/OS VERSIONS
Linux: openSUSE Tumbleweed
KDE Plasma Version: 6.0.2

Unfortunately can't give any more details on software, since I can't access it anymore.

Hardware:
hp-laptop with
AMD Ryzen 5 5600H with Radeon Graphics (12) @ 3.300GHz
GPU: AMD ATI 06:00.0 Cezanne
GPU: NVIDIA GeForce RTX 3050 Ti Mobile
Comment 4 Nate Graham 2024-04-09 20:40:40 UTC
Why can't you access it anymore? What happened?
Comment 5 zam7am7 2024-04-10 13:02:17 UTC
(In reply to Nate Graham from comment #4)
> Why can't you access it anymore? What happened?

Maybe I wasn't clear enough, but it was so unresponsive, I couldn't really open any applications. So what I told about the software is what I thought was the case without actually being able to double check.

Anyway, yesterday it was totally unusable.
However, today I started openSUSE up again - and it was completely fixed, despite not fixing it myself. I am quite confused as to how it worked out. (since I restarted it a couple of times yesterday)
So now I can give more detailed information:

SOFTWARE/OS VERSIONS
Linux: openSUSE Tumbleweed
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Graphics Platform: Wayland

And it says that my graphics processor is AMD Radeon Graphics.


I also tried to recreate the bug. 
1. System Settings -> Mouse & Touchpad -> Screen Edges -> Switch desktop on edge: Always Enabled
2. Dragged a window and switched via the method I turned on in the previous step. 

OBSERVATION
After dragging it around up and down between two virtual desktops for a multitude of times, I encountered the visual glitch again. 
It mainly distorts the panel (which I have at the top) and the wallpaper. However it sometimes distorts the whole desktop. (Important to keep in mind, is that it only affects the desktop, applications on top of it show no visual issues, like the browser I am using at this moment to write this comment.
Furthermore, like I indicated, it seems to be correlated to the panel. I have two screens and only the main screen with a panel has this issue, while the other screen has no issue whatsoever.
Comment 6 Nate Graham 2024-04-11 16:11:36 UTC
So it's fixed now for you? You can't reproduce the issue anymore?
Comment 7 zam7am7 2024-04-12 08:51:21 UTC
(In reply to Nate Graham from comment #6)
> So it's fixed now for you? You can't reproduce the issue anymore?

I tried yesterday again, but nothing happened. Later after a reboot the DE was unusable again (Wayland). Switching to X11 fixed this, though that is not a solution that I like. After some research, I figured that it might be an NVIDIA-Wayland issue, so I checked for drivers and installed any that might be missing (by searching manually in the terminal). One day later (today) I tried Wayland again and there are not visible issues whatsoever. 

In conclusion I just won't use the "Switch desktop on edge" feature, because it seems to possibly cause issues. Regarding what exactly solved the issue, I am not sure. Might be missing NVIDIA-packages or simply non-NVIDIA-compatible features.
Comment 8 Nate Graham 2024-04-12 17:52:19 UTC
Ok, for now let's close this since it's not clear what might be a KDE bug. For future issues I might recommend asking at https://discuss.kde.org. Thanks!