Bug 354890 - Blinking textures when switching windows with Alt+Tab
Summary: Blinking textures when switching windows with Alt+Tab
Status: RESOLVED DUPLICATE of bug 307112
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: 5.4.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-05 10:33 UTC by Lastique
Modified: 2015-11-07 18:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
An example of the decoration artefact (3.50 MB, image/png)
2015-11-05 10:54 UTC, Lastique
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lastique 2015-11-05 10:33:40 UTC
When switching windows with Alt+Tab with no tabbox activated or a tabbox mode that involves the window highlight effect I can often see that parts of the inactive windows (which are half-transparent at the time) are blinking as if a couple of frames from the fade out animation are stuck in a loop. This affects only the window decoration (i.e. the decoration is blinking but not the window contents). Sometimes only portion of the decoration is blinking, but at other times the whole decoration is affected.

Reproducible: Always

Steps to Reproduce:
1. Disable the tabbox effect at System Settings -> Window Management -> Task Switcher. Alternatively, you can enable one of the effects that still involve the highlight effect ("Thumbnails", "Text only", "Informative", etc.).
2. Have a few open windows on the desktop. Some maximized, others not maximized at different positions and sizes.
3. Press Alt+Tab and hold Alt. Keep pressing Tab to switch between windows and look at the inactive half-transparent windows.

Actual Results:  
The decorations of the inactive windows are blinking.

Expected Results:  
The blinking should not be present, the window decorations should be drawn correctly for every frame.

Kubuntu 15.10, x86_64, Nvidia drivers 355.11, Core i7 2600K, 980GTX, 16 GiB RAM, no swap.
Comment 1 Lastique 2015-11-05 10:48:27 UTC
I can add that the blinking can be worked around by adding "KWIN_USE_BUFFER_AGE=0" to /etc/environment, although in this case I can sometimes see some other effects on the inactive window decorations. It looks like some portions of the decorations become less transparent and maybe filled with color (I can't tell for sure as in my case the decorations are grey and the effect looks like grey rectangles on the decorations). The effect depends on the position and size of the windows - in some cases it may not appear at all.
Comment 2 Lastique 2015-11-05 10:54:55 UTC
Created attachment 95326 [details]
An example of the decoration artefact

You can see on the screenshot that a little right of the active KCalc window there's a grey rectangle on the underlying inactive window decoration. This sort of artefacts appear at different places as you cycle through windows.
Comment 3 Thomas Lübking 2015-11-05 10:59:10 UTC
Looks like "air-oxygen", can you reproduce either effect with the breeze decoration?
Does the flicker happen *while* the highlight effect is active or afterwards (ie. when having finished tabbox selection and all windows should be opaque again)?
Comment 4 Lastique 2015-11-07 10:42:01 UTC
(In reply to Thomas Lübking from comment #3)
> Looks like "air-oxygen",

Yes, that's the decoration I'm using.

> can you reproduce either effect with the breeze
> decoration?

No, it doesn't show with org.kde.breeze or org.kde.oxygen. Both these decorations are opaque, though.

> Does the flicker happen *while* the highlight effect is active or afterwards
> (ie. when having finished tabbox selection and all windows should be opaque
> again)?

I haven't seen any flickering or corruption while the windows are normal (i.e. when they are just open on the desktop or when a window is selected in the tabbox, fully opaque). I'm only seeing the effect when windows are half-transparent. The effect may appear immediately when I press and hold Alt+Tab or when I keep pressing Tab while holding Alt in the tabbox (in the latter case the set of affected windows changes when I press Tab). The effect may affect decorations of multiple windows at once - whether they have been selected previously in the tabbox or not.
Comment 5 Thomas Lübking 2015-11-07 11:05:45 UTC
kcmshell5 kwineffects
disable blur and contrast effect and see whether the issue remains.
if not, reenable blur and disable caching in its config - still an issue?
Comment 6 Lastique 2015-11-07 17:59:16 UTC
(In reply to Thomas Lübking from comment #5)
> kcmshell5 kwineffects
> disable blur and contrast effect and see whether the issue remains.
> if not, reenable blur and disable caching in its config - still an issue?

The flickering happens only when both Blur and the "Save intermediate rendering results" option in its settings are enabled. In all other cases there's no flickering. The "Background contrast" effect does not affect flickering.
Comment 7 Thomas Lübking 2015-11-07 18:26:57 UTC
Then we have a dupe.

*** This bug has been marked as a duplicate of bug 307112 ***
Comment 8 Lastique 2015-11-07 18:30:27 UTC
(In reply to Thomas Lübking from comment #7)
> Then we have a dupe.
> 
> *** This bug has been marked as a duplicate of bug 307112 ***

It says it was fixed in 5.2.0, and I'm using 5.4.2. Clearly it's not fixed yet.
Comment 9 Thomas Lübking 2015-11-07 18:38:07 UTC
No, it's not.
Marting likely wanted to CCBUG and accidentally BUG'd the  commit message. There's just a workaround for a particular case, but cached blurring is definitively still broken (nobody fixed it)

*** This bug has been marked as a duplicate of bug 307112 ***