https://bugs.kde.org/show_bug.cgi?id=515823

            Bug ID: 515823
           Summary: Black screen connecting to RDP from macOS "Windows";
                    OpenGL errors in logs
    Classification: Plasma
           Product: KRdp
      Version First 6.5.5
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
When I connect to my workstation from macOS using the "Windows" app, all I see
is a black screen. Looking at the journal log, it seems krdp/kwin fail to setup
video capture/streaming.

STEPS TO REPRODUCE
1. Get the "Windows" app from the macOS App Store (at time of filing bug,
Version 11.3.2 (2848))
2. Enable RDP/remote desktop in Plasma's native settings app. Ensure krdp and
other dependencies are installed.
3. Connect to the Linux system from macOS.

OBSERVED RESULT
Black screen and errors in the journal.

EXPECTED RESULT
RDP session works and I can remote desktop.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2
Kernel Version: 6.18.9-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 9950X3D 16-Core Processor
Memory: 64 GiB of RAM (62.4 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 5090

ADDITIONAL INFORMATION

The logs suggest this is different from
https://bugs.kde.org/show_bug.cgi?id=494715.

Journal logs:

```
Feb 10 07:51:33 wave5 krdpserver[2319]: New client connected:  OS X platform
Unspecified version
Feb 10 07:51:33 wave5 krdpserver[2319]: Attempting authenticating user with PAM
Feb 10 07:51:33 wave5 krdpserver[3944725]: pam_unix(login:account): setuid
failed: Operation not permitted
Feb 10 07:51:33 wave5 krdpserver[2319]: PAM authentication succeeded for user
"jfroy"
Feb 10 07:51:33 wave5 krdpserver[2319]: Video stream initialized
Feb 10 07:51:33 wave5 krdpserver[2319]: Initializing Freedesktop Portal Session
Feb 10 07:51:33 wave5 kded6[2283]: Registering ":1.862/StatusNotifierItem" to
system tray
Feb 10 07:51:33 wave5 krdpserver[2319]: Received caps:
Feb 10 07:51:33 wave5 krdpserver[2319]:   RDPGFX_CAPVERSION_8 AVC: false
YUV420: false
Feb 10 07:51:33 wave5 krdpserver[2319]:   RDPGFX_CAPVERSION_81 AVC: false
YUV420: false
Feb 10 07:51:33 wave5 krdpserver[2319]:   RDPGFX_CAPVERSION_10 AVC: false
YUV420: false
Feb 10 07:51:33 wave5 krdpserver[2319]:   RDPGFX_CAPVERSION_102 AVC: false
YUV420: false
Feb 10 07:51:33 wave5 krdpserver[2319]:   RDPGFX_CAPVERSION_103 AVC: false
YUV420: false
Feb 10 07:51:33 wave5 krdpserver[2319]:   RDPGFX_CAPVERSION_104 AVC: true
YUV420: true
Feb 10 07:51:33 wave5 krdpserver[2319]:   RDPGFX_CAPVERSION_107 AVC: true
YUV420: true
Feb 10 07:51:33 wave5 krdpserver[2319]:   UNKNOWN_VERSION AVC: false YUV420:
false
Feb 10 07:51:33 wave5 krdpserver[2319]:   UNKNOWN_VERSION AVC: false YUV420:
false
Feb 10 07:51:33 wave5 krdpserver[2319]: Selected caps: UNKNOWN_VERSION
Feb 10 07:51:33 wave5 krdpserver[2319]: Started Freedesktop Portal session
Feb 10 07:51:33 wave5 xdg-desktop-portal-kde[2656]: Failed to notify "Created
too many similar notifications in quick succession"
Feb 10 07:51:33 wave5 krdpserver[2319]: [in @ 0x7f81940504c0] Setting
BufferSourceContext.pix_fmt to a HW format requires hw_frames_ctx to be
non-NULL!
Feb 10 07:51:33 wave5 krdpserver[2319]: Failed to create the buffer filter
Feb 10 07:51:33 wave5 krdpserver[2319]: [libx264 @ 0x7f8194060980] -qscale is
ignored, -crf is recommended.
Feb 10 07:51:33 wave5 krdpserver[2319]: [libx264 @ 0x7f8194060980] MB rate
(40000000) > level limit (16711680)
Feb 10 07:51:33 wave5 krdpserver[2319]: [libx264 @ 0x7f8194060980] using cpu
capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
Feb 10 07:51:33 wave5 krdpserver[2319]: [libx264 @ 0x7f8194060980] profile
Constrained Baseline, level 6.2, 4:2:0, 8-bit
Feb 10 07:51:33 wave5 kwin_wayland[2161]: 0x502: GL_INVALID_OPERATION error
generated. <image> and <target> are incompatible
Feb 10 07:51:33 wave5 kwin_wayland[2161]: Invalid framebuffer status: 
"GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
Feb 10 07:51:33 wave5 kwin_wayland[2161]: 0x502: GL_INVALID_OPERATION error
generated. <image> and <target> are incompatible
Feb 10 07:51:33 wave5 kwin_wayland[2161]: Invalid framebuffer status: 
"GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
Feb 10 07:51:33 wave5 kwin_wayland[2161]: 0x502: GL_INVALID_OPERATION error
generated. <image> and <target> are incompatible
Feb 10 07:51:33 wave5 kwin_wayland[2161]: Invalid framebuffer status: 
"GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
Feb 10 07:51:33 wave5 pipewire[2217]: invalid memory type 8
Feb 10 07:51:33 wave5 pipewire[2217]: invalid memory type 8
Feb 10 07:51:33 wave5 pipewire[2217]: invalid memory type 8
Feb 10 07:51:33 wave5 kwin_wayland[2161]: "0,0 4000x2560" Received stream
buffer that does not contain user data
```

`kscreen-doctor -o`: 

```
> kscreen-doctor -o
Output: 1 DP-3 ef104781-d931-40c0-b8f1-b12a58aa41f7
        enabled
        connected
        priority 1
        DisplayPort
        replication source:0
        Modes:  1:[email protected]*!  2:[email protected]  3:[email protected] 
4:[email protected]  5:[email protected]  6:[email protected]  7:[email protected] 
8:[email protected]  9:[email protected]  10:[email protected]  11:[email protected] 
12:[email protected]  13:[email protected]  14:[email protected] 
15:[email protected]  16:[email protected]  17:[email protected] 
18:[email protected]  19:[email protected]  20:[email protected]  21:[email protected] 
22:[email protected]  23:[email protected]  24:[email protected]  25:[email protected] 
26:[email protected]  27:[email protected]  28:[email protected]  29:[email protected] 
30:[email protected]  31:[email protected]  32:[email protected]  33:[email protected] 
34:[email protected]  35:[email protected]  36:[email protected]  37:[email protected] 
38:[email protected]  39:[email protected]  40:[email protected]  41:[email protected] 
42:[email protected] 
        Geometry: 1440,360 2560x1440
        Scale: 1.5
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: enabled
                SDR brightness: 400 nits
                SDR gamut wideness: 50%
                Peak brightness: 1000 nits, overridden with: 1000 nits
                Max average brightness: 277 nits
                Min brightness: 0.0002 nits
        Wide Color Gamut: enabled
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 80% and dimming to 100%
        DDC/CI: allowed
        Color resolution: unknown
        Allow EDR: unsupported
        Sharpness control: unsupported
Output: 2 DP-1 997b0a8e-4e80-411c-b340-c93981bf8430
        enabled
        connected
        priority 2
        DisplayPort
        replication source:0
        Modes:  43:[email protected]*!  44:[email protected]  45:[email protected] 
46:[email protected]  47:[email protected]  48:[email protected] 
49:[email protected]  50:[email protected]  51:[email protected]  52:[email protected] 
53:[email protected]  54:[email protected]  55:[email protected] 
56:[email protected]  57:[email protected]  58:[email protected] 
59:[email protected]  60:[email protected]  61:[email protected]  62:[email protected] 
63:[email protected]  64:[email protected]  65:[email protected]  66:[email protected] 
67:[email protected]  68:[email protected]  69:[email protected]  70:[email protected] 
71:[email protected]  72:[email protected]  73:[email protected]  74:[email protected] 
75:[email protected]  76:[email protected]  77:[email protected]  78:[email protected] 
79:[email protected]  80:[email protected]  81:[email protected]  82:[email protected] 
83:[email protected]  84:[email protected] 
        Geometry: 0,0 1440x2560
        Scale: 1.5
        Rotation: 2
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: enabled
                SDR brightness: 400 nits
                SDR gamut wideness: 50%
                Peak brightness: 1000 nits, overridden with: 1000 nits
                Max average brightness: 277 nits
                Min brightness: 0.0002 nits
        Wide Color Gamut: enabled
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 80% and dimming to 100%
        DDC/CI: allowed
        Color resolution: unknown
        Allow EDR: unsupported
        Sharpness control: unsupported
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to