Bug 314693 - Crash when printing A3 & A4 mixed PDF
Summary: Crash when printing A3 & A4 mixed PDF
Status: RESOLVED DUPLICATE of bug 329562
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.16.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 17:18 UTC by franck.wiatrowski
Modified: 2014-01-15 23:35 UTC (History)
1 user (show)

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


Attachments
Testcase (35.05 KB, application/pdf)
2013-04-05 08:47 UTC, Yuri Chornoivan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description franck.wiatrowski 2013-02-08 17:18:14 UTC
Application: okular (0.16.0)
KDE Platform Version: 4.10.00 "release 1"
Qt Version: 4.8.4
Operating System: Linux 3.7.6-1.2-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

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

- tried to print a PDF with one A4 and one A3. Some A3 of collaborators have problems. So i try différents options. Okular crash when choising options "print as image" and page format "Custom" simultaneously. 
I use OpenSUSE 12.3 RC1 with KDE 4.10 Release 1

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Floating point exception
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff7cc129780 (LWP 3217))]

Thread 3 (Thread 0x7ff7b6a98700 (LWP 3254)):
#0  0x00007ff7c706f964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff7c99f95fb in wait (time=18446744073709551615, this=0x167f640) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x167f350, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007ff7ca9e84d6 in QFileInfoGatherer::run (this=0x167f340) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007ff7c99f909c in QThreadPrivate::start (arg=0x167f340) at thread/qthread_unix.cpp:338
#5  0x00007ff7c706be0f in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff7c912f7dd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff7b7299700 (LWP 3255)):
#0  0x00007ff7c912687d in poll () from /lib64/libc.so.6
#1  0x00007ff7c5b7baa4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff7c5b7bbc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff7c9b231c6 in QEventDispatcherGlib::processEvents (this=0x7ff7a813eb10, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007ff7c9af39bf in QEventLoop::processEvents (this=this@entry=0x7ff7b7298dd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ff7c9af3c48 in QEventLoop::exec (this=0x7ff7b7298dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ff7c99f60c0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007ff7c9ad417f in QInotifyFileSystemWatcherEngine::run (this=0x167f170) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007ff7c99f909c in QThreadPrivate::start (arg=0x167f170) at thread/qthread_unix.cpp:338
#9  0x00007ff7c706be0f in start_thread () from /lib64/libpthread.so.0
#10 0x00007ff7c912f7dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff7cc129780 (LWP 3217)):
[KCrash Handler]
#6  0x00007ff7b7875f44 in PSOutputDev::checkPageSlice (this=0x2f6dec0, page=0x15e9410, rotateA=0, useMediaBox=false, crop=4, sliceX=0, sliceY=0, sliceW=0, sliceH=0, printing=true, abortCheckCbk=0x0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0x7ff7b7bcf960 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, annotDisplayDecideCbkData=0x7ffff59a16ff) at PSOutputDev.cc:3131
#7  0x00007ff7b785b567 in Page::displaySlice (this=0x15e9410, out=0x2f6dec0, hDPI=<optimized out>, vDPI=<optimized out>, rotate=0, useMediaBox=false, crop=true, sliceX=sliceX@entry=-1, sliceY=sliceY@entry=-1, sliceW=sliceW@entry=-1, sliceH=sliceH@entry=-1, printing=true, abortCheckCbk=abortCheckCbk@entry=0x0, abortCheckCbkData=abortCheckCbkData@entry=0x0, annotDisplayDecideCbk=annotDisplayDecideCbk@entry=0x7ff7b7bcf960 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, annotDisplayDecideCbkData=annotDisplayDecideCbkData@entry=0x7ffff59a16ff) at Page.cc:511
#8  0x00007ff7b785b7ce in Page::display (this=<optimized out>, out=<optimized out>, hDPI=<optimized out>, vDPI=<optimized out>, rotate=<optimized out>, useMediaBox=<optimized out>, crop=<optimized out>, printing=<optimized out>, abortCheckCbk=0x0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0x7ff7b7bcf960 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, annotDisplayDecideCbkData=0x7ffff59a16ff) at Page.cc:451
#9  0x00007ff7b7bd0008 in Poppler::PSConverter::convert (this=<optimized out>) at poppler-ps-converter.cc:256
#10 0x00007ff7b7e00532 in PDFGenerator::print (this=0x1586b50, printer=...) at /usr/src/debug/okular-4.10.0/generators/poppler/generator_pdf.cpp:1166
#11 0x00007ff7bc14ee6e in doPrint (printer=..., this=0x1319ef0) at /usr/src/debug/okular-4.10.0/part.cpp:2532
#12 Okular::Part::doPrint (this=0x1319ef0, printer=...) at /usr/src/debug/okular-4.10.0/part.cpp:2524
#13 0x00007ff7bc15a36d in Okular::Part::slotPrint (this=0x1319ef0) at /usr/src/debug/okular-4.10.0/part.cpp:2501
#14 0x00007ff7bc15adfa in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/okular-4.10.0/build/part.moc:232
#15 Okular::Part::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/okular-4.10.0/build/part.moc:161
#16 0x00007ff7c9b0a17f in QMetaObject::activate (sender=0x14c7270, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff59a1b70) at kernel/qobject.cpp:3548
#17 0x00007ff7ca4f6662 in QAction::triggered (this=this@entry=0x14c7270, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#18 0x00007ff7ca4f6850 in QAction::activate (this=0x14c7270, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#19 0x00007ff7ca4f69b7 in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#20 0x00007ff7cb136f67 in KAction::event (this=<optimized out>, event=0x7ffff59a2110) at /usr/src/debug/kdelibs-4.10.0/kdeui/actions/kaction.cpp:131
#21 0x00007ff7ca4fc86c in QApplicationPrivate::notify_helper (this=this@entry=0x1129e80, receiver=receiver@entry=0x14c7270, e=e@entry=0x7ffff59a2110) at kernel/qapplication.cpp:4562
#22 0x00007ff7ca500ceb in QApplication::notify (this=0x7ffff59a37d0, receiver=0x14c7270, e=0x7ffff59a2110) at kernel/qapplication.cpp:4423
#23 0x00007ff7cb210cb6 in KApplication::notify (this=0x7ffff59a37d0, receiver=0x14c7270, event=0x7ffff59a2110) at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#24 0x00007ff7c9af4c6e in QCoreApplication::notifyInternal (this=0x7ffff59a37d0, receiver=0x14c7270, event=0x7ffff59a2110) at kernel/qcoreapplication.cpp:946
#25 0x00007ff7ca52d524 in sendEvent (event=0x7ffff59a2110, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#26 QShortcutMap::dispatchEvent (this=this@entry=0x1129fa0, e=e@entry=0x7ffff59a26e0) at kernel/qshortcutmap.cpp:884
#27 0x00007ff7ca52eb53 in QShortcutMap::tryShortcutEvent (this=0x1129fa0, o=<optimized out>, e=0x7ffff59a26e0) at kernel/qshortcutmap.cpp:364
#28 0x00007ff7ca5027ef in QApplication::notify (this=0x7ffff59a37d0, receiver=0x146e070, e=0x7ffff59a26e0) at kernel/qapplication.cpp:3986
#29 0x00007ff7cb210cb6 in KApplication::notify (this=0x7ffff59a37d0, receiver=0x146e070, event=0x7ffff59a26e0) at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#30 0x00007ff7c9af4c6e in QCoreApplication::notifyInternal (this=0x7ffff59a37d0, receiver=0x146e070, event=0x7ffff59a26e0) at kernel/qcoreapplication.cpp:946
#31 0x00007ff7ca598e8a in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x146e070, grab=grab@entry=false, type=QEvent::KeyPress, code=80, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=33, nativeVirtualKey=112, nativeModifiers=20) at kernel/qkeymapper_x11.cpp:1866
#32 0x00007ff7ca5992c1 in QKeyMapperPrivate::translateKeyEvent (this=0x117af40, keyWidget=0x146e070, event=0x7ffff59a3100, grab=false) at kernel/qkeymapper_x11.cpp:1836
#33 0x00007ff7ca5769f8 in QApplication::x11ProcessEvent (this=0x7ffff59a37d0, event=0x7ffff59a3100) at kernel/qapplication_x11.cpp:3543
#34 0x00007ff7ca59cfa2 in x11EventSourceDispatch (s=0x1129d60, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#35 0x00007ff7c5b7b7d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#36 0x00007ff7c5b7bb08 in ?? () from /usr/lib64/libglib-2.0.so.0
#37 0x00007ff7c5b7bbc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#38 0x00007ff7c9b231a6 in QEventDispatcherGlib::processEvents (this=0x1101ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#39 0x00007ff7ca59cc1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007ff7c9af39bf in QEventLoop::processEvents (this=this@entry=0x7ffff59a34d0, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007ff7c9af3c48 in QEventLoop::exec (this=0x7ffff59a34d0, flags=...) at kernel/qeventloop.cpp:204
#42 0x00007ff7c9af88e8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#43 0x000000000040895e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-4.10.0/shell/main.cpp:94

Possible duplicates by query: bug 291425, bug 289122.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2013-02-09 17:25:58 UTC
Can you attach the file that you are using?
Comment 2 Christoph Feck 2013-02-19 01:36:20 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Albert Astals Cid 2013-04-05 07:39:29 UTC
Waiting for the file...
Comment 4 Yuri Chornoivan 2013-04-05 08:47:34 UTC
Created attachment 78653 [details]
Testcase

Works fine (without crashes) on Okular 0.16.60 (Poppler 0.22.2), x86 with the above-mentioned print options and the attached testcase (1 page A4 + 1 page A3, made with PDF-Shuffler).
Comment 5 Christoph Feck 2014-01-15 23:35:13 UTC

*** This bug has been marked as a duplicate of bug 329562 ***