Bug 324504 - Okular crashes when closing window
Summary: Okular crashes when closing window
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.17.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi, triaged
Depends on:
Blocks:
 
Reported: 2013-09-04 15:59 UTC by Rudolf Leitgeb
Modified: 2018-10-27 02:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (13.44 KB, text/plain)
2014-03-09 03:18 UTC, arrenlex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolf Leitgeb 2013-09-04 15:59:53 UTC
Application: okular (0.17.0)
KDE Platform Version: 4.11.00
Qt Version: 4.8.4
Operating System: Linux 3.8.0-29-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:

I opened the following PDF: http://www.freestylephoto.biz/pdf/msds/tetenal/102226_002.pdf

I (accidentially) switched to full screen mode, after that whenever I closed the window I got this crash

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f1d9b1527c0 (LWP 10119))]

Thread 2 (Thread 0x7f1d84459700 (LWP 10125)):
#0  0x00007f1d98186b0d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f1d94dfd6cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f1d94dbed3c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f1d94dbf175 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f1d94dbf304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f1d98b88036 in QEventDispatcherGlib::processEvents (this=0x7f1d740013e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f1d98b5838f in QEventLoop::processEvents (this=this@entry=0x7f1d84458d90, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f1d98b58618 in QEventLoop::exec (this=this@entry=0x7f1d84458d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f1d98a5a410 in QThread::exec (this=this@entry=0x1ab0520) at thread/qthread.cpp:542
#9  0x00007f1d98b39edf in QInotifyFileSystemWatcherEngine::run (this=0x1ab0520) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007f1d98a5cbec in QThreadPrivate::start (arg=0x1ab0520) at thread/qthread_unix.cpp:338
#11 0x00007f1d95291f8e in start_thread (arg=0x7f1d84459700) at pthread_create.c:311
#12 0x00007f1d98194e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f1d9b1527c0 (LWP 10119)):
[KCrash Handler]
#6  0x00007f1d89ba0b4c in PagePainter::paintCroppedPageOnPainter (destPainter=destPainter@entry=0x7fff6d747b40, page=page@entry=0x1a14ec0, observer=observer@entry=0x16d2e98, flags=flags@entry=41, scaledWidth=245, scaledHeight=347, limits=..., crop=..., viewPortPoint=viewPortPoint@entry=0x0) at ../ui/pagepainter.cpp:92
#7  0x00007f1d89ba5e49 in PagePainter::paintPageOnPainter (destPainter=destPainter@entry=0x7fff6d747b40, page=0x1a14ec0, observer=0x16d2e98, flags=flags@entry=41, scaledWidth=<optimized out>, scaledHeight=<optimized out>, limits=...) at ../ui/pagepainter.cpp:59
#8  0x00007f1d89be188c in ThumbnailWidget::paint (this=0x1a73500, p=..., _clipRect=...) at ../ui/thumbnaillist.cpp:964
#9  0x00007f1d89be1bdc in ThumbnailListPrivate::paintEvent (this=<optimized out>, e=0x7fff6d7483d0) at ../ui/thumbnaillist.cpp:191
#10 0x00007f1d99590a3e in QWidget::event (this=0x16d6f20, event=0x7fff6d7483d0) at kernel/qwidget.cpp:8532
#11 0x00007f1d995438ec in QApplicationPrivate::notify_helper (this=this@entry=0x133a040, receiver=receiver@entry=0x16d6f20, e=e@entry=0x7fff6d7483d0) at kernel/qapplication.cpp:4567
#12 0x00007f1d9954625b in QApplication::notify (this=this@entry=0x7fff6d74bd70, receiver=receiver@entry=0x16d6f20, e=e@entry=0x7fff6d7483d0) at kernel/qapplication.cpp:4428
#13 0x00007f1d9a24d916 in KApplication::notify (this=0x7fff6d74bd70, receiver=0x16d6f20, event=0x7fff6d7483d0) at ../../kdeui/kernel/kapplication.cpp:311
#14 0x00007f1d98b5963e in QCoreApplication::notifyInternal (this=0x7fff6d74bd70, receiver=receiver@entry=0x16d6f20, event=event@entry=0x7fff6d7483d0) at kernel/qcoreapplication.cpp:946
#15 0x00007f1d995956b4 in sendSpontaneousEvent (event=0x7fff6d7483d0, receiver=0x16d6f20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#16 QWidgetPrivate::drawWidget (this=this@entry=0x16d6fb0, pdev=pdev@entry=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5598
#17 0x00007f1d995961af in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x16d32b0, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5807
#18 0x00007f1d99595243 in QWidgetPrivate::drawWidget (this=this@entry=0x16d32b0, pdev=pdev@entry=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5651
#19 0x00007f1d995961af in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x16d2ec0, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=<optimized out>, index@entry=1, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5807
#20 0x00007f1d99595ff4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x16d2ec0, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=1, index@entry=2, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5794
#21 0x00007f1d99595ff4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x16d2ec0, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=2, index@entry=3, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5794
#22 0x00007f1d99595ff4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x16d2ec0, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=3, index@entry=4, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5794
#23 0x00007f1d99595ff4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x16d2ec0, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=4, index@entry=6, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5794
#24 0x00007f1d99595ff4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x16d2ec0, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=6, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5794
#25 0x00007f1d99595243 in QWidgetPrivate::drawWidget (this=this@entry=0x16d2ec0, pdev=pdev@entry=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5651
#26 0x00007f1d995961af in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x16c3c50, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5807
#27 0x00007f1d99595243 in QWidgetPrivate::drawWidget (this=this@entry=0x16c3c50, pdev=pdev@entry=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5651
#28 0x00007f1d995961af in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x151ad70, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5807
#29 0x00007f1d99595243 in QWidgetPrivate::drawWidget (this=this@entry=0x151ad70, pdev=pdev@entry=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5651
#30 0x00007f1d995961af in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x1526870, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5807
#31 0x00007f1d99595243 in QWidgetPrivate::drawWidget (this=this@entry=0x1526870, pdev=pdev@entry=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5651
#32 0x00007f1d995961af in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x1528f30, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=<optimized out>, index@entry=2, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5807
#33 0x00007f1d99595ff4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x1528f30, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=2, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5794
#34 0x00007f1d99595243 in QWidgetPrivate::drawWidget (this=this@entry=0x1528f30, pdev=pdev@entry=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5651
#35 0x00007f1d995961af in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x1528900, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5807
#36 0x00007f1d99595243 in QWidgetPrivate::drawWidget (this=this@entry=0x1528900, pdev=pdev@entry=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5651
#37 0x00007f1d995961af in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x1464120, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=<optimized out>, index@entry=14, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5807
#38 0x00007f1d99595ff4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x1464120, pdev=pdev@entry=0x1aa1ad0, siblings=..., index=14, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5794
#39 0x00007f1d99595243 in QWidgetPrivate::drawWidget (this=0x1464120, pdev=0x1aa1ad0, rgn=..., offset=..., flags=flags@entry=5, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x18e98c0) at kernel/qwidget.cpp:5651
#40 0x00007f1d9975af48 in QWidgetBackingStore::sync (this=0x18e98c0) at painting/qbackingstore.cpp:1373
#41 0x00007f1d99584060 in QWidgetPrivate::syncBackingStore (this=this@entry=0x1464120) at kernel/qwidget.cpp:1896
#42 0x00007f1d99590ee4 in QWidget::event (this=this@entry=0x1463f40, event=event@entry=0x19dde20) at kernel/qwidget.cpp:8679
#43 0x00007f1d9995c9ab in QMainWindow::event (this=this@entry=0x1463f40, event=event@entry=0x19dde20) at widgets/qmainwindow.cpp:1478
#44 0x00007f1d9a300813 in KMainWindow::event (this=this@entry=0x1463f40, ev=ev@entry=0x19dde20) at ../../kdeui/widgets/kmainwindow.cpp:1084
#45 0x00007f1d9a33d908 in KXmlGuiWindow::event (this=0x1463f40, ev=0x19dde20) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#46 0x00007f1d995438ec in QApplicationPrivate::notify_helper (this=this@entry=0x133a040, receiver=receiver@entry=0x1463f40, e=e@entry=0x19dde20) at kernel/qapplication.cpp:4567
#47 0x00007f1d9954625b in QApplication::notify (this=this@entry=0x7fff6d74bd70, receiver=receiver@entry=0x1463f40, e=e@entry=0x19dde20) at kernel/qapplication.cpp:4428
#48 0x00007f1d9a24d916 in KApplication::notify (this=0x7fff6d74bd70, receiver=0x1463f40, event=0x19dde20) at ../../kdeui/kernel/kapplication.cpp:311
#49 0x00007f1d98b5963e in QCoreApplication::notifyInternal (this=0x7fff6d74bd70, receiver=receiver@entry=0x1463f40, event=event@entry=0x19dde20) at kernel/qcoreapplication.cpp:946
#50 0x00007f1d98b5d171 in sendEvent (event=0x19dde20, receiver=0x1463f40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#51 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1301670) at kernel/qcoreapplication.cpp:1570
#52 0x00007f1d98b5d4a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#53 0x00007f1d98b87e83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#54 postEventSourceDispatch (s=0x1341fd0) at kernel/qeventdispatcher_glib.cpp:279
#55 0x00007f1d94dbef05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#56 0x00007f1d94dbf248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007f1d94dbf304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007f1d98b88016 in QEventDispatcherGlib::processEvents (this=0x1302b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#59 0x00007f1d995e913e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#60 0x00007f1d98b5838f in QEventLoop::processEvents (this=this@entry=0x7fff6d74b9f0, flags=...) at kernel/qeventloop.cpp:149
#61 0x00007f1d98b58618 in QEventLoop::exec (this=this@entry=0x7fff6d74b9f0, flags=...) at kernel/qeventloop.cpp:204
#62 0x00007f1d98b5dcf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#63 0x00007f1d99541ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#64 0x00000000004082ce in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:100

Possible duplicates by query: bug 281373.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2013-09-21 15:25:26 UTC
full screen or presentation mode?

Does it crash if you don't go to either of them (i.e. just open and close okular with that file)?
Comment 2 Christoph Feck 2013-10-12 18:08:06 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Rudolf Leitgeb 2013-10-12 21:15:47 UTC
Sorry for the delay in my responses. I haven't been on the affected computer for a while and probably won't be for another few weeks. I will do some tests when I will be on that computer again. Generally, in my experience, okular ran reliably and without crashes, only in this instance with that file and switching between full screen and windowed display I got it to crash repeatedly.
Comment 4 arrenlex 2014-03-09 03:18:08 UTC
Created attachment 85485 [details]
New crash information added by DrKonqi

okular (0.17.5) on KDE Platform 4.11.5 using Qt 4.8.4

- What I was doing when the application crashed:

I opened a PDF document and then hit ctrl+w to close the document (not even closing the window), resulting in this crash. Full-screen mode was not involved. Did not happen when trying the same operation on the same document.

-- Backtrace (Reduced):
#6  0x00007f490e57f21d in PagePainter::paintCroppedPageOnPainter (destPainter=destPainter@entry=0x7fff8a14cb90, page=page@entry=0xd30930, observer=observer@entry=0x9e0488, flags=flags@entry=41, scaledWidth=scaledWidth@entry=53, scaledHeight=scaledHeight@entry=69, limits=..., crop=..., viewPortPoint=viewPortPoint@entry=0x0) at ../ui/pagepainter.cpp:92
#7  0x00007f490e585565 in PagePainter::paintPageOnPainter (destPainter=destPainter@entry=0x7fff8a14cb90, page=0xd30930, observer=0x9e0488, flags=flags@entry=41, scaledWidth=53, scaledHeight=69, limits=...) at ../ui/pagepainter.cpp:59
#8  0x00007f490e5c0390 in ThumbnailWidget::paint (this=0x3e10970, p=..., _clipRect=...) at ../ui/thumbnaillist.cpp:964
#9  0x00007f490e5c0664 in ThumbnailListPrivate::paintEvent (this=<optimized out>, e=0x7fff8a14cfc0) at ../ui/thumbnaillist.cpp:191
#10 0x00007f491de59104 in QWidget::event (this=0x9e3ea0, event=0x7fff8a14cfc0) at kernel/qwidget.cpp:8532
Comment 5 Albert Astals Cid 2014-07-22 22:29:20 UTC
Rudolf, so you say you can reliably reproduce it with a given file? Can you attach such a file?
Comment 6 Rudolf Leitgeb 2014-07-22 22:37:09 UTC
I did provide an example PDF in my original posting, the download link still works. I can't tell for sure whether this crash still happens, but I can hopefully check this or next week when I work on the affected computer (running kubuntu).
Comment 7 Albert Astals Cid 2014-07-22 22:51:39 UTC
Oh god, i'm blind, please if you have access to a newer okular, yes it'd be great if you can check.
Comment 8 Albert Astals Cid 2014-07-22 22:53:26 UTC
Also it was never clear to me if you were doing Full Screen (Ctrl+Shitf+F) or Presentation (Ctrl+Shift+P)
Comment 9 Christoph Feck 2014-08-15 14:25:22 UTC
Rudolf, any update?
Comment 10 Andrew Crouthamel 2018-09-25 03:41:45 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 set the bug status 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 11 Andrew Crouthamel 2018-10-27 02:12:48 UTC
Dear Bug Submitter,

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!