Bug 437366 - [wayland - nvidia proprietary] black box behind latte dock hiding any desktop window
Summary: [wayland - nvidia proprietary] black box behind latte dock hiding any desktop...
Status: RESOLVED DUPLICATE of bug 437573
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-19 15:04 UTC by Simon Spinner
Modified: 2021-05-29 10:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (73.98 KB, image/png)
2021-05-19 15:04 UTC, Simon Spinner
Details
Screenshot with fix for 437573 (876.65 KB, image/jpeg)
2021-05-24 13:38 UTC, Simon Spinner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Spinner 2021-05-19 15:04:50 UTC
Created attachment 138566 [details]
Screenshot

SUMMARY
A black box is drawn around the latte dock whenever latte dock is started on wayland (see screenshot). Sometimes the dock itself is rendered above the black area. On other occasions the dock itself is hidden below the black box. Desktop windows are always behind the black box.

STEPS TO REPRODUCE
1. Run plasma session in wayland.
2. Start latte dock with any layout.

OBSERVED RESULT
Black box as shown in the screenshot. In the screenshot the desktop image is not drawn correctly and black as well, making it hard to see the latte black box. It starts where the Kate window is clipped at the bottom.

EXPECTED RESULT
No black box.

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

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2021-05-19 16:02:59 UTC
It shown permanently or after a while disappears?
Comment 2 Simon Spinner 2021-05-19 16:21:19 UTC
(In reply to Michail Vourlakos from comment #1)
> It shown permanently or after a while disappears?

No, it stays permanently. Tried to disable all effects in the settings of the dock, but didn't change anything.
Comment 3 Michail Vourlakos 2021-05-19 18:28:34 UTC
What is your graphics driver amd compositor settings?

I can not reproduce this in my system
Comment 4 Simon Spinner 2021-05-20 08:41:50 UTC
Yes, most probably this is a wayland issue further down the stack. Latte dock works perfectly with X11 on the same system. It is a system with a nvidia (proprietary) driver. I know this setup is highly experimental. The support improved a lot over the past few plasma releases so that the shell is mostly usable nowadays. This latte rendering issue is one of the more obvious showstoppers on my system. It would be great if we could track down the root cause of it. I haven't found any other program having similar rendering issues.

Tried different compositor settings (OpenGL 2.0 and 3.1 both have this issue, Xrender does not work at all). Also tried it with latest KDE built from source and latte shows the same behavior.
Comment 5 Michail Vourlakos 2021-05-20 10:32:07 UTC
(In reply to Simon Spinner from comment #4)
> Yes, most probably this is a wayland issue further down the stack. Latte
> dock works perfectly with X11 on the same system. It is a system with a
> nvidia (proprietary) driver. I know this setup is highly experimental. The
> support improved a lot over the past few plasma releases so that the shell
> is mostly usable nowadays. This latte rendering issue is one of the more
> obvious showstoppers on my system. It would be great if we could track down
> the root cause of it. I haven't found any other program having similar
> rendering issues.
> 
> Tried different compositor settings (OpenGL 2.0 and 3.1 both have this
> issue, Xrender does not work at all). Also tried it with latest KDE built
> from source and latte shows the same behavior.

probably something down the Qt stack, no idea what...
Comment 6 Simon Spinner 2021-05-24 13:35:17 UTC
With a fix in kwin for bug 437573, the behavior of latte is now more consistent. The dock is always rendered in the foreground and visible. The black box behind the dock stays though hiding any window in that area (see second screenshot).

Could it be that the alpha channel is not handled correctly for the latte dock surface and we are seeing the areas that should be transparent as a black area instead?
Comment 7 Simon Spinner 2021-05-24 13:38:09 UTC
Created attachment 138740 [details]
Screenshot with fix for 437573
Comment 8 Michail Vourlakos 2021-05-24 14:12:16 UTC
(In reply to Simon Spinner from comment #7)
> 
> Could it be that the alpha channel is not handled correctly for the latte
> dock surface and we are seeing the areas that should be transparent as a
> black area instead?

yes, that is the case but no idea why EGLStreams do not like it. Latte specifies its transparent background at: https://invent.kde.org/plasma/latte-dock/-/blob/master/app/view/view.cpp#L99
Comment 9 Michail Vourlakos 2021-05-29 04:40:31 UTC

*** This bug has been marked as a duplicate of bug 437573 ***
Comment 10 noname 2021-05-29 10:18:42 UTC
(In reply to Michail Vourlakos from comment #8)
> (In reply to Simon Spinner from comment #7)
> > 
> > Could it be that the alpha channel is not handled correctly for the latte
> > dock surface and we are seeing the areas that should be transparent as a
> > black area instead?
> 
> yes, that is the case but no idea why EGLStreams do not like it. Latte
> specifies its transparent background at:
> https://invent.kde.org/plasma/latte-dock/-/blob/master/app/view/view.cpp#L99



I think it should not be specific to latte dock.
I have already sent bug reports because all my transparent plasma themes are broken and turn black (mainly the task bar) with eglstreams.
Comment 11 Michail Vourlakos 2021-05-29 10:41:45 UTC
(In reply to noname from comment #10)
> (In reply to Michail Vourlakos from comment #8)
> > (In reply to Simon Spinner from comment #7)
> > > 
> > > Could it be that the alpha channel is not handled correctly for the latte
> > > dock surface and we are seeing the areas that should be transparent as a
> > > black area instead?
> > 
> > yes, that is the case but no idea why EGLStreams do not like it. Latte
> > specifies its transparent background at:
> > https://invent.kde.org/plasma/latte-dock/-/blob/master/app/view/view.cpp#L99
> 
> 
> 
> I think it should not be specific to latte dock.
> I have already sent bug reports because all my transparent plasma themes are
> broken and turn black (mainly the task bar) with eglstreams.

It isnt follow the mentioned bug report