Bug 329562 - Okular crashed when printing custom size
Summary: Okular crashed when printing custom size
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.16.5
Platform: FreeBSD Ports FreeBSD
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
: 314693 320291 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-03 12:19 UTC by mnd999
Modified: 2014-01-15 23:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mnd999 2014-01-03 12:19:53 UTC
Application: okular (0.16.5)
KDE Platform Version: 4.10.5
Qt Version: 4.8.5
Operating System: FreeBSD 10.0-RC3 amd64
Distribution (Platform): FreeBSD Ports

-- Information about the crash:
Trying to print a custom size pdf with a 1px page border. It was a proof of a business card and I wanted to see the outline of the card to check alignments.

-- Backtrace:
Application: Okular (okular), signal: Floating point exception
[Switching to Thread 80b00e400 (LWP 100905/okular)]
kevent () at kevent.S:3
3	RSYSCALL(kevent)
[Current thread is 1 (Thread 80b00e400 (LWP 100905/okular))]

Thread 4 (Thread 80b006400 (LWP 100362/okular)):
[KCrash Handler]
#8  0x0000000817fd98cd in PSOutputDev::checkPageSlice () from /usr/local/lib/libpoppler.so.34
#9  0x0000000817fbb858 in Page::displaySlice () from /usr/local/lib/libpoppler.so.34
#10 0x0000000817fbb7ae in Page::display () from /usr/local/lib/libpoppler.so.34
#11 0x0000000817fbe189 in PDFDoc::displayPage () from /usr/local/lib/libpoppler.so.34
#12 0x0000000817c6ba74 in Poppler::PSConverter::convert () from /usr/local/lib/libpoppler-qt4.so.4
#13 0x00000008179f3cdf in qt_plugin_instance () from /usr/local/kde4/lib/kde4/okularGenerator_poppler.so
#14 0x0000000813e446ed in Okular::Document::print () from /usr/local/kde4/lib/libokularcore.so.2
#15 0x0000000813acac76 in qt_plugin_instance () from /usr/local/kde4/lib/kde4/okularpart.so
#16 0x0000000813acc88c in qt_plugin_instance () from /usr/local/kde4/lib/kde4/okularpart.so
#17 0x0000000813acd410 in qt_plugin_instance () from /usr/local/kde4/lib/kde4/okularpart.so
#18 0x0000000803f32842 in QMetaObject::activate () from /usr/local/lib/qt4/libQtCore.so.4
#19 0x0000000802735266 in QAction::activate () from /usr/local/lib/qt4/libQtGui.so.4
#20 0x0000000802b51238 in QMenuPrivate::activateCausedStack () from /usr/local/lib/qt4/libQtGui.so.4
#21 0x0000000802b4fc30 in QMenuPrivate::activateAction () from /usr/local/lib/qt4/libQtGui.so.4
#22 0x0000000802b545cd in QMenu::mouseReleaseEvent () from /usr/local/lib/qt4/libQtGui.so.4
#23 0x00000008020ec69d in KMenu::mouseReleaseEvent () from /usr/local/kde4/lib/libkdeui.so.7
#24 0x000000080278a9e8 in QWidget::event () from /usr/local/lib/qt4/libQtGui.so.4
#25 0x0000000802b54aca in QMenu::event () from /usr/local/lib/qt4/libQtGui.so.4
#26 0x000000080273e51b in QApplicationPrivate::notify_helper () from /usr/local/lib/qt4/libQtGui.so.4
#27 0x000000080273fd06 in QApplication::notify () from /usr/local/lib/qt4/libQtGui.so.4
#28 0x00000008020050c0 in KApplication::notify () from /usr/local/kde4/lib/libkdeui.so.7
#29 0x0000000803f1b565 in QCoreApplication::notifyInternal () from /usr/local/lib/qt4/libQtCore.so.4
#30 0x000000080273ef3f in QApplicationPrivate::sendMouseEvent () from /usr/local/lib/qt4/libQtGui.so.4
#31 0x00000008027b503e in QETWidget::translateMouseEvent () from /usr/local/lib/qt4/libQtGui.so.4
#32 0x00000008027b36ea in QApplication::x11ProcessEvent () from /usr/local/lib/qt4/libQtGui.so.4
#33 0x00000008027de335 in x11EventSourceDispatch () from /usr/local/lib/qt4/libQtGui.so.4
#34 0x00000008082be6f2 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
#35 0x00000008082bea93 in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.0
#36 0x00000008082beb24 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#37 0x0000000803f47a8f in QEventDispatcherGlib::processEvents () from /usr/local/lib/qt4/libQtCore.so.4
#38 0x00000008027ddffd in QGuiEventDispatcherGlib::processEvents () from /usr/local/lib/qt4/libQtGui.so.4
#39 0x0000000803f18b37 in QEventLoop::exec () from /usr/local/lib/qt4/libQtCore.so.4
#40 0x0000000803f1bafd in QCoreApplication::exec () from /usr/local/lib/qt4/libQtCore.so.4
#41 0x00000000004098fb in ?? ()
#42 0x000000000040882f in ?? ()
#43 0x0000000800630000 in ?? ()
#44 0x0000000000000000 in ?? ()

