[radeon] Distorted mouse pointer under Wayland in Kubuntu 22.10

Bug #1990783 reported by Gannet
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE Base Workspace
Fix Released
Medium
kwin (Ubuntu)
New
Undecided
Unassigned

Bug Description

After upgrading to Kubuntu 22.10 Kinetic dev. I found mouse pointer distorted. Please, look at attached screenshot. Under X session mouse pointer looks as it should be.

Revision history for this message
In , L1ttleofficial (l1ttleofficial) wrote :

Created attachment 150380
Camera image of the mouse cursor. This cannot be seen on screenshots

SUMMARY
On Wayland and on Wayland only, the mouse cursor has strong graphical artifacts;
The result cannot be captured on a screenshot and is only visible on the screen itself;
The artifact disappears when using the Zoom effect;
This occurs independently of the cursor theme selected.

STEPS TO REPRODUCE
1. Log into a Plasma Wayland session

OBSERVED RESULT
The mouse cursor is stretched vertically and has a square of artifacts around it

EXPECTED RESULT
The mouse cursor looks as intended

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20220702
(available in About System)
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
KWin support information: https://bytebin.lucko.me/kPsC2hqMJS

Revision history for this message
In , Bug-janitor (bug-janitor) wrote :

A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2646

Revision history for this message
In , Xaver Hugl (xaver-hugl) wrote :

Git commit 7f04ea578f6b59f36f6321669a8eab3750e021c5 by Xaver Hugl.
Committed on 13/07/2022 at 19:10.
Pushed by zamundaaa into branch 'master'.

backends/drm: handle broken legacy drivers better

Some legacy drivers either don't accept gbm buffers suitable for cursors,
or don't handle them properly. In order to work around that, always do a
CPU import with legacy and use dumb buffers instead.
Related: bug 453860

M +6 -2 src/backends/drm/egl_gbm_cursor_layer.cpp
M +17 -16 src/backends/drm/egl_gbm_layer_surface.cpp
M +11 -6 src/backends/drm/egl_gbm_layer_surface.h

https://invent.kde.org/plasma/kwin/commit/7f04ea578f6b59f36f6321669a8eab3750e021c5

Revision history for this message
In , Xaver Hugl (xaver-hugl) wrote :

Git commit f3c1facdc477a18ff5c528972ffef5d09a3a6a35 by Xaver Hugl.
Committed on 13/07/2022 at 20:35.
Pushed by zamundaaa into branch 'Plasma/5.25'.

backends/drm: handle broken legacy drivers better

Some legacy drivers either don't accept gbm buffers suitable for cursors,
or don't handle them properly. In order to work around that, always do a
CPU import with legacy and use dumb buffers instead.
Related: bug 453860

(cherry picked from commit 7f04ea578f6b59f36f6321669a8eab3750e021c5)

M +6 -2 src/backends/drm/egl_gbm_cursor_layer.cpp
M +17 -16 src/backends/drm/egl_gbm_layer_surface.cpp
M +11 -6 src/backends/drm/egl_gbm_layer_surface.h

https://invent.kde.org/plasma/kwin/commit/f3c1facdc477a18ff5c528972ffef5d09a3a6a35

Revision history for this message
In , L1ttleofficial (l1ttleofficial) wrote :

Partially fixed in 5.25.4. There are no longer colorful artifacts around the mouse cursor, but the cursor itself is still stretched horizontally & vertically and has a scanline effect

Revision history for this message
In , L1ttleofficial (l1ttleofficial) wrote :

(In reply to l1ttleofficial from comment #4)
> Partially fixed in 5.25.4. There are no longer colorful artifacts around the
> mouse cursor, but the cursor itself is still stretched horizontally &
> vertically and has a scanline effect

Apologies for misinformation, I submitted the comment in a hurry and thought I could edit it later.
- Artifacts still may appear using the mouse cursor, reusing previous screen content (can't replicate consistently)
- The cursor isn't "stretched" horizontally, only vertically.
- "stretched" and "scanline effect" is actually a 1 pixel gap between each pixel of the cursor texture
- Any issues disappear when zooming in

Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1990783/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Gannet (ken20001)
affects: ubuntu → kwin (Ubuntu)
no longer affects: plasma-wayland-protocols (Ubuntu)
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
Gannet (ken20001) wrote :
Revision history for this message
In , Xaver Hugl (xaver-hugl) wrote :

*** Bug 459679 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Bug-janitor (bug-janitor) wrote :

A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3019

Revision history for this message
In , Gannet (ken20001) wrote :

There is screenshot in duplicated report.

tags: added: kinetic
tags: added: wayland wayland-session
tags: added: radeon
summary: - distorted mouse pointer under Wayland in Kinetic
+ [radeon] Distorted mouse pointer under Wayland in Kubuntu 22.10
no longer affects: wayland (Ubuntu)
tags: added: cursor
Changed in kdebase-workspace:
importance: Unknown → Medium
Revision history for this message
In , Vlad-zahorodnii (vlad-zahorodnii) wrote :

Git commit 18a72f7187ea2629671449ff6202292225235e82 by Vlad Zahorodnii, on behalf of Xaver Hugl.
Committed on 04/10/2022 at 07:33.
Pushed by vladz into branch 'master'.

backends/drm: also force linear layout for dumb buffer cursors

While it usually shouldn't make a difference, it ensures that the buffer import
always works properly

M +1 -1 src/backends/drm/drm_egl_layer_surface.cpp

https://invent.kde.org/plasma/kwin/commit/18a72f7187ea2629671449ff6202292225235e82

Revision history for this message
In , Vlad-zahorodnii (vlad-zahorodnii) wrote :

Git commit fc00487b6bdc9756714dfc69b65caee937a0097a by Vlad Zahorodnii, on behalf of Xaver Hugl.
Committed on 04/10/2022 at 08:21.
Pushed by vladz into branch 'Plasma/5.26'.

backends/drm: also force linear layout for dumb buffer cursors

While it usually shouldn't make a difference, it ensures that the buffer import
always works properly

(cherry picked from commit 18a72f7187ea2629671449ff6202292225235e82)

M +1 -1 src/backends/drm/drm_egl_layer_surface.cpp

https://invent.kde.org/plasma/kwin/commit/fc00487b6bdc9756714dfc69b65caee937a0097a

Revision history for this message
In , Xaver Hugl (xaver-hugl) wrote :

Can someone with an affected setup confirm whether or not it's still an issue with 5.26?

Revision history for this message
In , Gannet (ken20001) wrote :

I am not able to verify as there are no packages for 5.26 in Kubuntu 22.10 yet. I am still on 5.25.5 still.

Revision history for this message
In , Xaver Hugl (xaver-hugl) wrote :

.

Changed in kdebase-workspace:
status: Unknown → Incomplete
Revision history for this message
In , Gannet (ken20001) wrote :

Hello. I can confirm, in KDE 5.26 mouse cursor is ok. Thank you.

Revision history for this message
In , Xaver Hugl (xaver-hugl) wrote :

great!

Changed in kdebase-workspace:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.