Bug 199230 - closing print preview crashes okular
Summary: closing print preview crashes okular
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 04:14 UTC by Tobias Schula
Modified: 2010-10-14 00:27 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Schula 2009-07-07 04:14:19 UTC
Application that crashed: okular
Version of the application: 0.8.90
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.1
Operating System: Linux 2.6.30-020630-generic x86_64
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
When closing the print preview okular crashes. This only happens if there are notes on the specific document.

 -- Backtrace:
Application: Okular (okular), signal: Aborted
[Current thread is 0 (LWP 21978)]

Thread 2 (Thread 0x7f06dbef3950 (LWP 22009)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f06e88b4ce9 in QWaitCondition::wait (this=0x1792868, mutex=0x1792860, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f06e88b0af0 in QSemaphore::acquire (this=0x17c5820, n=1) at thread/qsemaphore.cpp:143
#3  0x00007f06d5325ea5 in ?? () from /usr/lib/kde4/okularGenerator_ghostview.so
#4  0x00007f06e88b3d02 in QThreadPrivate::start (arg=0x17c5810) at thread/qthread_unix.cpp:189
#5  0x00007f06e505c3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f06e7219fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f06eaa1b750 (LWP 21978)):
[KCrash Handler]
#5  0x00007f06e7166fb5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f06e7168bc3 in *__GI_abort () at abort.c:88
#7  0x00007f06e71abce0 in malloc_printerr (action=2, str=0x7f06e726da86 "free(): invalid pointer", ptr=0x55da) at malloc.c:5999
#8  0x00007f06e88f77cc in QString::free (d=0x174ffe0) at tools/qstring.cpp:953
#9  0x00007f06e89376e4 in ~QFileInfoPrivate (this=0x1756290) at ../../include/QtCore/../../src/corelib/tools/qstring.h:866
#10 0x00007f06e8937791 in ~QFileInfo (this=0x7fff288379f0) at io/qfileinfo.cpp:442
#11 0x00007f06e97b9cc0 in KIconCache::find (this=0x172fdf0, key=@0x7fff28837e60, pix=@0x7fff28837d20, path=0x7fff28838c70) at /build/buildd/kde4libs-4.2.95/kdeui/icons/kiconcache.cpp:86
#12 0x00007f06e97ad42f in KIconLoader::loadIcon (this=0x16f8020, _name=@0x7fff28838c50, group=KIconLoader::User, size=32, state=0, overlays=@0x7fff28838c40, path_store=0x7fff28838c70, 
    canReturnNull=true) at /build/buildd/kde4libs-4.2.95/kdeui/icons/kiconloader.cpp:1035
#13 0x00007f06dff2d369 in ?? () from /usr/lib/kde4/okularpart.so
#14 0x00007f06dff3b67e in ?? () from /usr/lib/kde4/okularpart.so
#15 0x00007f06dff3d832 in ?? () from /usr/lib/kde4/okularpart.so
#16 0x00007f06e7e41c06 in QWidget::event (this=0x11a5570, event=0x7fff28839b40) at kernel/qwidget.cpp:7659
#17 0x00007f06dff49bed in ?? () from /usr/lib/kde4/okularpart.so
#18 0x00007f06e7df0b9d in QApplicationPrivate::notify_helper (this=0x10cd580, receiver=0x11a5570, e=0x7fff28839b40) at kernel/qapplication.cpp:4057
#19 0x00007f06e7df8dea in QApplication::notify (this=0x7fff2883ab40, receiver=0x11a5570, e=0x7fff28839b40) at kernel/qapplication.cpp:4022
#20 0x00007f06e97dd62b in KApplication::notify (this=0x7fff2883ab40, receiver=0x11a5570, event=0x7fff28839b40) at /build/buildd/kde4libs-4.2.95/kdeui/kernel/kapplication.cpp:302
#21 0x00007f06e899cdfc in QCoreApplication::notifyInternal (this=0x7fff2883ab40, receiver=0x11a5570, event=0x7fff28839b40) at kernel/qcoreapplication.cpp:610
#22 0x00007f06e7e48e55 in QWidgetPrivate::drawWidget (this=0x1243cc0, pdev=0x11bcf88, rgn=@0x7fff28839eb0, offset=@0x7fff28839ea0, flags=68, sharedPainter=0x0, backingStore=0x124e630)
    at kernel/qwidget.cpp:5052
#23 0x00007f06e7fee5be in QWidgetBackingStore::sync (this=0x124e630) at painting/qbackingstore.cpp:1260
#24 0x00007f06e7e3a510 in QWidgetPrivate::syncBackingStore (this=0x118f5c0) at kernel/qwidget.cpp:1602
#25 0x00007f06e7e41a9d in QWidget::event (this=0x118f3d0, event=0x1134af0) at kernel/qwidget.cpp:7799
#26 0x00007f06e81f9deb in QMainWindow::event (this=0x118f3d0, event=0x1134af0) at widgets/qmainwindow.cpp:1402
#27 0x00007f06e98ead68 in KXmlGuiWindow::event (this=0x55da, ev=0x55da) at /build/buildd/kde4libs-4.2.95/kdeui/xmlgui/kxmlguiwindow.cpp:131
#28 0x00007f06e7df0b9d in QApplicationPrivate::notify_helper (this=0x10cd580, receiver=0x118f3d0, e=0x1134af0) at kernel/qapplication.cpp:4057
#29 0x00007f06e7df8dea in QApplication::notify (this=0x7fff2883ab40, receiver=0x118f3d0, e=0x1134af0) at kernel/qapplication.cpp:4022
#30 0x00007f06e97dd62b in KApplication::notify (this=0x7fff2883ab40, receiver=0x118f3d0, event=0x1134af0) at /build/buildd/kde4libs-4.2.95/kdeui/kernel/kapplication.cpp:302
#31 0x00007f06e899cdfc in QCoreApplication::notifyInternal (this=0x7fff2883ab40, receiver=0x118f3d0, event=0x1134af0) at kernel/qcoreapplication.cpp:610
#32 0x00007f06e899da6a in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x10b4100) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#33 0x00007f06e89c68a3 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#34 0x00007f06e3d7a20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0x00007f06e3d7d8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#36 0x00007f06e3d7da7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#37 0x00007f06e89c652f in QEventDispatcherGlib::processEvents (this=0x10b38f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#38 0x00007f06e7e8970f in QGuiEventDispatcherGlib::processEvents (this=0x55da, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#39 0x00007f06e899b6a2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 679717504}) at kernel/qeventloop.cpp:149
#40 0x00007f06e899ba6d in QEventLoop::exec (this=0x7fff2883aac0, flags={i = 679717584}) at kernel/qeventloop.cpp:200
#41 0x00007f06e899dd34 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#42 0x000000000040807c in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2009-07-07 11:58:58 UTC
If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? You need to install the "kdegraphics-dbg" package. 
It could be an kdelibs issue too
Thanks
Comment 2 Dario Andres 2009-08-17 23:00:14 UTC
No response. Marking as NEEDSINFO
Comment 3 Christoph Feck 2010-10-14 00:27:07 UTC
(I quickly reviewed the backtrace of this crash, and it appears to be caused by KIconCache memory corruption. If this is not the case, please reopen.)

Closing all KIconCache crashes as fixed, because the KIconLoader in KDE SC 4.5 now uses KSharedDataCache to cache icons, and it is believed that the new class is less prone to random crashes or memory corruption.

If you still can reproduce a crash with version 4.5, please report it separately. If you cannot upgrade to 4.5 yet, you should be able to work around this crash by deleting the icon cache files in /var/tmp/kdecache-<user>/kpc