<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>521662</bug_id>
          
          <creation_ts>2026-06-18 18:02:46 +0000</creation_ts>
          <short_desc>krfb-virtualmonitor crashes with &quot;zkde_screencast_stream_unstable_v1 has no event 3&quot; after upgrade to KWin 6.7.0</short_desc>
          <delta_ts>2026-08-02 05:37:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krfb</product>
          <component>krfb-virtualmonitor</component>
          <version>26.04.2</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="freeusernamestuff@gmail.com">freeusernamestuff</reporter>
          <assigned_to name="George Goldberg">grundleborg</assigned_to>
          <cc>antti.savo</cc>
    
    <cc>kdedev</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2524310</commentid>
    <comment_count>0</comment_count>
    <who name="freeusernamestuff@gmail.com">freeusernamestuff</who>
    <bug_when>2026-06-18 18:02:46 +0000</bug_when>
    <thetext>***
If you&apos;re not sure this is actually a bug or valid feature request, instead post about it at https://discuss.kde.org

If you&apos;re reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

DESCRIPTION
After upgrading KWin from 6.6.4 to 6.7.0, krfb-virtualmonitor crashes immediately with exit code 255. The issue is a Wayland protocol mismatch: KWin 6.7.0 sends event index 3 (serial) on the zkde_screencast_stream_unstable_v1 interface, but krfb&apos;s compiled-in protocol definition only knows events 0–2 (created, failed, closed), causing libwayland-client to abort.
Error message (stderr):
interface &apos;zkde_screencast_stream_unstable_v1&apos; has no event 3

STEPS TO REPRODUCE
1. Run KWin 6.7.0 on a Wayland session (Plasma 6.7.0)
2. Run: krfb-virtualmonitor --resolution 1366x1024 --name &quot;test&quot; --password &quot;test&quot; --port 5901
3. Observe immediate crash with exit code 255

OBSERVED RESULT
Process exits with code 255, no virtual output created

EXPECTED RESULT
Virtual output &quot;test&quot; appears in kscreen-doctor --outputs

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44  kernel 7.0.12-201.fc44.x86_64, Wayland session
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0 
Qt Version: 6.10.2

Plasma version: 6.7.0
krfb 25.12.3 — crashes (same error)
krfb 26.04.2 — crashes (same error)
KWin 6.6.4-2 — both krfb versions work correctly


ADDITIONAL INFORMATION
Bisect: Confirmed regression between KWin 6.6.4 → 6.7.0. Downgrading KWin to 6.6.4-2 restores functionality immediately without any other changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2524362</commentid>
    <comment_count>1</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2026-06-18 19:56:13 +0000</bug_when>
    <thetext>Thanks for the crash report, and the troubleshooting, that&apos;s very helpful. 

As the message at the top of the summary says, if something crashed, we also need a backtrace of it so we can figure out what&apos;s going on. Can you please attach a backtrace of the crash, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports ?

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2524478</commentid>
    <comment_count>2</comment_count>
    <who name="freeusernamestuff@gmail.com">freeusernamestuff</who>
    <bug_when>2026-06-19 02:16:09 +0000</bug_when>
    <thetext>We are unable to provide a backtrace through normal means. When attempting to reproduce the crash under gdb, we encountered a separate issue caused by a partial package downgrade on our end (kwin 6.7.0 + kscreenlocker 6.6.4 version mismatch), which prevented kwin_wayland from starting at all. This was not a KWin bug — it was a consequence of our own recovery process.
The SIGABRT source is identifiable from the error message itself: libwayland-client aborts when it receives event index 3 on zkde_screencast_stream_unstable_v1, which is not present in krfb&apos;s compiled-in protocol definition. Both krfb 25.12.3 and 26.04.2 are affected identically. We confirmed the regression bisect: KWin 6.6.4 works, KWin 6.7.0 breaks it.
If you can confirm whether event 3 (serial) was added to zkde_screencast_stream_unstable_v1 in KWin 6.7.0, that would pinpoint the exact commit responsible</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2526185</commentid>
    <comment_count>3</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2026-06-23 21:50:52 +0000</bug_when>
    <thetext>I&apos;m not able to reproduce this with krdp and Plasma built from git-master 
The developers can look further into zkde_screencast_stream_unstable_v1. Thanks for the additional detail there, that&apos;s helpful.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>