Bug 405546

Summary: Saving a document crashs the application
Product: [Applications] karbon Reporter: Ali <overman.supermundane>
Component: generalAssignee: Jan Hambrecht <jaham>
Status: RESOLVED WORKSFORME    
Severity: crash CC: bvbfan
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ali 2019-03-17 04:23:43 UTC
Application: karbon (3.0.1)

Qt Version: 5.9.5
Frameworks Version: 5.44.0
Operating System: Linux 4.18.0-16-generic x86_64
Distribution: Ubuntu 18.04.2 LTS

-- Information about the crash:
- What I was doing when the application crashed:
tried to save a document 
wither the document is blank (new) or had any drawing, it will always crash

The crash can be reproduced every time.

-- Backtrace:
Application: Karbon (karbon), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4bf2040c80 (LWP 22552))]

Thread 4 (Thread 0x7f4bba277700 (LWP 22556)):
#0  0x00007f4bea79d9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5601e0ef6e98) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f4bea79d9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x5601e0ef6e48, cond=0x5601e0ef6e70) at pthread_cond_wait.c:502
#2  0x00007f4bea79d9f3 in __pthread_cond_wait (cond=0x5601e0ef6e70, mutex=0x5601e0ef6e48) at pthread_cond_wait.c:655
#3  0x00007f4bbfac323b in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#4  0x00007f4bbfac2f67 in  () at /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#5  0x00007f4bea7976db in start_thread (arg=0x7f4bba277700) at pthread_create.c:463
#6  0x00007f4bf19cf88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f4bd3de3700 (LWP 22554)):
#0  0x00007f4bf19c2bf9 in __GI___poll (fds=0x7f4bcc012eb0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f4be929e539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4be929e64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4bf042290b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f4bf03c79ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f4bf01e622a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f4beade5d45 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f4bf01eb16d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f4bea7976db in start_thread (arg=0x7f4bd3de3700) at pthread_create.c:463
#9  0x00007f4bf19cf88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f4bdae9f700 (LWP 22553)):
#0  0x00007f4bf19c2bf9 in __GI___poll (fds=0x7f4bdae9eca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f4be294b747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f4be294d36a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f4bdd7d52a9 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f4bf01eb16d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f4bea7976db in start_thread (arg=0x7f4bdae9f700) at pthread_create.c:463
#6  0x00007f4bf19cf88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f4bf2040c80 (LWP 22552)):
[KCrash Handler]
#6  0x00007f4bee019cc8 in KoStore::pos() const () at /usr/lib/x86_64-linux-gnu/libkostore.so.15
#7  0x00007f4bc29afbac in  () at /usr/lib/x86_64-linux-gnu/libfreeimage.so.3
#8  0x00007f4bc29a40ed in FreeImage_GetFileTypeFromHandle () at /usr/lib/x86_64-linux-gnu/libfreeimage.so.3
#9  0x00007f4bc2c2d1de in FreeImageHandler::GetFIF(QIODevice*, QByteArray const&) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libxfreeimage.so
#10 0x00007f4bc2c2e8ec in FreeimageQt5Plugin::capabilities(QIODevice*, QByteArray const&) const () at /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libxfreeimage.so
#11 0x00007f4beb404a4e in  () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#12 0x00007f4beb404d2c in  () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x00007f4beb4051b8 in QImageWriter::canWrite() const () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#14 0x00007f4beb405377 in QImageWriter::write(QImage const&) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#15 0x00007f4beb3d8c08 in QImageData::doImageIO(QImage const*, QImageWriter*, int) const () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#16 0x00007f4beb3d8e19 in QImage::save(QIODevice*, char const*, int) const () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#17 0x00007f4bf1605d64 in KoDocument::saveOasisPreview(KoStore*, KoXmlWriter*) () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#18 0x00007f4bf1606250 in KoDocument::saveNativeFormatODF(KoStore*, QByteArray const&) () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#19 0x00007f4bf160723c in KoDocument::saveNativeFormat(QString const&) () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#20 0x00007f4bf1601a77 in KoDocument::saveFile() () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#21 0x00007f4bf160ad1a in KoDocument::save() () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#22 0x00007f4bf160c34c in KoDocument::saveAs(QUrl const&) () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#23 0x00007f4bf161bf67 in KoMainWindow::saveDocument(bool, bool, int) () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#24 0x00007f4bf161d1df in KoMainWindow::slotFileSave() () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#25 0x00007f4bf1679115 in  () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#26 0x00007f4bf03f85b5 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f4bf09d8122 in QAction::triggered(bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f4bf09da80c in QAction::activate(QAction::ActionEvent) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f4bf0b570bc in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f4bf0b5e56b in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007f4bf0b5f393 in QMenu::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007f4bf0a1d038 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007f4bf0b616bb in QMenu::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007f4bf09de82c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007f4bf09e664f in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007f4bf15fb947 in KoApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#37 0x00007f4bf03c99a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007f4bf09e5622 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f4bf0a37e85 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x00007f4bf0a3a7ba in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007f4bf09de82c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#42 0x00007f4bf09e60f4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007f4bf15fb947 in KoApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libkomain.so.15
#44 0x00007f4bf03c99a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007f4beb397523 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#46 0x00007f4beb398ff5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#47 0x00007f4beb3702eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#48 0x00007f4bdd8381c0 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#49 0x00007f4be929e387 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f4be929e5c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007f4be929e64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007f4bf04228ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#53 0x00007f4bf03c79ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#54 0x00007f4bf03d0a84 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#55 0x00007f4bf1ca212a in kdemain () at /usr/lib/x86_64-linux-gnu/libkdeinit5_karbon.so
#56 0x00007f4bf18cfb97 in __libc_start_main (main=0x5601df1fbb20, argc=1, argv=0x7ffcf026c9a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcf026c998) at ../csu/libc-start.c:310
#57 0x00005601df1fbb5a in _start ()
[Inferior 1 (process 22552) detached]

Reported using DrKonqi
Comment 1 Christoph Feck 2019-03-31 07:58:47 UTC
*** Bug 405559 has been marked as a duplicate of this bug. ***
Comment 2 Anthony Fieroni 2019-06-04 19:54:27 UTC
Can you append a document?
Comment 3 Justin Zobel 2022-09-22 12:29:35 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-10-07 04:51:15 UTC
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 > 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!
Comment 5 Bug Janitor Service 2022-10-22 05:01:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > 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!