<?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>458503</bug_id>
          
          <creation_ts>2022-08-30 10:15:56 +0000</creation_ts>
          <short_desc>Plasma crashes when unplugging screen while widget explorer is open</short_desc>
          <delta_ts>2024-06-29 03:47:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Widget Explorer sidebar</component>
          <version>master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nicolas Fella">nicolas.fella</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>akselmo</cc>
    
    <cc>kde</cc>
    
    <cc>nate</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>2149066</commentid>
    <comment_count>0</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2022-08-30 10:15:56 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. Connect an external monitor 
2. Create a default panel on that monitor
3. On that monitor, right click &gt; Add new widget
4. While the widget explorer is open unplug the monitor

Application: Plasma (plasmashell), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr&lt;char []&gt; = {get() = 0x0}
[KCrash Handler]
#5  0x00007f7d3dc7d2b1 in QScopedPointer&lt;QObjectData, QScopedPointerDeleter&lt;QObjectData&gt; &gt;::operator-&gt;() const (this=0x739) at /home/nico/workspace/qt5/qtbase/include/QtCore/../../src/corelib/tools/qscopedpointer.h:118
#6  qGetPtrHelper&lt;QScopedPointer&lt;QObjectData, QScopedPointerDeleter&lt;QObjectData&gt; &gt; const&gt;(QScopedPointer&lt;QObjectData, QScopedPointerDeleter&lt;QObjectData&gt; &gt; const&amp;) (ptr=...) at /home/nico/workspace/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1143
#7  QQuickWindow::d_func() const (this=0x731) at items/qquickwindow.h:79
#8  QQuickWindow::mouseGrabberItem() const (this=0x731) at items/qquickwindow.cpp:1732
#9  0x00007f7d3dc7f957 in QQuickWindowPrivate::removeGrabber(QQuickItem*, bool, bool) (this=this@entry=0x7f7d14029320, grabber=grabber@entry=0x97acd80, mouse=mouse@entry=true, touch=touch@entry=true) at items/qquickwindow.cpp:1001
#10 0x00007f7d3dc694d1 in QQuickItemPrivate::derefWindow() (this=this@entry=0x97ace40) at items/qquickitem.cpp:3033
#11 0x00007f7d3dc69da2 in QQuickItem::setParentItem(QQuickItem*) (this=0x97acd80, parentItem=parentItem@entry=0x0) at items/qquickitem.cpp:2717
#12 0x00007f7d3dc6a2bc in QQuickItem::~QQuickItem() (this=this@entry=0x97ac4e0, __in_chrg=&lt;optimized out&gt;) at /home/nico/workspace/qt5/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:117
#13 0x00007f7d3ddca295 in QQmlPrivate::QQmlElement&lt;QQuickItem&gt;::~QQmlElement() (this=0x97ac4e0, __in_chrg=&lt;optimized out&gt;) at ../../include/QtQml/../../src/qml/qml/qqmlprivate.h:144
#14 QQmlPrivate::QQmlElement&lt;QQuickItem&gt;::~QQmlElement() (this=0x97ac4e0, __in_chrg=&lt;optimized out&gt;) at ../../include/QtQml/../../src/qml/qml/qqmlprivate.h:144
#15 0x00007f7d3bc2710e in QObjectPrivate::deleteChildren() (this=0x97ac0e0) at kernel/qobject.cpp:2104
#16 0x00007f7d3bc32630 in QObject::~QObject() (this=this@entry=0x9870f50, __in_chrg=&lt;optimized out&gt;) at kernel/qobject.cpp:1082
#17 0x00007f7d3dc6a41f in QQuickItem::~QQuickItem() (this=this@entry=0x9870f50, __in_chrg=&lt;optimized out&gt;) at items/qquickitem.cpp:2388
#18 0x00007f7cf04bbbf5 in QQuickLayout::~QQuickLayout() (this=this@entry=0x9870f50, __in_chrg=&lt;optimized out&gt;) at qquicklayout.cpp:750
#19 0x00007f7cf04bc52e in QQuickGridLayoutBase::~QQuickGridLayoutBase() (this=this@entry=0x9870f50, __in_chrg=&lt;optimized out&gt;) at qquicklinearlayout.cpp:315
#20 0x00007f7cf04c3fc0 in QQuickLinearLayout::~QQuickLinearLayout() (this=0x9870f50, __in_chrg=&lt;optimized out&gt;) at ./qquicklinearlayout_p.h:196
#21 QQuickColumnLayout::~QQuickColumnLayout() (this=0x9870f50, __in_chrg=&lt;optimized out&gt;) at ./qquicklinearlayout_p.h:244
#22 QQmlPrivate::QQmlElement&lt;QQuickColumnLayout&gt;::~QQmlElement() (this=0x9870f50, __in_chrg=&lt;optimized out&gt;) at ../../../include/QtQml/../../src/qml/qml/qqmlprivate.h:144
#23 QQmlPrivate::QQmlElement&lt;QQuickColumnLayout&gt;::~QQmlElement() (this=0x9870f50, __in_chrg=&lt;optimized out&gt;) at ../../../include/QtQml/../../src/qml/qml/qqmlprivate.h:144
#24 0x00007f7d3bc2710e in QObjectPrivate::deleteChildren() (this=0x97ab760) at kernel/qobject.cpp:2104
#25 0x00007f7d3bc32630 in QObject::~QObject() (this=&lt;optimized out&gt;, __in_chrg=&lt;optimized out&gt;) at kernel/qobject.cpp:1082
#26 0x00007f7d3dc6a41f in QQuickItem::~QQuickItem() (this=&lt;optimized out&gt;, __in_chrg=&lt;optimized out&gt;) at items/qquickitem.cpp:2388
#27 0x00007f7cf03544d5 in QQmlPrivate::QQmlElement&lt;DeclarativeDragArea&gt;::~QQmlElement() (this=0x97ab620, __in_chrg=&lt;optimized out&gt;) at /home/nico/kde/usr/include/QtQml/qqmlprivate.h:144
#28 QQmlPrivate::QQmlElement&lt;DeclarativeDragArea&gt;::~QQmlElement() (this=0x97ab620, __in_chrg=&lt;optimized out&gt;) at /home/nico/kde/usr/include/QtQml/qqmlprivate.h:144
#29 0x00007f7d3bc2710e in QObjectPrivate::deleteChildren() (this=0x97ab1d0) at kernel/qobject.cpp:2104
#30 0x00007f7d3bc32630 in QObject::~QObject() (this=this@entry=0x97ab110, __in_chrg=&lt;optimized out&gt;) at kernel/qobject.cpp:1082
#31 0x00007f7d3dc6a41f in QQuickItem::~QQuickItem() (this=this@entry=0x97ab110, __in_chrg=&lt;optimized out&gt;) at items/qquickitem.cpp:2388
#32 0x00007f7d3ddca295 in QQmlPrivate::QQmlElement&lt;QQuickItem&gt;::~QQmlElement() (this=0x97ab110, __in_chrg=&lt;optimized out&gt;) at ../../include/QtQml/../../src/qml/qml/qqmlprivate.h:144
#33 QQmlPrivate::QQmlElement&lt;QQuickItem&gt;::~QQmlElement() (this=0x97ab110, __in_chrg=&lt;optimized out&gt;) at ../../include/QtQml/../../src/qml/qml/qqmlprivate.h:144
#34 0x00007f7d3bc291c0 in QObject::event(QEvent*) (this=0x97ab110, e=0x88467a0) at kernel/qobject.cpp:1301
#35 0x00007f7d3cae637e in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=&lt;optimized out&gt;, receiver=0x97ab110, e=0x88467a0) at kernel/qapplication.cpp:3637
#36 0x00007f7d3bbff458 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x97ab110, event=0x88467a0) at kernel/qcoreapplication.cpp:1064
#37 0x00007f7d3bc02131 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x1b3c430) at kernel/qcoreapplication.cpp:1821
#38 0x00007f7d3bc53d83 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x1b69db0) at kernel/qeventdispatcher_glib.cpp:277
#39 0x00007f7d38874faf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#40 0x00007f7d388ca2c8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#41 0x00007f7d38872940 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#42 0x00007f7d3bc534a6 in QEventDispatcherGlib::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) (this=0x1b6ed00, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#43 0x00007f7d3bbfe03b in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) (this=this@entry=0x7ffee8838fc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#44 0x00007f7d3bc05b42 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#45 0x00007f7d3c012a0c in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#46 0x00007f7d3cae62f5 in QApplication::exec() () at kernel/qapplication.cpp:2829
#47 0x0000000000422c08 in main(int, char**) (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /home/nico/kde/src/plasma-workspace/shell/main.cpp:244
[Inferior 1 (process 830300) detached]

SOFTWARE/OS VERSIONS
KDE Plasma Version: master
KDE Frameworks Version: master
Qt Version: 5.15.5-kde

ADDITIONAL INFORMATION
Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149068</commentid>
    <comment_count>1</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2022-08-30 10:24:40 +0000</bug_when>
    <thetext>The extra panel doesn&apos;t seem to be relevant, it happens without that as well</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149232</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-08-30 21:54:44 +0000</bug_when>
    <thetext>Cannot reproduce with current git master on Wayland with an HDMI monitor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2323330</commentid>
    <comment_count>3</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2024-05-30 11:15:55 +0000</bug_when>
    <thetext>Can&apos;t reproduce either with display port monitor. Does this still happen?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2327709</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-06-14 03:47:07 +0000</bug_when>
    <thetext>Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED &gt; WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2333267</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-06-29 03:47:32 +0000</bug_when>
    <thetext>This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED &gt; WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>