Bug 225610 - okular never finishes loading a postscript with infinite pages (the game of life)
Summary: okular never finishes loading a postscript with infinite pages (the game of l...
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.19.1
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-05 11:28 UTC by kavol
Modified: 2021-03-10 09:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2010-02-05 11:28:08 UTC
Application that crashed: okular
Version of the application: 0.9.5
KDE Version: 4.3.5 (KDE 4.3.5)
Qt Version: 4.5.3
Operating System: Linux 2.6.31.12-174.2.3.fc12.x86_64 x86_64
Distribution: "Fedora release 12 (Constantine)"

What I was doing when the application crashed:
I've tried to display the game of life that can be downloaded here: http://www.tjhsst.edu/~edanaher/pslife/

Okular didn't render the page (another bug?), so that I tried to modify the source to change 'disp' to 'disppage' as suggested on the web. On the next try, Okular also didn't render the page, so that I tried to use Print preview. It did not help. After closing the Print preview window and trying to close Okular, it crashed.

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f19bb458840 (LWP 2592))]

Thread 2 (Thread 0x7f19afd48710 (LWP 2593)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003f53a5addb in wait (this=<value optimized out>, mutex=0x26420e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x26420e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x0000003f53a56cf0 in QSemaphore::acquire (this=0x2941b90, n=1) at thread/qsemaphore.cpp:143
#4  0x00007f19b1ad374f in GSRendererThread::run (this=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/generators/spectre/rendererthread.cpp:50
#5  0x0000003f53a59d25 in QThreadPrivate::start (arg=0x2941b80) at thread/qthread_unix.cpp:188
#6  0x0000003f49a06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#7  0x0000003f48ede67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f19bb458840 (LWP 2592)):
[KCrash Handler]
#5  QWidget::~QWidget (this=0x7fff3d31f8b0, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1331
#6  0x0000003f53b4d16c in QObjectPrivate::deleteChildren (this=0x25e2d90) at kernel/qobject.cpp:1846
#7  0x0000003c823d9d13 in QWidget::~QWidget (this=0x25e1c70, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1367
#8  0x00007f19b38ec0c9 in Sidebar::~Sidebar (this=0x25e1c70, __in_chrg=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/ui/sidebar.cpp:420
#9  0x0000003c84a20a84 in KParts::Part::~Part (this=0x25ddab0, __vtt_parm=0x7f19b3b17390, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.3.5/kparts/part.cpp:208
#10 0x00007f19b38882c2 in Okular::Part::~Part (this=0x25ddab0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/part.cpp:648
#11 0x00007f19b3888349 in Okular::Part::~Part (this=0x25ddab0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/part.cpp:648
#12 0x0000000000408cec in Shell::~Shell (this=0x24fdd40, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/shell/shell.cpp:145
#13 0x0000000000408da9 in Shell::~Shell (this=0x24fdd40, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/shell/shell.cpp:148
#14 0x0000003f53b4e425 in QObject::event (this=0x24fdd40, e=0x2ae3da0) at kernel/qobject.cpp:1093
#15 0x0000003c823dd47f in QWidget::event (this=0x24fdd40, event=0x2ae3da0) at kernel/qwidget.cpp:7951
#16 0x0000003c8274ff9b in QMainWindow::event (this=0x24fdd40, event=0x2ae3da0) at widgets/qmainwindow.cpp:1399
#17 0x0000003c834e8f73 in KXmlGuiWindow::event (this=0x24fdd40, ev=0x2ae3da0) at /usr/src/debug/kdelibs-4.3.5/kdeui/xmlgui/kxmlguiwindow.cpp:131
#18 0x0000003c8238f65c in QApplicationPrivate::notify_helper (this=0x2497020, receiver=0x24fdd40, e=0x2ae3da0) at kernel/qapplication.cpp:4065
#19 0x0000003c823968ce in QApplication::notify (this=<value optimized out>, receiver=0x24fdd40, e=0x2ae3da0) at kernel/qapplication.cpp:4030
#20 0x0000003c833f68e6 in KApplication::notify (this=0x7fff3d322450, receiver=0x24fdd40, event=0x2ae3da0) at /usr/src/debug/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#21 0x0000003f53b3ee6c in QCoreApplication::notifyInternal (this=0x7fff3d322450, receiver=0x24fdd40, event=0x2ae3da0) at kernel/qcoreapplication.cpp:610
#22 0x0000003f53b3fa42 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x247e970) at kernel/qcoreapplication.h:213
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x247e970) at kernel/qcoreapplication.cpp:1247
#24 0x0000003f53b67573 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:218
#25 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:210
#26 0x0000003f4c23922e in g_main_dispatch (context=0x2499920) at gmain.c:1960
#27 IA__g_main_context_dispatch (context=0x2499920) at gmain.c:2513
#28 0x0000003f4c23cc18 in g_main_context_iterate (context=0x2499920, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#29 0x0000003f4c23cd3a in IA__g_main_context_iteration (context=0x2499920, may_block=1) at gmain.c:2654
#30 0x0000003f53b671e6 in QEventDispatcherGlib::processEvents (this=0x247e180, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#31 0x0000003c82421ffe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#32 0x0000003f53b3d772 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#33 0x0000003f53b3db44 in QEventLoop::exec (this=0x7fff3d31f570, flags=...) at kernel/qeventloop.cpp:201
#34 0x00007f19b35c2951 in Okular::Document::closeDocument (this=0x2aa93a0) at /usr/src/debug/kdegraphics-4.3.5/okular/core/document.cpp:1759
#35 0x00007f19b3887d8d in Okular::Part::closeUrl (this=0x2afd520) at /usr/src/debug/kdegraphics-4.3.5/okular/part.cpp:1099
#36 0x00007f19b38882f8 in Okular::Part::~Part (this=0x2afd520, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/part.cpp:624
#37 0x00007f19b3888349 in Okular::Part::~Part (this=0x2afd520, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/part.cpp:648
#38 0x0000003f53b4d16c in QObjectPrivate::deleteChildren (this=0x2acb880) at kernel/qobject.cpp:1846
#39 0x0000003c823d9d13 in QWidget::~QWidget (this=0x7fff3d31f8b0, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1367
#40 0x00007f19b38afd3a in Okular::FilePrinterPreview::~FilePrinterPreview (this=0x7fff3d31f8b0, __in_chrg=<value optimized out>)
    at /usr/src/debug/kdegraphics-4.3.5/okular/ui/fileprinterpreview.cpp:141
#41 0x00007f19b3888c5d in Okular::Part::slotPrintPreview (this=0x25ddab0) at /usr/src/debug/kdegraphics-4.3.5/okular/part.cpp:1673
#42 0x00007f19b3892b2d in Okular::Part::qt_metacall (this=0x25ddab0, _c=InvokeMetaMethod, _id=9, _a=0x7fff3d31fb20) at /usr/src/debug/kdegraphics-4.3.5/x86_64-redhat-linux-gnu/okular/part.moc:184
#43 0x0000003f53b5408c in QMetaObject::activate (sender=0x2898920, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x7fff3d31fb20) at kernel/qobject.cpp:3112
#44 0x0000003c82389817 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#45 0x0000003c8238ac7f in QAction::activate (this=0x2898920, event=<value optimized out>) at kernel/qaction.cpp:1167
#46 0x0000003c827731f5 in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x2898920, action_e=Trigger, self=true) at widgets/qmenu.cpp:967
#47 0x0000003c827790ca in QMenuPrivate::activateAction (this=0x28ecb00, action=0x2898920, action_e=Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1060
#48 0x0000003c834b63be in KMenu::mouseReleaseEvent (this=0x290a000, e=<value optimized out>) at /usr/src/debug/kdelibs-4.3.5/kdeui/widgets/kmenu.cpp:456
#49 0x0000003c823ddcd8 in QWidget::event (this=0x290a000, event=0x7fff3d320540) at kernel/qwidget.cpp:7554
#50 0x0000003c8277b833 in QMenu::event (this=0x290a000, e=0x7fff3d320540) at widgets/qmenu.cpp:2358
#51 0x0000003c8238f65c in QApplicationPrivate::notify_helper (this=0x2497020, receiver=0x290a000, e=0x7fff3d320540) at kernel/qapplication.cpp:4065
#52 0x0000003c82396715 in QApplication::notify (this=<value optimized out>, receiver=0x290a000, e=0x7fff3d320540) at kernel/qapplication.cpp:3767
#53 0x0000003c833f68e6 in KApplication::notify (this=0x7fff3d322450, receiver=0x290a000, event=0x7fff3d320540) at /usr/src/debug/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#54 0x0000003f53b3ee6c in QCoreApplication::notifyInternal (this=0x7fff3d322450, receiver=0x290a000, event=0x7fff3d320540) at kernel/qcoreapplication.cpp:610
#55 0x0000003c82395ff2 in sendSpontaneousEvent (receiver=0x290a000, event=0x7fff3d320540, alienWidget=0x0, nativeWidget=0x290a000, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:216
#56 QApplicationPrivate::sendMouseEvent (receiver=0x290a000, event=0x7fff3d320540, alienWidget=0x0, nativeWidget=0x290a000, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>)
    at kernel/qapplication.cpp:2924
#57 0x0000003c823fbe0e in QETWidget::translateMouseEvent (this=0x290a000, event=<value optimized out>) at kernel/qapplication_x11.cpp:4342
#58 0x0000003c823faaa8 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff3d322070) at kernel/qapplication_x11.cpp:3549
#59 0x0000003c8242284c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#60 0x0000003f4c23922e in g_main_dispatch (context=0x2499920) at gmain.c:1960
#61 IA__g_main_context_dispatch (context=0x2499920) at gmain.c:2513
#62 0x0000003f4c23cc18 in g_main_context_iterate (context=0x2499920, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#63 0x0000003f4c23cd3a in IA__g_main_context_iteration (context=0x2499920, may_block=1) at gmain.c:2654
#64 0x0000003f53b671e6 in QEventDispatcherGlib::processEvents (this=0x247e180, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#65 0x0000003c82421ffe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#66 0x0000003f53b3d772 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#67 0x0000003f53b3db44 in QEventLoop::exec (this=0x7fff3d3223a0, flags=...) at kernel/qeventloop.cpp:201
#68 0x0000003f53b3fcd9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#69 0x00000000004080e9 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdegraphics-4.3.5/okular/shell/main.cpp:81

Reported using DrKonqi
Comment 1 Albert Astals Cid 2010-02-24 23:50:11 UTC
Well, the problem is that this file is an infinite page document, and neither okular not libspectre support that at the moment.
libspectre is the ps library okular uses to render ps files and should be fixed first understand this kind of documents, you should go to http://bugs.freedesktop.org/ and file a bug report against the libspectre product.

Once that bug is fixed, come back to us and we will see what is missing on our side.

Thanks for using Okular
Comment 2 Justin Zobel 2021-03-09 23:59:34 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 3 kavol 2021-03-10 09:50:46 UTC
okular 1.11.3 doesn't seem to crash any more (though it still is not able to show the output ...)