<?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>475296</bug_id>
          
          <creation_ts>2023-10-06 20:33:44 +0000</creation_ts>
          <short_desc>krfb-virtualmonitor crashes kwin_wayland</short_desc>
          <delta_ts>2025-12-22 18:03:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>wayland-generic</component>
          <version>git master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=513710</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Janet Blackquill">uhhadd</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>ahiemstra</cc>
    
    <cc>nate</cc>
    
    <cc>xaver.hugl</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/05de026fd2019f7e2ad380c169c7097d26b71e1c</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>2257263</commentid>
    <comment_count>0</comment_count>
    <who name="Janet Blackquill">uhhadd</who>
    <bug_when>2023-10-06 20:33:44 +0000</bug_when>
    <thetext>#0  0x00007f4e17bf48ec in std::__shared_ptr&lt;KWin::GLTexture, (__gnu_cxx::_Lock_policy)2&gt;::__shared_ptr(std::__shared_ptr&lt;KWin::GLTexture, (__gnu_cxx::_Lock_policy)2&gt; const&amp;)
    (this=0x7fff69d58b90) at /usr/include/c++/13/bits/shared_ptr_base.h:1522
#1  0x00007f4e17bf4937 in std::shared_ptr&lt;KWin::GLTexture&gt;::shared_ptr(std::shared_ptr&lt;KWin::GLTexture&gt; const&amp;) (this=0x7fff69d58b90) at /usr/include/c++/13/bits/shared_ptr.h:204
#2  0x00007f4e17ec6acf in KWin::EglSwapchainSlot::texture() const (this=0x0) at /home/jblackquill/KDE/Sources/kwin/src/platformsupport/scenes/opengl/eglswapchain.cpp:44
#3  0x00007f4e17e33d2e in KWin::VirtualEglGbmLayer::texture() const (this=0x19161f0) at /home/jblackquill/KDE/Sources/kwin/src/backends/drm/drm_virtual_egl_layer.cpp:140
#4  0x00007f4e17de4f8b in KWin::EglGbmBackend::textureForOutput(KWin::Output*) const (this=0x1c78240, output=0x2b6e650)
    at /home/jblackquill/KDE/Sources/kwin/src/backends/drm/drm_egl_backend.cpp:171
#5  0x00007f4e17bf18bb in KWin::WorkspaceSceneOpenGL::textureForOutput(KWin::Output*) const (this=0x2be8cc0, output=0x2b6e650)
    at /home/jblackquill/KDE/Sources/kwin/src/scene/workspacescene_opengl.cpp:90
#6  0x00007f4dddcc2b8c in KWin::OutputScreenCastSource::render(KWin::GLFramebuffer*) (this=0x1966470, target=0x2bc8320)
    at /home/jblackquill/KDE/Sources/kwin/src/plugins/screencast/outputscreencastsource.cpp:57
#7  0x00007f4dddcd774f in KWin::ScreenCastStream::recordFrame(QRegion const&amp;) (this=0x1521010, _damagedRegion=...)
    at /home/jblackquill/KDE/Sources/kwin/src/plugins/screencast/screencaststream.cpp:556
#8  0x00007f4dddcd588e in operator()() const (__closure=0x286c6e0) at /home/jblackquill/KDE/Sources/kwin/src/plugins/screencast/screencaststream.cpp:335
#9  0x00007f4dddcda607 in QtPrivate::FunctorCall&lt;QtPrivate::IndexesList&lt;&gt;, QtPrivate::List&lt;&gt;, void, KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::&lt;lambda()&gt; &gt;::call(struct {...} &amp;, void **) (f=..., arg=0x7fff69d593c0) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:127
#10 0x00007f4dddcda589 in QtPrivate::Functor&lt;KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::&lt;lambda()&gt;, 0&gt;::call&lt;QtPrivate::List&lt;&gt;, void&gt;(struct {...} &amp;, void *, void **) (f=..., arg=0x7fff69d593c0) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:241
#11 0x00007f4dddcda496 in QtPrivate::QFunctorSlotObject&lt;KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::&lt;lambda()&gt;, 0, QtPrivate::List&lt;&gt;, void&gt;::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x286c6d0, r=0x1521010, a=0x7fff69d593c0, ret=0x0) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:409
#12 0x00007f4e13dde3a4 in void doActivate&lt;false&gt;(QObject*, int, void**) () at /lib64/libQt6Core.so.6
#13 0x00007f4e13df093d in QTimer::timeout(QTimer::QPrivateSignal) () at /lib64/libQt6Core.so.6
#14 0x00007f4e13dcfddf in QObject::event(QEvent*) () at /lib64/libQt6Core.so.6
#15 0x00007f4e151c0af8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt6Widgets.so.6
#16 0x00007f4e13d7cdc8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt6Core.so.6
#17 0x00007f4e13f01a93 in QTimerInfoList::activateTimers() () at /lib64/libQt6Core.so.6
#18 0x00007f4e13efea56 in QEventDispatcherUNIX::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /lib64/libQt6Core.so.6
#19 0x00007f4e14b40062 in QUnixEventDispatcherQPA::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /lib64/libQt6Gui.so.6
#20 0x00007f4e13d89a03 in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /lib64/libQt6Core.so.6
#21 0x00007f4e13d856ad in QCoreApplication::exec() () at /lib64/libQt6Core.so.6
#22 0x0000000000499b7c in main(int, char**) (argc=14, argv=0x7fff69d5b358) at /home/jblackquill/KDE/Sources/kwin/src/main_wayland.cpp:611</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2280507</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-01-15 14:03:58 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4929</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2280545</commentid>
    <comment_count>2</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-01-15 15:25:02 +0000</bug_when>
    <thetext>Git commit 3b67edf20d7f039371f5ee00bae90c8b66106da3 by Vlad Zahorodnii.
Committed on 15/01/2024 at 16:07.
Pushed by vladz into branch &apos;master&apos;.

backends/drm: Fix a crash in VirtualEglGbmLayer::texture()

If nothing has been rendered yet, m_currentSlot will be null.
Related: bug 479558

M  +2    -1    src/backends/drm/drm_virtual_egl_layer.cpp

https://invent.kde.org/plasma/kwin/-/commit/3b67edf20d7f039371f5ee00bae90c8b66106da3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2280597</commentid>
    <comment_count>3</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-01-15 18:08:58 +0000</bug_when>
    <thetext>Git commit 05de026fd2019f7e2ad380c169c7097d26b71e1c by Vlad Zahorodnii.
Committed on 15/01/2024 at 18:57.
Pushed by vladz into branch &apos;Plasma/6.0&apos;.

backends/drm: Fix a crash in VirtualEglGbmLayer::texture()

If nothing has been rendered yet, m_currentSlot will be null.
Related: bug 479558
(cherry picked from commit 3b67edf20d7f039371f5ee00bae90c8b66106da3)

M  +2    -1    src/backends/drm/drm_virtual_egl_layer.cpp

https://invent.kde.org/plasma/kwin/-/commit/05de026fd2019f7e2ad380c169c7097d26b71e1c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>