Bug 420224 - kdeinit5 crashes when thumbnailing docx files
Summary: kdeinit5 crashes when thumbnailing docx files
Status: RESOLVED DUPLICATE of bug 430862
Alias: None
Product: calligracommon
Classification: Applications
Component: general (show other bugs)
Version: 3.1.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-17 22:00 UTC by Cezar Tigaret
Modified: 2021-03-17 23:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The crash report (4.40 KB, text/plain)
2020-04-17 22:00 UTC, Cezar Tigaret
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cezar Tigaret 2020-04-17 22:00:56 UTC
Created attachment 127624 [details]
The crash report

SUMMARY
kdeinit5 crashes when _some_ Office docx document file is either hovered, or selected in Dolphin, with Dolphin configured to show previews (thumbnails)

STEPS TO REPRODUCE
1. open a Dolphin window containing MSWord documents
2. Dolphin generates previews of other files inside e.g LibreOffice, MSoffice powerpoint & word
3. 

OBSERVED RESULT
The KDE Crash handler pops with the general information:
"We are sorry, kdeinit5 closed unexpectedly.
You cannot report tis error, because kdeinit5 does not provide a bug reporting address"

Plase note that some (usually, small) docx and pptx files do not trigger this behaviour, but other files trigger this crash every time. Neither of these files are encrypted, nor password protected.

The generate crash information is:
Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0c254e9900 (LWP 24137))]

Thread 3 (Thread 0x7f0c0a215700 (LWP 24139)):
#0  0x00007f0c234376db in poll () from /lib64/libc.so.6
#1  0x00007f0c1f6521a9 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f0c1f6522bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f0c23a0e7eb in QEventDispatcherGlib::processEvents (this=0x7f0c04000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f0c239add4a in QEventLoop::exec (this=this@entry=0x7f0c0a214c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f0c237be657 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#6  0x00007f0c1a480115 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f0c237bfb2c in QThreadPrivate::start (arg=0x7f0c1a6f7da0) at thread/qthread_unix.cpp:342
#8  0x00007f0c21a6c4f9 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f0c23441f2f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f0c11d4b700 (LWP 24138)):
#0  0x00007f0c234376db in poll () from /lib64/libc.so.6
#1  0x00007f0c2499f307 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f0c249a0f3a in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f0c1492d200 in QXcbEventQueue::run (this=0x55b1d1b04f50) at qxcbeventqueue.cpp:228
#4  0x00007f0c237bfb2c in QThreadPrivate::start (arg=0x55b1d1b04f50) at thread/qthread_unix.cpp:342
#5  0x00007f0c21a6c4f9 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f0c23441f2f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f0c254e9900 (LWP 24137)):
[KCrash Handler]
#6  QVector<QScriptLine>::at (i=0, this=0x0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:456
#7  QTextLine::y (this=this@entry=0x7ffccca44dc0) at text/qtextlayout.cpp:1459
#8  0x00007f0bfc1eb554 in KoTextDocumentLayout::positionAnchorTextRanges (this=0x55b1d23cb810, pos=<optimized out>, length=<optimized out>, effectiveDocument=<optimized out>) at /usr/src/debug/calligra-3.1.0-lp151.166.1.x86_64/libs/textlayout/KoTextDocumentLayout.cpp:620
#9  0x00007f0bfc1ceaac in KoTextLayoutArea::layoutBlock (this=<optimized out>, cursor=<optimized out>) at /usr/src/debug/calligra-3.1.0-lp151.166.1.x86_64/libs/textlayout/KoTextLayoutArea.cpp:1351
#10 0x00007f0bfc1d176d in KoTextLayoutArea::layout (this=this@entry=0x55b1d2a1df00, cursor=cursor@entry=0x55b1d2e93490) at /usr/src/debug/calligra-3.1.0-lp151.166.1.x86_64/libs/textlayout/KoTextLayoutArea.cpp:689
#11 0x00007f0bfc1e891d in KoTextLayoutRootArea::layoutRoot (this=<optimized out>, cursor=<optimized out>) at /usr/src/debug/calligra-3.1.0-lp151.166.1.x86_64/libs/textlayout/KoTextLayoutRootArea.cpp:69
#12 0x00007f0bfc1ec113 in KoTextDocumentLayout::doLayout (this=this@entry=0x55b1d23cb810) at /usr/src/debug/calligra-3.1.0-lp151.166.1.x86_64/libs/textlayout/KoTextDocumentLayout.cpp:819
#13 0x00007f0bfc1ec6b8 in KoTextDocumentLayout::layout (this=0x55b1d23cb810) at /usr/src/debug/calligra-3.1.0-lp151.166.1.x86_64/libs/textlayout/KoTextDocumentLayout.cpp:703
#14 0x00007f0bf993f78e in KWPage::thumbnail(QSize const&, KoShapeManager*, bool) const () from /usr/lib64/libwordsprivate.so.16
#15 0x00007f0bf99293d6 in KWDocument::generatePreview(QSize const&) () from /usr/lib64/libwordsprivate.so.16
#16 0x00007f0bfcc7999b in CalligraCreator::create (this=0x55b1d20fcf90, path=..., width=256, height=256, image=...) at /usr/src/debug/calligra-3.1.0-lp151.166.1.x86_64/extras/thumbnail/calligracreator.cpp:125
#17 0x00007f0c14e26297 in ThumbnailProtocol::get (this=0x7ffccca45860, url=...) at /usr/src/debug/kio-extras5-19.12.3-lp151.1.2.x86_64/thumbnail/thumbnail.cpp:266
#18 0x00007f0c1b93d7fd in KIO::SlaveBase::dispatch (this=0x7ffccca45860, command=67, data=...) at /usr/src/debug/kio-5.69.0-lp151.286.1.x86_64/src/core/slavebase.cpp:1198
#19 0x00007f0c1b93e0e6 in KIO::SlaveBase::dispatchLoop (this=this@entry=0x7ffccca45860) at /usr/src/debug/kio-5.69.0-lp151.286.1.x86_64/src/core/slavebase.cpp:338
#20 0x00007f0c14e23920 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kio-extras5-19.12.3-lp151.1.2.x86_64/thumbnail/thumbnail.cpp:138
#21 0x000055b1d10ee5ff in ?? ()
#22 0x000055b1d10ef73c in ?? ()
#23 0x000055b1d10f00af in ?? ()
#24 0x000055b1d10eb42c in ?? ()
#25 0x00007f0c2336a34a in __libc_start_main () from /lib64/libc.so.6
#26 0x000055b1d10ebfaa in ?? ()
[Inferior 1 (process 24137) detached]







EXPECTED RESULT
The thumbnail preview shoudld be generated, and no kdeinit5 crash should occur


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
Operating System: openSUSE Leap 15.1
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1
Kernel Version: 4.12.14-lp151.28.44-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-3770K CPU @ 3.50GHz
Memory: 15.6 GiB of RAM
Comment 1 Nate Graham 2021-03-17 23:43:10 UTC

*** This bug has been marked as a duplicate of bug 430862 ***