Application: kate (20.12.0) Qt Version: 5.15.2 Frameworks Version: 5.78.0 Operating System: Linux 5.10.0-3-amd64 x86_64 Windowing system: X11 Distribution: Debian GNU/Linux bullseye/sid -- Information about the crash: - What I was doing when the application crashed: I opened an OpenOffice text template (.ott) file in Kate while having the preview function enabled, kate crashed. Could not reproduce. The crash does not seem to be reproducible. -- Backtrace: Application: Kate (kate), signal: Segmentation fault Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7f9d9a75b8c0 (LWP 82042))] [KCrash Handler] #6 KoPart::document (this=0x0) at ./libs/main/KoPart.cpp:126 #7 0x00007f9d90639fdc in OkularOdtGenerator::loadDocument (this=0x55631a480300, fileName=..., pages=...) at ./extras/okularodtgenerator/OkularOdtGenerator.cpp:98 #8 0x00007f9d7e2671e6 in Okular::Generator::loadDocumentWithPassword (this=<optimized out>, fileName=..., pagesVector=...) at ./core/generator.cpp:203 #9 0x00007f9d7e258473 in Okular::DocumentPrivate::openDocumentInternal (this=0x556318f546e0, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at ./core/document.cpp:893 #10 0x00007f9d7e258cc3 in Okular::Document::openDocument (this=this@entry=0x5563196f4e70, docFile=..., url=..., _mime=..., password=...) at ./core/document.cpp:2339 #11 0x00007f9d7e3ba645 in Okular::Part::doOpenFile (this=this@entry=0x556317b9fd50, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffd5a6da817) at ./part/part.cpp:1372 #12 0x00007f9d7e3bb222 in Okular::Part::openFile (this=0x556317b9fd50) at ./part/part.cpp:1490 #13 0x00007f9da0ad55d5 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x556318f87da0) at ./src/readonlypart.cpp:177 #14 0x00007f9da0ad6363 in KParts::ReadOnlyPart::openUrl (this=this@entry=0x556317b9fd50, url=...) at ./src/readonlypart.cpp:140 #15 0x00007f9d7e3aceb5 in Okular::Part::openUrl (this=0x556317b9fd50, _url=..., swapInsteadOfOpening=<optimized out>) at ./part/part.cpp:1722 #16 0x00007f9da0ad6552 in KParts::ReadOnlyPart::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x55631a3ae098) at ./obj-x86_64-linux-gnu/src/KF5Parts_autogen/include/moc_readonlypart.cpp:114 #17 0x00007f9d9f19df31 in QObject::event (this=0x556317b9fd50, e=0x55631a3ae050) at kernel/qobject.cpp:1314 #18 0x00007f9d9fc7215f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x556317b9fd50, e=0x55631a3ae050) at kernel/qapplication.cpp:3632 #19 0x00007f9d9f171f0a in QCoreApplication::notifyInternal2 (receiver=0x556317b9fd50, event=0x55631a3ae050) at kernel/qcoreapplication.cpp:1063 #20 0x00007f9d9f174941 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5563179f3250) at kernel/qcoreapplication.cpp:1817 #21 0x00007f9d9f1c9dd3 in postEventSourceDispatch (s=0x556317b3e970) at kernel/qeventdispatcher_glib.cpp:277 #22 0x00007f9d9cef1e3b in g_main_dispatch (context=0x7f9d94005000) at ../../../glib/gmain.c:3325 #23 g_main_context_dispatch (context=0x7f9d94005000) at ../../../glib/gmain.c:4043 #24 0x00007f9d9cef20e8 in g_main_context_iterate (context=context@entry=0x7f9d94005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4119 #25 0x00007f9d9cef219f in g_main_context_iteration (context=0x7f9d94005000, may_block=may_block@entry=1) at ../../../glib/gmain.c:4184 #26 0x00007f9d9f1c945f in QEventDispatcherGlib::processEvents (this=0x556317b3fcd0, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #27 0x00007f9d9f1708cb in QEventLoop::exec (this=this@entry=0x7ffd5a6daf40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #28 0x00007f9d9f178b40 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #29 0x00007f9d9f540bdc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867 #30 0x00007f9d9fc720d5 in QApplication::exec () at kernel/qapplication.cpp:2824 #31 0x00005563170aaf85 in main (argc=<optimized out>, argv=<optimized out>) at ./kate/main.cpp:626 [Inferior 1 (process 82042) detached] Reported using DrKonqi
Hmm, this looks more like a crash inside Okular (or there inside the KoPart).
This is calligra.
I have no idea how you ended up in that path of code, but indeed there is a big lack in error handling. I'll commit a fix.
Crash fixed with https://invent.kde.org/office/calligra/commit/31b66d24183c9eb0ab58dfcde419b126c49906a6 For the root error to be found, we will need a bug report that we can reproduce
Created attachment 136126 [details] template file producing the crash
I played around a bit and could finally reproduce the crash. I attached a file that reproducibly causes a crash.
Do you have the same backtrace, or is it a different one?
It's the same backtrace.