Thread 3 (Thread 80b006c00 (LWP 100839/okular)):
#0  kevent () at kevent.S:3
#1  0x0000000803efd5fa in QKqueueFileSystemWatcherEngine::run () from /usr/local/lib/qt4/libQtCore.so.4
#2  0x0000000803e21dec in QThreadPrivate::start () from /usr/local/lib/qt4/libQtCore.so.4
#3  0x0000000804e2f4a4 in thread_start (curthread=0x80b006c00) at /usr/src/lib/libthr/thread/thr_create.c:284
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 80b00f800 (LWP 100904/okular)):
#0  _umtx_op_err () at /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:37
#1  0x0000000804e30edc in _thr_umtx_timedwait_uint (mtx=0x80ab04080, id=<value optimized out>, clockid=<value optimized out>, abstime=<value optimized out>, shared=<value optimized out>)
    at /usr/src/lib/libthr/thread/thr_umtx.c:212
#2  0x0000000804e38d6c in cond_wait_common (cond=<value optimized out>, mutex=<value optimized out>, abstime=0x0, cancel=1) at /usr/src/lib/libthr/thread/thr_cond.c:255
#3  0x0000000803e23901 in QWaitConditionPrivate::wait () from /usr/local/lib/qt4/libQtCore.so.4
#4  0x0000000803e236c9 in QWaitCondition::wait () from /usr/local/lib/qt4/libQtCore.so.4
#5  0x0000000802c0f9f7 in QFileInfoGatherer::run () from /usr/local/lib/qt4/libQtGui.so.4
#6  0x0000000803e21dec in QThreadPrivate::start () from /usr/local/lib/qt4/libQtCore.so.4
#7  0x0000000804e2f4a4 in thread_start (curthread=0x80b00f800) at /usr/src/lib/libthr/thread/thr_create.c:284
#8  0x00007fffff5fc000 in ?? ()

Thread 1 (Thread 80b00e400 (LWP 100905/okular)):
#0  kevent () at kevent.S:3
#1  0x0000000803efd5fa in QKqueueFileSystemWatcherEngine::run () from /usr/local/lib/qt4/libQtCore.so.4
#2  0x0000000803e21dec in QThreadPrivate::start () from /usr/local/lib/qt4/libQtCore.so.4
#3  0x0000000804e2f4a4 in thread_start (curthread=0x80b00e400) at /usr/src/lib/libthr/thread/thr_create.c:284
#4  0x00007fffff7fd000 in ?? ()

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

Possible duplicates by query: bug 320291, bug 314693.

Reported using DrKonqi
Comment 1 mnd999 2014-01-03 12:21:55 UTC
Could be a division by zero somewhere? Maybe I used zero page height or width.
Comment 2 Christoph Feck 2014-01-03 12:53:17 UTC
As you see on both duplicates (bug 314693, bug 320291) we are waiting for documents and/or settings to reproduce the crash, so if you can provide this information, please add them.
Comment 3 mnd999 2014-01-03 13:15:25 UTC
PDF contains personal infromation so I do not wish to attach to a bug. I can share privately with an interested okular dev though.
Comment 4 Albert Astals Cid 2014-01-04 21:56:23 UTC
If you can reproduce the crash, please send the file to me.
Comment 5 mnd999 2014-01-12 14:02:13 UTC
Sent PDF to Albert Astals Cid


On 4 January 2014 21:56, Albert Astals Cid <aacid@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=329562
>
> Albert Astals Cid <aacid@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |NEEDSINFO
>                  CC|                            |aacid@kde.org
>          Resolution|---                         |WAITINGFORINFO
>
> --- Comment #4 from Albert Astals Cid <aacid@kde.org> ---
> If you can reproduce the crash, please send the file to me.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 6 Albert Astals Cid 2014-01-12 18:17:29 UTC
Git commit c324c532d1fe05f978966cbe3b9d892b95cc7cf8 by Albert Astals Cid.
Committed on 12/01/2014 at 18:16.
Pushed by aacid into branch 'KDE/4.12'.

Don't try to print something with invalid sizes

Unfortunately as we can't add new strings to stable versions it'd say "unwnown error" if that happens
Don't think it's too bad since this shouldn't be happening much

M  +2    -1    core/generator.h
M  +7    -0    generators/poppler/generator_pdf.cpp

http://commits.kde.org/okular/c324c532d1fe05f978966cbe3b9d892b95cc7cf8
Comment 7 Albert Astals Cid 2014-01-12 18:21:15 UTC
Git commit 0aec32fc7df603fb4db104b5ad3b14e809ac18d6 by Albert Astals Cid.
Committed on 12/01/2014 at 18:16.
Pushed by aacid into branch 'master'.

Don't try to print something with invalid sizes

Unfortunately as we can't add new strings to stable versions it'd say "unwnown error" if that happens
Don't think it's too bad since this shouldn't be happening much

M  +2    -1    core/generator.h
M  +7    -0    generators/poppler/generator_pdf.cpp

http://commits.kde.org/okular/0aec32fc7df603fb4db104b5ad3b14e809ac18d6
Comment 8 Christoph Feck 2014-01-15 23:35:13 UTC
*** Bug 314693 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2014-01-15 23:35:55 UTC
*** Bug 320291 has been marked as a duplicate of this bug. ***