<?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>434157</bug_id>
          
          <creation_ts>2021-03-08 19:32:21 +0000</creation_ts>
          <short_desc>Crashes in PreviewJob</short_desc>
          <delta_ts>2021-03-17 23:55:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kio</product>
          <component>general</component>
          <version>git master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>430862</dup_id>
          
          <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>0</everconfirmed>
          <reporter name="Kai Uwe Broulik">kde</reporter>
          <assigned_to name="KIO Bugs">kio-bugs-null</assigned_to>
          <cc>kdelibs-bugs-null</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>2010063</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2021-03-08 19:32:21 +0000</bug_when>
    <thetext>SUMMARY
Whenever I take a screenshot in Spectacle with shortcut (Meta+Shift+PrtScr) Plasma crashes in the resulting notification in the previewer

STEPS TO REPRODUCE
1. Take region screenshot with Spectacle using keyboard shortcut

OBSERVED RESULT
Crashes

EXPECTED RESULT
Does not crash

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.79 git as of 5 March 
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Thread 1 (Thread 0x7f04cb08d2c0 (LWP 40389)):
[KCrash Handler]
#4  __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:262
#5  0x00007f04cf918f2c in memcpy (__len=56320, __src=0x7f045c0e3000, __dest=&lt;optimized out&gt;) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34
#6  QImage::copy(QRect const&amp;) const (this=0x7fffcacd0a10, r=...) at image/qimage.cpp:1182
#7  0x00007f04cea9aaec in KIO::PreviewJobPrivate::slotThumbData(KIO::Job*, QByteArray const&amp;) (this=0x55763e5a1bb0, job=0x55763e418ca0, data=...) at /home/kaiuwe/Projekte/kf5/kio/src/widgets/previewjob.cpp:781
#8  0x00007f04cea9980c in KIO::PreviewJobPrivate::&lt;lambda(KIO::Job*, const QByteArray&amp;)&gt;::operator()(KIO::Job *, const QByteArray &amp;) const (__closure=0x55763c658e60, job=0x55763e418ca0, data=...) at /home/kaiuwe/Projekte/kf5/kio/src/widgets/previewjob.cpp:711
#9  0x00007f04cea9c413 in QtPrivate::FunctorCall&lt;QtPrivate::IndexesList&lt;0, 1&gt;, QtPrivate::List&lt;KIO::Job*, const QByteArray&amp;&gt;, void, KIO::PreviewJobPrivate::createThumbnail(const QString&amp;)::&lt;lambda(KIO::Job*, const QByteArray&amp;)&gt; &gt;::call(KIO::PreviewJobPrivate::&lt;lambda(KIO::Job*, const QByteArray&amp;)&gt; &amp;, void **) (f=..., arg=0x7fffcacd0c80) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#10 0x00007f04cea9c3c9 in QtPrivate::Functor&lt;KIO::PreviewJobPrivate::createThumbnail(const QString&amp;)::&lt;lambda(KIO::Job*, const QByteArray&amp;)&gt;, 2&gt;::call&lt;QtPrivate::List&lt;KIO::Job*, QByteArray const&amp;&gt;, void&gt;(KIO::PreviewJobPrivate::&lt;lambda(KIO::Job*, const QByteArray&amp;)&gt; &amp;, void *, void **) (f=..., arg=0x7fffcacd0c80) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#11 0x00007f04cea9c397 in QtPrivate::QFunctorSlotObject&lt;KIO::PreviewJobPrivate::createThumbnail(const QString&amp;)::&lt;lambda(KIO::Job*, const QByteArray&amp;)&gt;, 2, QtPrivate::List&lt;KIO::Job*, const QByteArray&amp;&gt;, void&gt;::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x55763c658e50, r=0x55763e5a8ee0, a=0x7fffcacd0c80, ret=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:443
#12 0x00007f04cf51f6be in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffcacd0c80, r=0x55763e5a8ee0, this=0x55763c658e50) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#13 doActivate&lt;false&gt;(QObject*, int, void**) (sender=0x55763e418ca0, signal_index=25, argv=0x7fffcacd0c80) at kernel/qobject.cpp:3886
#14 0x00007f04cd5dcffa in KIO::TransferJob::data(KIO::Job*, QByteArray const&amp;) (this=0x55763e418ca0, _t1=0x55763e418ca0, _t2=...) at /home/kaiuwe/Projekte/kf5/kio/build/src/core/KF5KIOCore_autogen/include/moc_transferjob.cpp:309
#15 0x00007f04cd5d9cec in KIO::TransferJob::slotData(QByteArray const&amp;) (this=0x55763e418ca0, _data=...) at /home/kaiuwe/Projekte/kf5/kio/src/core/transferjob.cpp:49
#16 0x00007f04cd5df363 in QtPrivate::FunctorCall&lt;QtPrivate::IndexesList&lt;0&gt;, QtPrivate::List&lt;QByteArray const&amp;&gt;, void, void (KIO::TransferJob::*)(QByteArray const&amp;)&gt;::call(void (KIO::TransferJob::*)(QByteArray const&amp;), KIO::TransferJob*, void**) (f=&amp;virtual KIO::TransferJob::slotData(QByteArray const&amp;), o=0x55763e418ca0, arg=0x7fffcacd0ef0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:152
#17 0x00007f04cd5df1ad in QtPrivate::FunctionPointer&lt;void (KIO::TransferJob::*)(QByteArray const&amp;)&gt;::call&lt;QtPrivate::List&lt;QByteArray const&amp;&gt;, void&gt;(void (KIO::TransferJob::*)(QByteArray const&amp;), KIO::TransferJob*, void**) (f=&amp;virtual KIO::TransferJob::slotData(QByteArray const&amp;), o=0x55763e418ca0, arg=0x7fffcacd0ef0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:185
#18 0x00007f04cd5dedaa in QtPrivate::QSlotObject&lt;void (KIO::TransferJob::*)(QByteArray const&amp;), QtPrivate::List&lt;QByteArray const&amp;&gt;, void&gt;::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x55763e465360, r=0x55763e418ca0, a=0x7fffcacd0ef0, ret=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:418
#19 0x00007f04cf51f6be in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffcacd0ef0, r=0x55763e418ca0, this=0x55763e465360) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate&lt;false&gt;(QObject*, int, void**) (sender=0x55763e1e6cf0, signal_index=3, argv=0x7fffcacd0ef0) at kernel/qobject.cpp:3886
#21 0x00007f04cd5ad1a8 in KIO::SlaveInterface::data(QByteArray const&amp;) (this=0x55763e1e6cf0, _t1=...) at /home/kaiuwe/Projekte/kf5/kio/build/src/core/KF5KIOCore_autogen/include/moc_slaveinterface.cpp:439
#22 0x00007f04cd5aab3e in KIO::SlaveInterface::dispatch(int, QByteArray const&amp;) (this=0x55763e1e6cf0, _cmd=100, rawdata=...) at /home/kaiuwe/Projekte/kf5/kio/src/core/slaveinterface.cpp:137
#23 0x00007f04cd5aa799 in KIO::SlaveInterface::dispatch() (this=0x55763e1e6cf0) at /home/kaiuwe/Projekte/kf5/kio/src/core/slaveinterface.cpp:78
#24 0x00007f04cd5afaa8 in KIO::Slave::gotInput() (this=0x55763e1e6cf0) at /home/kaiuwe/Projekte/kf5/kio/src/core/slave.cpp:392
#25 0x00007f04cd5b2890 in QtPrivate::FunctorCall&lt;QtPrivate::IndexesList&lt;&gt;, QtPrivate::List&lt;&gt;, void, void (KIO::Slave::*)()&gt;::call(void (KIO::Slave::*)(), KIO::Slave*, void**) (f=(void (KIO::Slave::*)(class KIO::Slave * const)) 0x7f04cd5afa42 &lt;KIO::Slave::gotInput()&gt;, o=0x55763e1e6cf0, arg=0x7fffcacd1230) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:152
#26 0x00007f04cd5b2757 in QtPrivate::FunctionPointer&lt;void (KIO::Slave::*)()&gt;::call&lt;QtPrivate::List&lt;&gt;, void&gt;(void (KIO::Slave::*)(), KIO::Slave*, void**) (f=(void (KIO::Slave::*)(class KIO::Slave * const)) 0x7f04cd5afa42 &lt;KIO::Slave::gotInput()&gt;, o=0x55763e1e6cf0, arg=0x7fffcacd1230) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:185
#27 0x00007f04cd5b2546 in QtPrivate::QSlotObject&lt;void (KIO::Slave::*)(), QtPrivate::List&lt;&gt;, void&gt;::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x55763e1e69a0, r=0x55763e1e6cf0, a=0x7fffcacd1230, ret=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:418
#28 0x00007f04cf51f6be in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffcacd1230, r=0x55763e1e6cf0, this=0x55763e1e69a0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#29 doActivate&lt;false&gt;(QObject*, int, void**) (sender=0x55763b815040, signal_index=3, argv=0x7fffcacd1230) at kernel/qobject.cpp:3886
#30 0x00007f04cd53b24d in KIO::Connection::readyRead() (this=0x55763b815040) at /home/kaiuwe/Projekte/kf5/kio/build/src/core/KF5KIOCore_autogen/include/moc_connection_p.cpp:148
#31 0x00007f04cd539eb4 in KIO::ConnectionPrivate::dequeue() (this=0x55763e1e6c30) at /home/kaiuwe/Projekte/kf5/kio/src/core/connection.cpp:31
#32 0x00007f04cd53b050 in KIO::Connection::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x55763b815040, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7f04482fbd58) at /home/kaiuwe/Projekte/kf5/kio/build/src/core/KF5KIOCore_autogen/include/moc_connection_p.cpp:88
#33 0x00007f04cf516239 in QObject::event(QEvent*) (this=0x55763b815040, e=0x7f04482fbd10) at kernel/qobject.cpp:1314
#34 0x00007f04d01e5dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55763a101bd0, receiver=receiver@entry=0x55763b815040, e=e@entry=0x7f04482fbd10) at kernel/qapplication.cpp:3632
#35 0x00007f04d01eebb8 in QApplication::notify(QObject*, QEvent*) (this=0x7fffcacd19e0, receiver=0x55763b815040, e=0x7f04482fbd10) at kernel/qapplication.cpp:3156
#36 0x00007f04cf4e869a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55763b815040, event=0x7f04482fbd10) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#37 0x00007f04cf4eafa1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x55763a0f61b0) at kernel/qcoreapplication.cpp:1817
#38 0x00007f04cf543947 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55763a1e1350) at kernel/qeventdispatcher_glib.cpp:277
#39 0x00007f04cd7c4f9d in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f04cd7c5220 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f04cd7c52c3 in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f04cf542fa2 in QEventDispatcherGlib::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) (this=0x55763a1e3570, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#43 0x00007f04cf4e71ab in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) (this=this@entry=0x7fffcacd1890, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#44 0x00007f04cf4ef354 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#45 0x0000557639282e5e in  ()
#46 0x00007f04cee870b3 in __libc_start_main (main=0x557639281f10, argc=2, argv=0x7fffcacd1b68, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fffcacd1b58) at ../csu/libc-start.c:308
#47 0x0000557639282f8e in  ()
[Inferior 1 (process 40389) detached]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2010067</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2021-03-08 19:40:47 +0000</bug_when>
    <thetext>Might have been a KIO/kio-extras version mismatch but I now compiled KIO and kio-extras/thumbnail from master and now kdeinit crashes every time instead in a similar place:

