Bug 433890 - can not share desktop under wayland, only got a black screen
Summary: can not share desktop under wayland, only got a black screen
Status: REPORTED
Alias: None
Product: krfb
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Fedora RPMs Other
: NOR normal
Target Milestone: ---
Assignee: George Goldberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-03 05:18 UTC by johnM
Modified: 2023-09-12 14:03 UTC (History)
11 users (show)

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


Attachments
only black screen (82.34 KB, image/jpeg)
2021-03-03 05:18 UTC, johnM
Details
Same on OpenSUSE 15.4 Plasma from Mac client (118.26 KB, image/png)
2022-10-19 15:55 UTC, SUSEfan-IN
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnM 2021-03-03 05:18:30 UTC
Created attachment 136335 [details]
only black screen

SUMMARY
connection is received, but has no image, only a black screen

STEPS TO REPRODUCE
1. Run Krfb on Wayland
2. open vnc viewer form another computer

OBSERVED RESULT
The viewer can connect to computer, mouse function works, but screen is black.
but if i click mouse, computer(where krfb runs ) can response. Still can not get image from vnv viewer.

EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 Alexey Min 2021-05-23 23:03:27 UTC
Which framebuffer plugin do you have selected in krfb settings?

Is pipewire with xdg-desktop-portal-kde running?
Comment 2 SUSEfan-IN 2022-10-19 15:55:30 UTC
Created attachment 153035 [details]
Same on OpenSUSE 15.4 Plasma from Mac client
Comment 3 SUSEfan-IN 2022-10-19 15:58:15 UTC
Desktop access based on kerb from Mac 10.13 High Sierra worked very well on openSUSE 15.0 The upgrade to 15.4 has created this problem. Image uploaded.
Comment 4 SUSEfan-IN 2022-10-19 16:01:38 UTC
(In reply to SUSEfan-IN from comment #3)
> Desktop access based on kerfb from Mac 10.13 High Sierra worked very well on
> openSUSE 15.0 The upgrade to 15.4 has created this problem. Image uploaded.
( kerb was misspelt by autocorrect)
Comment 5 SUSEfan-IN 2022-10-19 16:02:29 UTC
(In reply to SUSEfan-IN from comment #3)
> Desktop access based on kerb from Mac 10.13 High Sierra worked very well on
> openSUSE 15.0 The upgrade to 15.4 has created this problem. Image uploaded.
"krfb" not autocorrected kerb
Comment 6 Aki 2022-10-23 14:32:14 UTC
I encountered this problem too when running on nvida+wayland+(non-es) opengl environment.

The problem happens since this commit.
https://github.com/KDE/kwin/commit/e7cd2c439635865ac316f4c6cb2676e5c575d2db

As a optimization, kwin now read the output texture directly.
There is bug is nvidia driver that you can't read texture using glGetTexImage when the texture is created from dma buf.

The bug can reproduced with this test program.
https://github.com/yuq/gfx/blob/master/base/opengl-dma-buf/main.c
Comment 7 dyeray 2023-08-27 22:10:30 UTC
Also seeing this bug, or at least exact same symptoms (only mouse can be seen, control works, but black screen on client).

Server krfb: amd gpu+wayland - fedora 38
Client krdc: nvidia gpu+x11 (nvidia driver) - kubuntu 23.04