Bug 359734 - "Track Mouse" feature shows non-transparent background rotating.
Summary: "Track Mouse" feature shows non-transparent background rotating.
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: 5.22.5
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL: https://i.imgur.com/xXON5lP.gif
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-24 00:00 UTC by J Lee
Modified: 2021-10-22 06:55 UTC (History)
1 user (show)

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


Attachments
output of "qdbus org.kde.KWin /KWin supportInformation" (4.87 KB, text/plain)
2016-02-25 13:18 UTC, J Lee
Details
copy of /var/log/Xorg.0.log (25.75 KB, text/plain)
2016-02-25 22:48 UTC, J Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Lee 2016-02-24 00:00:51 UTC
The track mouse animation shows a rotating image.  It appears that the transparent background of the icon overlay used in this animation is no longer transparent.  This used to work correctly (two rotating semi-circles, one black and one white).  Now it is one rotating black semi-circle over a rotating black square.

Reproducible: Always

Steps to Reproduce:
1.Turn on Track Mouse
2. Press the hotkey combination to find mouse
3. Watch the ugly animation.

Actual Results:  
As mentioned above - the animation for showing the mouse is ugly - not rendering correctly.  

Expected Results:  
The animation would perform as in the movie from the "Track Mouse" settings page in Desktop Behaviour --> Desktop Effects.
Comment 1 Martin Flöser 2016-02-25 07:00:37 UTC
works fine here.

Can you please post the output of
qdbus org.kde.KWin /KWin supportInformation
Comment 2 Thomas Lübking 2016-02-25 07:21:00 UTC
Also check /usr/share/kwin/tm_*.png (the used images)
Comment 3 J Lee 2016-02-25 13:18:23 UTC
Created attachment 97552 [details]
output of "qdbus org.kde.KWin /KWin supportInformation"
Comment 4 J Lee 2016-02-25 13:19:45 UTC
When viewing tm_inner.png and tm_outer.png with gwenview they both appear to be correct  (partial circles on transparent background).
Comment 5 Thomas Lübking 2016-02-25 13:23:02 UTC
> Compositing Type: XRender

Happens.
Comment 6 Thomas Lübking 2016-02-25 14:04:56 UTC
nvidia blob? (in doubt attach /var/log/Xorg.0.log)
Comment 7 J Lee 2016-02-25 22:48:49 UTC
Created attachment 97558 [details]
copy of /var/log/Xorg.0.log
Comment 8 Thomas Lübking 2016-02-25 23:05:01 UTC
Nope, Broadwell/SNA - not a driver issue.

> This used to work correctly
Can you provide more information about this?
Notably whether this may have "broken" due to the (deliberate?) switch from GL to XRender?
Can you confirm it ever worked on the XRender backend in the KF5 based KWin?
Comment 9 J Lee 2016-02-25 23:09:24 UTC
OK - so switched Compositor to OpenGL 3.1 and the problem is resolved.  Not sure why or how it got set to xRender.
Comment 10 J Lee 2016-02-26 15:35:12 UTC
> Can you confirm it ever worked on the XRender backend in the KF5 based KWin?

I never looked at these settings before, (compositor), so they would have been set at the default settings.  I know that this used to work fine until about two weeks ago.  After a system update (I think it was one of the Xorg updates) it broke.  When no patches came, I submitted this report.

My installation is about one month old.

Not sure if it is relevant, but I've got Deepin installed as an alternative DE - would this have broken something?
Comment 11 Thomas Lübking 2016-02-26 15:38:10 UTC
Means it's likely been broken all KF5

> Not sure if it is relevant, but I've got Deepin installed as an alternative DE - would this have broken something?
Nope.
Comment 12 Thomas Lübking 2016-02-29 16:36:16 UTC
There's something terribly odd here.

The alpha channel actually works "somehow", but it seems it's interleaved with the color channels.
Blue, red or black show a reasonable alpha, but even a mid gray (160,160,160) with a supposed alpha of 16 is rather opaque (maybe 160?) - and white!

Converting the image to QImage::Format_ARGB32_Premultiplied or QImage::Format_RGBA8888 (it's QImage::Format_ARGB32 and I explicitly painted the content to avoid loading issues) has no impact.

static xcb_render_picture_t createPicture(xcb_pixmap_t pix, int depth)
always takes a depth of 32 and returns the same format (regardless of the image color)

On top of that, it looks somewhat related to the composition - yellow on black seems far more opaque than yellow on white, XCB_RENDER_PICT_OP_ATOP instead of XCB_RENDER_PICT_OP_OVER doesn't change that.
Comment 13 Justin Zobel 2021-03-10 00:32:36 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 14 raymo 2021-10-15 18:00:06 UTC
I can confirm that this issue persists for me, regardless of which compositing method I use. Here's what I see: https://i.imgur.com/xXON5lP.gif
Comment 15 raymo 2021-10-21 22:18:17 UTC
Seems like it was because I was using xrender. Since xrender was removed as an option in Plasma 5.23 I don't think this issue will happen again.
Comment 16 Vlad Zahorodnii 2021-10-22 06:55:43 UTC
marking as `"fixed"`