Thread 1 (Thread 0x7fb198bc37c0 (LWP 2787)):
[KCrash Handler]
#4  __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:262
#5  0x00007fb19cd9b061 in memcpy (__len=29184, __src=&lt;optimized out&gt;, __dest=0x7fb194606000) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34
#6  ThumbnailProtocol::get (this=0x7ffe1b2ae240, url=...) at /home/kaiuwe/Projekte/kf5/kio-extras/thumbnail/thumbnail.cpp:301
#7  0x00007fb19871a45e in KIO::SlaveBase::dispatch (this=0x7ffe1b2ae240, command=67, data=...) at /home/kaiuwe/Projekte/kf5/kio/src/core/slavebase.cpp:1215
#8  0x00007fb198715883 in KIO::SlaveBase::dispatchLoop (this=0x7ffe1b2ae240) at /home/kaiuwe/Projekte/kf5/kio/src/core/slavebase.cpp:336
#9  0x00007fb19cd97c42 in kdemain (argc=&lt;optimized out&gt;, argv=0x561f5aaaabe0) at /home/kaiuwe/Projekte/kf5/kio-extras/thumbnail/thumbnail.cpp:124
#10 0x0000561f598cc076 in launch (argc=4, _name=0x561f5aaaaad8 &quot;/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so&quot;, args=0x561f5aaaab87 &quot;&quot;, cwd=&lt;optimized out&gt;, envc=0, envs=&lt;optimized out&gt;, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x561f598cf187 &quot;0&quot;) at ./src/kdeinit/kinit.cpp:692
#11 0x0000561f598cd4da in handle_launcher_request (sock=8, who=&lt;optimized out&gt;) at ./src/kdeinit/kinit.cpp:1130
#12 0x0000561f598cdeca in handle_requests (waitForPid=0) at ./src/kdeinit/kinit.cpp:1323
#13 0x0000561f598c90ff in main (argc=3, argv=&lt;optimized out&gt;) at ./src/kdeinit/kinit.cpp:1761
[Inferior 1 (process 2787) detached]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015787</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2021-03-16 13:29:45 +0000</bug_when>
    <thetext>Getting constant crashes every time a thumbnail is generated, always in a seemingly different place but always with the memmove

Thread 1 (Thread 0x7ff90cff0cc0 (LWP 47665)):
[KCrash Handler]
#4  __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:262
#5  0x00007ff91140d3d9 in memcpy (__len=54784, __src=&lt;optimized out&gt;, __dest=0x7ff90861d000) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34
#6  ThumbnailProtocol::get (this=0x7ffef0acee50, url=...) at ./thumbnail/thumbnail.cpp:306
#7  0x00007ff90cb84ab6 in KIO::SlaveBase::dispatch (this=0x7ffef0acee50, command=67, data=...) at ./src/core/slavebase.cpp:1215
#8  0x00007ff90cb85156 in KIO::SlaveBase::dispatchLoop (this=this@entry=0x7ffef0acee50) at ./src/core/slavebase.cpp:336
#9  0x00007ff911409cc2 in kdemain (argc=&lt;optimized out&gt;, argv=0x55895b97b400) at ./thumbnail/thumbnail.cpp:124</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2016294</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-03-17 23:55:55 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 430862 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>