Skip to content

RDP 连接 KDE Plasma 6 (krdp) 报错 decode error 导致断开连接 #1644

Open

Description

@StarryHui

描述 Bug

在尝试通过 RDP 协议连接运行 KDE Plasma 6 (Wayland) 的 Fedora 主机时,SSH 隧道和身份验证均已成功通过(电脑桌面端已弹出“远程控制会话已开始”的通知),但随后连接立即断开,App 界面报错 ironrdp-core 解码失败:[ironrdp-core-0.2.1/src/error.rs:248] other (received disconnect provider ultimatum)。

复现步骤

  1. 在 Fedora (KDE Plasma 6 / Wayland) 的系统设置中启用远程桌面(基于 krdp),并配置好用户名与密码。
  2. 打开 ServerBox,进入对应的服务器配置,新建或编辑远程桌面,协议选择 RDP。
  3. 主机填入 127.0.0.1,端口 3389,填入正确的用户名与密码。
  4. 直接点击连接。
  5. 看到电脑端弹出连接成功通知,但 App 端立刻断开并抛出解码错误黑屏。

期望结果

能够成功协商画面流并正常显示 Fedora KDE Plasma 6 桌面画面,进入远程控制会话。

实际结果

电脑端虽显示会话开始,但客户端立刻断开并提示:

[decode error @ /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library/core/src/ops/function.rs:250] decode error, caused by:
[decode_send_data_indication @ /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ironrdp-core-0.2.1/src/error.rs:248] other (received disconnect provider ultimatum)

截图

Image Image

设备

  • 系统: xiaomi hyperos 3.0.302.0
  • App版本:1.0.1719

Activity

  1. added
    bugSomething isn't working
    libcaused by third-party lib
    on Oct 5, 2026
  2. winnowl commented on Oct 5, 2026

    @winnowl

    Issue triage

    Feasibility:needs-clarification | Risk:medium

    Information needed to reproduce:

    • Does this occur consistently, and which Fedora release, KDE Plasma/krdp versions, and ServerBox build are involved?
    • Does the same server accept connections from another RDP client (for example, FreeRDP), and do those sessions work?
    • Can you provide client and krdp/server logs around the disconnect, including negotiated RDP capabilities and security settings?
    • Is the connection direct or through an SSH tunnel, and if tunneled, how is local port forwarding configured?
    • Does changing the server’s display resolution, color depth, or RDP graphics/codec settings affect the disconnect?

    Suggested labels(not applied automatically):bug, RDP, krdp

  3. StarryHui commented on Oct 5, 2026

    @StarryHui
    Author
    1. 复现频率与具体版本:

      • 复现概率:100% 稳定复现,每次连接都会出现。
      • 系统版本:Fedora 44 (x86_64)
      • 桌面环境:KDE Plasma 6.7.5 (Wayland 会话)
      • krdp 版本:krdp-6.7.5-1.fc44.x86_64
      • 客户端版本:ServerBox 1.0.1719(Xiaomi HyperOS 3.0.302.0)
    2. 其他客户端对比:

      • 使用windows app可正常直连并稳定保持桌面控制会话,不会发生异常断开。
    3. 连接拓扑与转发方式:

      • 走 SSH 隧道转发连接。
      • 目标主机配置为 127.0.0.1,端口 3389。
      • SSH 隧道和认证均能正常建立,电脑桌面端也会正常弹出“远程控制会话已开始”的通知。
    4. 报错日志与原因推断:

      • 断开发生在身份认证完成后的初次 PDU 数据包解码阶段:
        [decode error @ /rustc/.../library/core/src/ops/function.rs:250] decode error, caused by:
        [decode_send_data_indication @ .../ironrdp-core-0.2.1/src/error.rs:248] other (received disconnect provider ultimatum)
        
      • 疑似是 ironrdp-core 在解析 KRDP 基于 Wayland/PipeWire 协商图形通道(EGFX / 视频推流)发送的 send_data_indication PDU 数据包时解析失败,导致服务端下发了断开连接的最后通牒(provider ultimatum)。
  4. lollipopkit commented on Oct 20, 2026

    @lollipopkit
    Owner

    请尝试1816版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglibcaused by third-party lib

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions