Bug 270602 - Okular crashes on close if the print preview has not finished
Summary: Okular crashes on close if the print preview has not finished
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.19.1
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 309734 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-10 17:23 UTC by Kevin Lyles
Modified: 2021-01-01 04:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (11.11 KB, text/plain)
2011-05-06 02:37 UTC, Kevin Lyles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Lyles 2011-04-10 17:23:13 UTC
Application: okular (0.10.5)
KDE Platform Version: 4.4.5 (KDE 4.4.5) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.36-gentoo-r8-iqgryn i686
Distribution (Platform): Gentoo Packages

-- Information about the crash:
I was looking at http://madisonareampo.org/maps/documents/public_bike_map_2010_new_design_web_000.pdf, which is a 6.57 MB bike map.  When I closed the file after attempting a print preview, Okular crashed.  This seems to happen reliably.  I'm happy to provide more information and testing; just let me know what is needed.

The crash can be reproduced every time.

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0xb463c930 (LWP 13289))]

Thread 2 (Thread 0xb0c57b70 (LWP 16533)):
#0  0xb7753424 in __kernel_vsyscall ()
#1  0xb5fc3feb in read () at ../sysdeps/unix/syscall-template.S:82
#2  0xb5f5b9e5 in _IO_file_xsgetn_internal () from /lib/libc.so.6
#3  0xb5f5dfd8 in _IO_sgetn () from /lib/libc.so.6
#4  0xb5fefdd8 in __fread_chk () from /lib/libc.so.6
#5  0xb0fdc367 in fread (gs=0x85d9750, filename=0x8600528 "/tmp/.private/me/kde-me/okulary13289.ps", x=0, y=0, begin=431762, end=27059605) at /usr/include/bits/stdio2.h:282
#6  spectre_gs_process (gs=0x85d9750, filename=0x8600528 "/tmp/.private/me/kde-me/okulary13289.ps", x=0, y=0, begin=431762, end=27059605) at spectre-gs.c:126
#7  0xb0fdc6a8 in spectre_gs_send_page (gs=0x85d9750, doc=0x8600470, page_index=0, x=0, y=0) at spectre-gs.c:273
#8  0xb0fdcdfe in spectre_device_render (device=0x8705d20, page=0, rc=0x8600ab0, x=0, y=0, width=595, height=842, page_data=0xb0c5723c, row_length=0xb0c57238) at spectre-device.c:288
#9  0xb0fdd241 in spectre_page_render (page=0x85d9820, rc=0x8600ab0, page_data=0xb0c5723c, row_length=0xb0c57238) at spectre-page.c:164
#10 0xb0ff6409 in GSRendererThread::run (this=0x825ada8) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/generators/spectre/rendererthread.cpp:71
#11 0xb6c2770e in QThreadPrivate::start (arg=0x825ada8) at thread/qthread_unix.cpp:248
#12 0xae4ddde7 in ?? () from /usr/lib/opengl/nvidia/lib/libGL.so.1
#13 0xb5fd621e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb463c930 (LWP 13289)):
[KCrash Handler]
#6  QWidget::~QWidget (this=0xbfc7cdcc, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1403
#7  0xb6d31a6d in QObjectPrivate::deleteChildren (this=0x82c5348) at kernel/qobject.cpp:1978
#8  0xb62faa75 in QWidget::~QWidget (this=0x82c4f48, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1476
#9  0xb2cdac15 in Sidebar::~Sidebar (this=0x82c4f48, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/ui/sidebar.cpp:482
#10 0xb772d073 in KParts::Part::~Part (this=0x82b59b0, __vtt_parm=0xb2cfa1a8, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.5-r4/work/kdelibs-4.4.5/kparts/part.cpp:208
#11 0xb772d81a in KParts::ReadOnlyPart::~ReadOnlyPart (this=0x82b59b0, __vtt_parm=0xb2cfa1a4, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.5-r4/work/kdelibs-4.4.5/kparts/part.cpp:459
#12 0xb2c584af in Okular::Part::~Part (this=0x82b59b0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/part.cpp:654
#13 0x0804f5c2 in Shell::~Shell (this=0x82a99a8, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/shell/shell.cpp:119
#14 0xb6d31675 in qDeleteInEventHandler (o=0x0) at kernel/qobject.cpp:3993
#15 0xb6d32d10 in QObject::event (this=0x82a99a8, e=0x0) at kernel/qobject.cpp:1223
#16 0xb62f2a96 in QWidget::event (this=0x82a99a8, event=0xb0153980) at kernel/qwidget.cpp:8501
#17 0xb66fa667 in QMainWindow::event (this=0x82a99a8, event=0xb0153980) at widgets/qmainwindow.cpp:1414
#18 0xb73b6a34 in KMainWindow::event (this=0x82a99a8, ev=0xb0153980) at /var/tmp/portage/kde-base/kdelibs-4.4.5-r4/work/kdelibs-4.4.5/kdeui/widgets/kmainwindow.cpp:1103
#19 0xb73fdf0f in KXmlGuiWindow::event (this=0x82a99a8, ev=0xb0153980) at /var/tmp/portage/kde-base/kdelibs-4.4.5-r4/work/kdelibs-4.4.5/kdeui/xmlgui/kxmlguiwindow.cpp:131
#20 0xb629566c in QApplicationPrivate::notify_helper (this=0x81b7ac0, receiver=0x82a99a8, e=0xb0153980) at kernel/qapplication.cpp:4302
#21 0xb629c099 in QApplication::notify (this=0xbfc7e160, receiver=0x82a99a8, e=0xb0153980) at kernel/qapplication.cpp:4267
#22 0xb72c771a in KApplication::notify (this=0xbfc7e160, receiver=0x82a99a8, event=0xb0153980) at /var/tmp/portage/kde-base/kdelibs-4.4.5-r4/work/kdelibs-4.4.5/kdeui/kernel/kapplication.cpp:302
#23 0xb6d2246a in QCoreApplication::notifyInternal (this=0xbfc7e160, receiver=0x82a99a8, event=0xb0153980) at kernel/qcoreapplication.cpp:726
#24 0xb6d25edb in sendEvent (receiver=0x0, event_type=0, data=0x81a3858) at kernel/qcoreapplication.h:215
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x81a3858) at kernel/qcoreapplication.cpp:1367
#26 0xb6d2605d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1260
#27 0xb6d4e18f in sendPostedEvents (s=0x81b9f10) at kernel/qcoreapplication.h:220
#28 postEventSourceDispatch (s=0x81b9f10) at kernel/qeventdispatcher_glib.cpp:276
#29 0xb59294f4 in g_main_dispatch (context=0x81b9e90) at gmain.c:2149
#30 g_main_context_dispatch (context=0x81b9e90) at gmain.c:2702
#31 0xb592d308 in g_main_context_iterate (context=0x81b9e90, block=<value optimized out>, dispatch=1, self=0x81b7490) at gmain.c:2780
#32 0xb592d4e8 in g_main_context_iteration (context=0x81b9e90, may_block=1) at gmain.c:2843
#33 0xb6d4dc85 in QEventDispatcherGlib::processEvents (this=0x81a3330, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#34 0xb6351695 in QGuiEventDispatcherGlib::processEvents (this=0x81a3330, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0xb6d20ad9 in QEventLoop::processEvents (this=0xbfc7cb3c, flags=) at kernel/qeventloop.cpp:149
#36 0xb6d20f2a in QEventLoop::exec (this=0xbfc7cb3c, flags=...) at kernel/qeventloop.cpp:201
#37 0xb2bcf46a in Okular::Document::closeDocument (this=0x826bc80) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/core/document.cpp:1771
#38 0xb2c57f6b in Okular::Part::closeUrl (this=0x8610088) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/part.cpp:1105
#39 0xb2c584f0 in Okular::Part::~Part (this=0x8610088, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/part.cpp:630
#40 0xb6d31a6d in QObjectPrivate::deleteChildren (this=0x8289988) at kernel/qobject.cpp:1978
#41 0xb62faa75 in QWidget::~QWidget (this=0xbfc7cdcc, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1476
#42 0xb67bd6e4 in QDialog::~QDialog (this=0xbfc7cdcc, __in_chrg=<value optimized out>) at dialogs/qdialog.cpp:327
#43 0xb7229224 in KDialog::~KDialog (this=0xbfc7cdcc, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.5-r4/work/kdelibs-4.4.5/kdeui/dialogs/kdialog.cpp:205
#44 0xb2c8c7e5 in Okular::FilePrinterPreview::~FilePrinterPreview (this=0xbfc7cdcc, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/ui/fileprinterpreview.cpp:141
#45 0xb2c59121 in Okular::Part::slotPrintPreview (this=0x82b59b0) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/part.cpp:1689
#46 0xb2c6478a in Okular::Part::qt_metacall (this=0x82b59b0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfc7cf78) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5_build/okular/part.moc:190
#47 0xb6d2772a in QMetaObject::metacall (object=0x82b59b0, cl=136878472, idx=23, argv=0xbfc7cf78) at kernel/qmetaobject.cpp:237
#48 0xb6d3607d in QMetaObject::activate (sender=0x8371728, m=0xb6ba9f88, local_signal_index=1, argv=<value optimized out>) at kernel/qobject.cpp:3287
#49 0xb628ed99 in QAction::triggered (this=0x8371728, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#50 0xb6290f5c in QAction::activate (this=0x8371728, event=QAction::Trigger) at kernel/qaction.cpp:1255
#51 0xb671feaf in QMenuPrivate::activateCausedStack (this=0x84b0a88, causedStack=..., action=0x8371728, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1002
#52 0xb67261bb in QMenuPrivate::activateAction (this=0x84b0a88, action=0x8371728, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1094
#53 0xb6727203 in QMenu::mouseReleaseEvent (this=0x81f5818, e=0xbfc7d924) at widgets/qmenu.cpp:2312
#54 0xb73bae15 in KMenu::mouseReleaseEvent (this=0x81f5818, e=0xbfc7d924) at /var/tmp/portage/kde-base/kdelibs-4.4.5-r4/work/kdelibs-4.4.5/kdeui/widgets/kmenu.cpp:471
#55 0xb62f2f68 in QWidget::event (this=0x81f5818, event=0xbfc7d924) at kernel/qwidget.cpp:8044
#56 0xb672880c in QMenu::event (this=0x81f5818, e=0xbfc7d924) at widgets/qmenu.cpp:2421
#57 0xb629566c in QApplicationPrivate::notify_helper (this=0x81b7ac0, receiver=0x81f5818, e=0xbfc7d924) at kernel/qapplication.cpp:4302
#58 0xb629cbde in QApplication::notify (this=0xbfc7e160, receiver=0x81f5818, e=0xbfc7d924) at kernel/qapplication.cpp:3867
#59 0xb72c771a in KApplication::notify (this=0xbfc7e160, receiver=0x81f5818, event=0xbfc7d924) at /var/tmp/portage/kde-base/kdelibs-4.4.5-r4/work/kdelibs-4.4.5/kdeui/kernel/kapplication.cpp:302
#60 0xb6d2246a in QCoreApplication::notifyInternal (this=0xbfc7e160, receiver=0x81f5818, event=0xbfc7d924) at kernel/qcoreapplication.cpp:726
#61 0xb629b907 in sendEvent (receiver=0x81f5818, event=0xbfc7d924, alienWidget=0x0, nativeWidget=0x81f5818, buttonDown=0xb6bc5078, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#62 QApplicationPrivate::sendMouseEvent (receiver=0x81f5818, event=0xbfc7d924, alienWidget=0x0, nativeWidget=0x81f5818, buttonDown=0xb6bc5078, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2967
#63 0xb63264e7 in QETWidget::translateMouseEvent (this=0x81f5818, event=0xbfc7dd70) at kernel/qapplication_x11.cpp:4314
#64 0xb63254ab in QApplication::x11ProcessEvent (this=0xbfc7e160, event=0xbfc7dd70) at kernel/qapplication_x11.cpp:3391
#65 0xb6351b22 in x11EventSourceDispatch (s=0x81bad00, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#66 0xb59294f4 in g_main_dispatch (context=0x81b9e90) at gmain.c:2149
#67 g_main_context_dispatch (context=0x81b9e90) at gmain.c:2702
#68 0xb592d308 in g_main_context_iterate (context=0x81b9e90, block=<value optimized out>, dispatch=1, self=0x81b7490) at gmain.c:2780
#69 0xb592d4e8 in g_main_context_iteration (context=0x81b9e90, may_block=1) at gmain.c:2843
#70 0xb6d4dc85 in QEventDispatcherGlib::processEvents (this=0x81a3330, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#71 0xb6351695 in QGuiEventDispatcherGlib::processEvents (this=0x81a3330, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#72 0xb6d20ad9 in QEventLoop::processEvents (this=0xbfc7e064, flags=) at kernel/qeventloop.cpp:149
#73 0xb6d20f2a in QEventLoop::exec (this=0xbfc7e064, flags=...) at kernel/qeventloop.cpp:201
#74 0xb6d2611f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#75 0xb6295717 in QApplication::exec () at kernel/qapplication.cpp:3581
#76 0x0804e8a7 in main (argc=2, argv=0xbfc7e344) at /var/tmp/portage/kde-base/okular-4.4.5-r2/work/okular-4.4.5/okular/shell/main.cpp:82

This bug may be a duplicate of or related to bug 267438.

Possible duplicates by query: bug 269671, bug 267438, bug 255512, bug 255081, bug 253163.

Reported using DrKonqi
Comment 1 Christoph Feck 2011-04-13 03:01:56 UTC
That's probably a cause of the nested event loop in Okular::Document::closeDocument.
Comment 2 Pino Toscano 2011-04-13 16:22:56 UTC
Hmm... the part a child of the print dialog...?
Comment 3 Albert Astals Cid 2011-04-29 20:38:48 UTC
Can you please provide a working link to the pdf and the exact steps you do to make okular crash?
Comment 4 Kevin Lyles 2011-05-06 02:16:35 UTC
Unfortunately, there does not seem to be a version of that pdf available any longer.

The steps I took were to open the file, open Print Preview, close Print Preview, then close the file.  You may have to wait a minute before opening Print Preview (I usually did it after the document had rendered).  I will see if I can find another file that does this.
Comment 5 Kevin Lyles 2011-05-06 02:33:50 UTC
I have found another file that has the same issue: http://madisonareampo.org/maps/documents/MadisonAreaMCD.pdf

I can attach or e-mail the file if needed; just let me know.
Comment 6 Kevin Lyles 2011-05-06 02:37:18 UTC
Created attachment 59679 [details]
New crash information added by DrKonqi

This is the crash information with the second file.
Comment 7 Albert Astals Cid 2011-05-07 12:29:53 UTC
Seems a bad interaction of the print preview thread still running and us wanting to shut down, need to take a closer look once my main machine is back since debuginning this in a 12" screen is quite painful
Comment 8 Albert Astals Cid 2014-05-11 10:59:36 UTC
*** Bug 309734 has been marked as a duplicate of this bug. ***
Comment 9 Justin Zobel 2020-12-02 01:31:51 UTC
Thank you for the report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thank you.
Comment 10 Bug Janitor Service 2020-12-17 04:33:56 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 11 Bug Janitor Service 2021-01-01 04:39:19 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!