Bug 178087 - okular crash in printing
Summary: okular crash in printing
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 180708 181018 186704 187268 190417 191925 197108 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-18 20:09 UTC by Neal Becker
Modified: 2009-06-19 14:59 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace (6.52 KB, text/plain)
2008-12-18 20:11 UTC, Neal Becker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Becker 2008-12-18 20:09:47 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

from kde-redhat on fedora f10

kdegraphics-4.1.85-1.fc10.x86_64
poppler-0.8.7-1.fc10.x86_64

See attached backtrace
Comment 1 Neal Becker 2008-12-18 20:11:08 UTC
Created attachment 29420 [details]
backtrace
Comment 2 Albert Astals Cid 2008-12-18 20:43:53 UTC
File you printed and what you did exactly when printing please.
Comment 4 Dario Andres 2008-12-18 21:16:21 UTC
Pasted backtrace from comment 1:

Application: Okular (okular), signal SIGABRT
0x0000003840aa7f81 in nanosleep () from /lib64/libc.so.6
Current language:  auto; currently c
[Current thread is 1 (Thread 0x7f4550b20800 (LWP 13049))]

Thread 3 (Thread 0x7f45491c6950 (LWP 13067)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x000000384ae5a839 in QWaitConditionPrivate::wait () at thread/qwaitcondition_unix.cpp:82
#2  QWaitCondition::wait (this=0x28d6fb0, mutex=0x28d6fa8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:154
#3  0x00000037d4fd30fe in QFileInfoGatherer::run (this=0x28d6f98) at dialogs/qfileinfogatherer.cpp:191
#4  0x000000384ae59852 in QThreadPrivate::start (arg=0x28d6f98) at thread/qthread_unix.cpp:185
#5  0x00000038416073da in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x0000003840ae62bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

Thread 2 (Thread 0x7f45487c5950 (LWP 13068)):
#0  0x0000003840adc886 in __poll (fds=0x28934c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x000000384223ae08 in ?? () from /lib64/libglib-2.0.so.0
#2  0x000000384223b12b in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000384af6a7be in QEventDispatcherGlib::processEvents (this=0x2894660, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:321
#4  0x000000384af40cb2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:143
#5  0x000000384af40e3d in QEventLoop::exec (this=0x7f45487c4f70, flags=) at kernel/qeventloop.cpp:194
#6  0x000000384ae568e8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:458
#7  0x000000384af25dd8 in QInotifyFileSystemWatcherEngine::run (this=0x28d6650) at io/qfilesystemwatcher_inotify.cpp:205
#8  0x000000384ae59852 in QThreadPrivate::start (arg=0x28d6650) at thread/qthread_unix.cpp:185
#9  0x00000038416073da in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x0000003840ae62bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
Current language:  auto; currently asm

Thread 1 (Thread 0x7f4550b20800 (LWP 13049)):
[KCrash Handler]
#5  0x0000003840a32f05 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x0000003840a34a73 in abort () at abort.c:88
#7  0x000000384ae51ba5 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2102
#8  0x000000384ae51ced in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2303
#9  0x000000000106eb08 in Poppler::PSConverter::convert () from /usr/lib64/libpoppler-qt4.so.3
#10 0x00000000015f5861 in PDFGenerator::print (this=0x26947b0, printer=@0x7fff58b7d2d0) at /usr/src/debug/kdegraphics-4.1.85/okular/generators/poppler/generator_pdf.cpp:903
#11 0x00000000008b8d1a in Part::doPrint (this=0x2197250, printer=@0x7fff58b7d2d0) at /usr/src/debug/kdegraphics-4.1.85/okular/part.cpp:1895
#12 0x00000000008b8feb in Part::slotPrint (this=0x2197250) at /usr/src/debug/kdegraphics-4.1.85/okular/part.cpp:1847
#13 0x00000000008c2345 in Part::qt_metacall (this=0x2197250, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff58b7d480)
    at /usr/src/debug/kdegraphics-4.1.85/x86_64-redhat-linux-gnu/okular/part.moc:221
#14 0x000000384af56764 in QMetaObject::activate (sender=0x25afad0, from_signal_index=<value optimized out>, to_signal_index=6, argv=0xffffffffffffffff) at kernel/qobject.cpp:3031
#15 0x00000037d4b7cb37 in QAction::triggered (this=0x32f9, _t1=false) at .moc/release-shared/moc_qaction.cpp:216
#16 0x00000037d4b7d300 in QAction::activate (this=0x25afad0, event=<value optimized out>) at kernel/qaction.cpp:1125
#17 0x00000037d4f146cd in QMenuPrivate::activateAction (this=0x25ba820, action=0x25afad0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1002
#18 0x00000036466ce791 in KMenu::mouseReleaseEvent (this=0x25e7330, e=0x7fff58b7def0) at /usr/src/debug/kdelibs-4.1.85/kdeui/widgets/kmenu.cpp:454
#19 0x00000037d4bd4f19 in QWidget::event (this=0x25e7330, event=0x7fff58b7def0) at kernel/qwidget.cpp:7163
#20 0x00000037d4f16eab in QMenu::event (this=0x25e7330, e=0x7fff58b7def0) at widgets/qmenu.cpp:2265
#21 0x00000037d4b8281d in QApplicationPrivate::notify_helper (this=0x20ee870, receiver=0x25e7330, e=0x7fff58b7def0) at kernel/qapplication.cpp:3803
#22 0x00000037d4b8ae3a in QApplication::notify (this=<value optimized out>, receiver=0x25e7330, e=0x7fff58b7def0) at kernel/qapplication.cpp:3528
#23 0x00000036466049ab in KApplication::notify (this=0x7fff58b7ed10, receiver=0x25e7330, event=0x7fff58b7def0) at /usr/src/debug/kdelibs-4.1.85/kdeui/kernel/kapplication.cpp:307
#24 0x000000384af42391 in QCoreApplication::notifyInternal (this=0x7fff58b7ed10, receiver=0x25e7330, event=0x7fff58b7def0) at kernel/qcoreapplication.cpp:587
#25 0x00000037d4b8a1d8 in QCoreApplication::sendSpontaneousEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:212
#26 QApplicationPrivate::sendMouseEvent (receiver=0x25e7330, event=0x7fff58b7def0, alienWidget=0x0, nativeWidget=0x25e7330, buttonDown=<value optimized out>, lastMouseReceiver=@0x37d54fd3c0)
    at kernel/qapplication.cpp:2793
#27 0x00000037d4bee9e4 in QETWidget::translateMouseEvent (this=0x25e7330, event=<value optimized out>) at kernel/qapplication_x11.cpp:3978
#28 0x00000037d4bed247 in QApplication::x11ProcessEvent (this=0x13b, event=0x7fff58b7e960) at kernel/qapplication_x11.cpp:3162
#29 0x00000037d4c139f4 in x11EventSourceDispatch (s=0x20f2080, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#30 0x000000384223779b in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#31 0x000000384223af6d in ?? () from /lib64/libglib-2.0.so.0
#32 0x000000384223b12b in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#33 0x000000384af6a79f in QEventDispatcherGlib::processEvents (this=0x20ee190, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#34 0x00000037d4c1319f in QGuiEventDispatcherGlib::processEvents (this=0x32f9, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#35 0x000000384af40cb2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:143
#36 0x000000384af40e3d in QEventLoop::exec (this=0x7fff58b7ec90, flags=) at kernel/qeventloop.cpp:194
#37 0x000000384af432ed in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#38 0x0000000000407544 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdegraphics-4.1.85/okular/shell/main.cpp:81
Current language:  auto; currently c

Comment 5 Pino Toscano 2008-12-19 22:29:52 UTC
Could you please attach the console output when loading the document from console?
Comment 6 Pino Toscano 2009-01-10 11:53:11 UTC
Any news? Can anybody please reply to comment #5?
Comment 7 Pino Toscano 2009-01-16 22:24:40 UTC
*** Bug 180708 has been marked as a duplicate of this bug. ***
Comment 8 Pino Toscano 2009-01-16 22:25:45 UTC
*** Bug 181018 has been marked as a duplicate of this bug. ***
Comment 9 doc.evans 2009-01-16 22:34:18 UTC
In answer to comment #5:

----
[HN:tmp] okular "SE resume PATH 0109.pdf"
ASSERT: "d->paperWidth != -1" in file poppler-ps-converter.cc, line 156
QSocketNotifier: Invalid socket 35 and type 'Read', disabling...
KCrash: Application 'okular' crashing...
sock_file=/home/n7dr/.kde/socket-homebrew/kdeinit4__0
[HN:tmp]

----

What I did: 
  hit Print; then Properties; then Close; then Print (as explained in  bug 181018).


Comment 10 Pino Toscano 2009-01-16 23:37:53 UTC
SVN commit 912210 by pino:

Correctly set the custom paper size of the dummy printer.
BUG: 178087


 M  +1 -0      generator_pdf.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=912210
Comment 11 Pino Toscano 2009-01-16 23:41:34 UTC
SVN commit 912214 by pino:

Backport SVN commit 912210 by pino:

Correctly set the custom paper size of the dummy printer.
CCBUG: 178087


 M  +1 -0      generator_pdf.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=912214
Comment 12 Pino Toscano 2009-01-16 23:45:12 UTC
SVN commit 912217 by pino:

Backport SVN commit 912210 by pino:

Correctly set the custom paper size of the dummy printer.
CCBUG: 178087


 M  +1 -0      generator_pdf.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=912217
Comment 13 Pino Toscano 2009-01-16 23:46:18 UTC
If you can reproduce the bug and can compile either trunk or the kde 4.2 branch yourself, please verify whether you can still reproduce the problem.
Thanks.
Comment 14 doc.evans 2009-01-16 23:59:22 UTC
FYI, I have never been able to get a KDE build to compile to completion, so I cannot test the patch. Sorry. 

It is 100% reproducible here by following the steps in bug 181018, so perhaps you could try that.
Comment 15 doc.evans 2009-01-17 01:17:55 UTC
I just spent an hour trying to get trunk to build so that I could test this patch, but as usual it was a total disaster. Sorry. I tried.
Comment 16 Pino Toscano 2009-03-09 21:33:16 UTC
*** Bug 186704 has been marked as a duplicate of this bug. ***
Comment 17 Pino Toscano 2009-03-16 00:30:45 UTC
*** Bug 187268 has been marked as a duplicate of this bug. ***
Comment 18 Pino Toscano 2009-04-24 15:16:30 UTC
*** Bug 190417 has been marked as a duplicate of this bug. ***
Comment 19 Pino Toscano 2009-05-07 18:07:29 UTC
*** Bug 191925 has been marked as a duplicate of this bug. ***
Comment 20 Dario Andres 2009-06-19 14:59:09 UTC
*** Bug 197108 has been marked as a duplicate of this bug. ***