Bug 324427 - Okular 4.11.00 (KDE 4.11.0) has crashed while refreshing a PDF file
Summary: Okular 4.11.00 (KDE 4.11.0) has crashed while refreshing a PDF file
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.17.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
: 327355 328598 332528 333292 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-02 20:57 UTC by Thomas Dreibholz
Modified: 2015-07-09 20:34 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.30 KB, text/plain)
2013-10-16 18:36 UTC, auxsvr
Details
New crash information added by DrKonqi (5.15 KB, text/plain)
2013-10-18 14:28 UTC, Maarten Bezemer
Details
New crash information added by DrKonqi (5.16 KB, text/plain)
2013-10-24 09:08 UTC, Tiago Cogumbreiro
Details
New crash information added by DrKonqi (6.65 KB, text/plain)
2013-11-21 20:53 UTC, Julian Haddad
Details
New crash information added by DrKonqi (5.67 KB, text/plain)
2014-01-17 15:45 UTC, Yasin Zähringer
Details
New crash information added by DrKonqi (8.83 KB, text/plain)
2014-03-19 16:31 UTC, martinstingl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Dreibholz 2013-09-02 20:57:10 UTC
Application: okular (0.17.0)
KDE Platform Version: 4.11.00
Qt Version: 4.8.4
Operating System: Linux 3.8.0-29-generic x86_64
Distribution: Ubuntu 13.04

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

Okular 4.11.00 (KDE 4.11.0) has crashed while displaying a PDF file. The file had been updated several times before (PDF generated by pdfLaTeX).

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fadd86a77c0 (LWP 9505))]

Thread 2 (Thread 0x7fadc119f700 (LWP 9507)):
#0  0x00007fadd56e43cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fadd231b1dc in g_main_context_poll (n_fds=1, fds=0x7fadbc002bb0, timeout=-1, context=0x7fadbc0009a0, priority=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3995
#2  g_main_context_iterate (context=context@entry=0x7fadbc0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3696
#3  0x00007fadd231b304 in g_main_context_iteration (context=0x7fadbc0009a0, may_block=1) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3762
#4  0x00007fadd60e4036 in QEventDispatcherGlib::processEvents (this=0x7fadbc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fadd60b438f in QEventLoop::processEvents (this=this@entry=0x7fadc119ed90, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fadd60b4618 in QEventLoop::exec (this=this@entry=0x7fadc119ed90, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fadd5fb6410 in QThread::exec (this=this@entry=0x1b27480) at thread/qthread.cpp:542
#8  0x00007fadd6095edf in QInotifyFileSystemWatcherEngine::run (this=0x1b27480) at io/qfilesystemwatcher_inotify.cpp:256
#9  0x00007fadd5fb8bec in QThreadPrivate::start (arg=0x1b27480) at thread/qthread_unix.cpp:338
#10 0x00007fadd27edf8e in start_thread (arg=0x7fadc119f700) at pthread_create.c:311
#11 0x00007fadd56f0e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fadd86a77c0 (LWP 9505)):
[KCrash Handler]
#6  0x00007fadc6c817a3 in Okular::Page::width (this=this@entry=0x260d320) at ../core/page.cpp:182
#7  0x00007fadc6faedbe in PageView::updateItemSize (this=this@entry=0x1c44d60, item=item@entry=0x2507100, colWidth=998, rowHeight=rowHeight@entry=1006) at ../ui/pageview.cpp:3263
#8  0x00007fadc6fb7ccd in PageView::slotRelayoutPages (this=this@entry=0x1c44d60) at ../ui/pageview.cpp:3922
#9  0x00007fadc6fb895c in PageView::updateZoom (this=this@entry=0x1c44d60, newZoomMode=<optimized out>, newZoomMode@entry=PageView::ZoomRefreshCurrent) at ../ui/pageview.cpp:3569
#10 0x00007fadc6fb8d8d in setCapability (option=..., this=0x1c44d60, capability=<optimized out>) at ../ui/pageview.cpp:1356
#11 PageView::setCapability (this=0x1c44d60, capability=<optimized out>, option=...) at ../ui/pageview.cpp:1345
#12 0x00007fadc6c5e63e in Okular::DocumentPrivate::loadViewsInfo (this=this@entry=0x1bb3920, view=view@entry=0x1c44d98, e=...) at ../core/document.cpp:736
#13 0x00007fadc6c6ea73 in Okular::DocumentPrivate::loadDocumentInfo (this=0x1bb3920, fileName=...) at ../core/document.cpp:704
#14 0x00007fadc6c6ec19 in Okular::DocumentPrivate::loadDocumentInfo (this=<optimized out>) at ../core/document.cpp:599
#15 0x00007fadc6c74b8d in Okular::Document::openDocument (this=0x1ad1cf0, docFile=..., url=..., _mime=...) at ../core/document.cpp:2221
#16 0x00007fadc6f62541 in Okular::Part::openFile (this=0x1acd410) at ../part.cpp:1224
#17 0x00007fadd82a3170 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x1acd750) at ../../kparts/part.cpp:591
#18 0x00007fadd82a3b74 in KParts::ReadOnlyPart::openUrl (this=this@entry=0x1acd410, url=...) at ../../kparts/part.cpp:555
#19 0x00007fadc6f587da in Okular::Part::slotDoFileDirty (this=0x1acd410) at ../part.cpp:1627
#20 0x00007fadc6f6403a in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./part.moc:238
#21 Okular::Part::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./part.moc:163
#22 0x00007fadd60ca0ef in QMetaObject::activate (sender=0x1f5b270, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#23 0x00007fadd60cf3ec in QObject::event (this=0x1f5b270, e=<optimized out>) at kernel/qobject.cpp:1156
#24 0x00007fadd6a9f8ec in QApplicationPrivate::notify_helper (this=this@entry=0x19033a0, receiver=receiver@entry=0x1f5b270, e=e@entry=0x7ffff0954f10) at kernel/qapplication.cpp:4567
#25 0x00007fadd6aa225b in QApplication::notify (this=this@entry=0x7ffff0955510, receiver=receiver@entry=0x1f5b270, e=e@entry=0x7ffff0954f10) at kernel/qapplication.cpp:4428
#26 0x00007fadd77a9916 in KApplication::notify (this=0x7ffff0955510, receiver=0x1f5b270, event=0x7ffff0954f10) at ../../kdeui/kernel/kapplication.cpp:311
#27 0x00007fadd60b563e in QCoreApplication::notifyInternal (this=0x7ffff0955510, receiver=0x1f5b270, event=event@entry=0x7ffff0954f10) at kernel/qcoreapplication.cpp:946
#28 0x00007fadd60e6b72 in sendEvent (event=0x7ffff0954f10, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#29 QTimerInfoList::activateTimers (this=0x1908660) at kernel/qeventdispatcher_unix.cpp:622
#30 0x00007fadd60e39a4 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#31 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#32 0x00007fadd60e39c1 in idleTimerSourceDispatch (source=source@entry=0x19086b0) at kernel/qeventdispatcher_glib.cpp:233
#33 0x00007fadd231af05 in g_main_dispatch (context=0x1907740) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3054
#34 g_main_context_dispatch (context=context@entry=0x1907740) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3630
#35 0x00007fadd231b248 in g_main_context_iterate (context=context@entry=0x1907740, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3701
#36 0x00007fadd231b304 in g_main_context_iteration (context=0x1907740, may_block=1) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3762
#37 0x00007fadd60e4016 in QEventDispatcherGlib::processEvents (this=0x19066a0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#38 0x00007fadd6b4513e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007fadd60b438f in QEventLoop::processEvents (this=this@entry=0x7ffff0955190, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007fadd60b4618 in QEventLoop::exec (this=this@entry=0x7ffff0955190, flags=...) at kernel/qeventloop.cpp:204
#41 0x00007fadd60b9cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#42 0x00007fadd6a9dffc in QApplication::exec () at kernel/qapplication.cpp:3828
#43 0x00000000004082ce in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:100

Reported using DrKonqi
Comment 1 Albert Astals Cid 2013-09-21 15:23:52 UTC
I understand you say it crashed while refreshing the file, not that it crashes every time you open that file, right?
Comment 2 Thomas Dreibholz 2013-09-26 09:13:04 UTC
Yes, Okular crashed when updating the PDF file.
Comment 3 Albert Astals Cid 2013-09-26 18:21:13 UTC
Going back to unconfirmed (it's one of those one off hard to repro crashes that needs lots of deep investigation and some luck to fix)
Comment 4 auxsvr 2013-10-16 18:36:22 UTC
Created attachment 82887 [details]
New crash information added by DrKonqi

okular (0.17.2) on KDE Platform 4.11.2 using Qt 4.8.5

- What I was doing when the application crashed:

Okular was searching for a word, when I recompiled the tex document that corresponds to the PDF file. Okular continued to search, even though the document was not visible. After the compilation finished, it crashed with the attached backtrace.

-- Backtrace (Reduced):
#6  0xb34b52f6 in Okular::Page::width (this=0xaf2b318) at /usr/src/debug/okular-4.11.2/core/page.cpp:182
#7  0xb35d1c55 in PageView::updateItemSize (this=this@entry=0x8804410, item=item@entry=0x9c73c00, colWidth=685, rowHeight=rowHeight@entry=459) at /usr/src/debug/okular-4.11.2/ui/pageview.cpp:3263
#8  0xb35dc8de in PageView::slotRelayoutPages (this=this@entry=0x8804410) at /usr/src/debug/okular-4.11.2/ui/pageview.cpp:3922
#9  0xb35e7ae8 in qt_static_metacall (_a=0xa342dd0, _id=15, _o=0x8804410, _c=<optimized out>) at /usr/src/debug/okular-4.11.2/build/pageview.moc:168
#10 PageView::qt_static_metacall (_o=0x8804410, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xa342dd0) at /usr/src/debug/okular-4.11.2/build/pageview.moc:147
Comment 5 Maarten Bezemer 2013-10-18 14:28:14 UTC
Created attachment 82926 [details]
New crash information added by DrKonqi

okular (0.17.2) on KDE Platform 4.11.2 using Qt 4.8.4

- What I was doing when the application crashed:

Okular was sitting on my other monitor, but I guess that the PDF got reloaded (due to auto-build feature) as I was working on its sources.

-- Backtrace (Reduced):
#6  0x00007f01a68058e3 in Okular::Page::width (this=this@entry=0x1ae16f0) at ../core/page.cpp:182
#7  0x00007f01a6b03066 in PageView::updateItemSize (this=this@entry=0x17fe880, item=item@entry=0x1c80e90, colWidth=1282, rowHeight=rowHeight@entry=873) at ../ui/pageview.cpp:3263
#8  0x00007f01a6b0bffe in PageView::slotRelayoutPages (this=0x17fe880) at ../ui/pageview.cpp:3922
#9  0x00007f01a6b137c5 in PageView::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at ./pageview.moc:169
#10 0x00007f01b599fdce in QObject::event (this=this@entry=0x17fe880, e=e@entry=0x1c2aa50) at kernel/qobject.cpp:1194
Comment 6 Maarten Bezemer 2013-10-18 14:45:42 UTC
Sometimes the document gets reloaded, but all pages are black. Which is solved after a second (automatic) reload.

It is possible that Okular is reloading the document too early, before the PDF writer is finished outputting it? Resulting in crashes (due to unexpected/missing content) or the black pages?
Comment 7 Albert Astals Cid 2013-10-18 14:52:28 UTC
There's no way to know if the pdf writing has really finished, so we try to reload the file if it has not changed in the last X seconds.
Comment 8 Tiago Cogumbreiro 2013-10-24 09:08:06 UTC
Created attachment 83075 [details]
New crash information added by DrKonqi

okular (0.17.2) on KDE Platform 4.11.2 using Qt 4.8.4

- What I was doing when the application crashed:

Editing a document with LaTeX. The PDF I was viewing in Okular was recreated by pdflatex. Okular crashed upon refreshing the PDF.

-- Backtrace (Reduced):
#6  0xb0e7cdb6 in Okular::Page::width (this=this@entry=0x86f43c8) at ../core/page.cpp:182
#7  0xb0f63932 in PageView::updateItemSize (this=this@entry=0x8458760, item=item@entry=0x8a59908, colWidth=663, rowHeight=rowHeight@entry=625) at ../ui/pageview.cpp:3263
#8  0xb0f6d8fa in PageView::slotRelayoutPages (this=this@entry=0x8458760) at ../ui/pageview.cpp:3922
#9  0xb0f6ea47 in PageView::updateZoom (this=this@entry=0x8458760, newZoomMode=<optimized out>, newZoomMode@entry=PageView::ZoomRefreshCurrent) at ../ui/pageview.cpp:3569
#10 0xb0f6ee30 in PageView::setCapability (this=0x8458760, capability=Okular::View::Zoom, option=...) at ../ui/pageview.cpp:1356
Comment 9 Jekyll Wu 2013-11-09 10:12:12 UTC
*** Bug 327355 has been marked as a duplicate of this bug. ***
Comment 10 Julian Haddad 2013-11-21 20:53:42 UTC
Created attachment 83688 [details]
New crash information added by DrKonqi

okular (0.17.2) on KDE Platform 4.11.2 using Qt 4.8.4

- What I was doing when the application crashed:

I compiled my PDF with pdflatex,
did a search with CTRL+F and found an undefined reference.  A word was highlighted.
I compiled my PDF once again and Okular crashed.

-- Backtrace (Reduced):
#5  0x00007ffd425098e3 in Okular::Page::width (this=this@entry=0x2ff39d0) at ../core/page.cpp:182
#6  0x00007ffd42807066 in PageView::updateItemSize (this=this@entry=0x1bec910, item=item@entry=0x20f3510, colWidth=1343, rowHeight=rowHeight@entry=591) at ../ui/pageview.cpp:3263
#7  0x00007ffd4280fffe in PageView::slotRelayoutPages (this=this@entry=0x1bec910) at ../ui/pageview.cpp:3922
#8  0x00007ffd42810f04 in PageView::updateZoom (this=this@entry=0x1bec910, newZoomMode=<optimized out>, newZoomMode@entry=PageView::ZoomRefreshCurrent) at ../ui/pageview.cpp:3569
#9  0x00007ffd428112e1 in PageView::setCapability (this=0x1bec910, capability=<optimized out>, option=...) at ../ui/pageview.cpp:1356
Comment 11 Albert Astals Cid 2013-12-09 22:17:00 UTC
*** Bug 328598 has been marked as a duplicate of this bug. ***
Comment 12 Yasin Zähringer 2014-01-17 15:45:11 UTC
Created attachment 84699 [details]
New crash information added by DrKonqi

okular (0.18.0) on KDE Platform 4.12.0 using Qt 4.8.4

I was also recompiling my LaTeX source when okular crashed.

-- Backtrace (Reduced):
#7  0xb2440ef6 in Okular::Page::width (this=this@entry=0x9380160) at ../core/page.cpp:182
#8  0xb25499f2 in PageView::updateItemSize (this=this@entry=0x91fd4f0, item=item@entry=0x930c0b0, colWidth=923, rowHeight=rowHeight@entry=458) at ../ui/pageview.cpp:3298
#9  0xb2553e4a in PageView::slotRelayoutPages (this=0x91fd4f0) at ../ui/pageview.cpp:3993
#10 0xb255bc78 in PageView::qt_static_metacall (_o=0x720067, _id=156224504, _a=0x9250168, _c=<optimized out>) at ./pageview.moc:173
[...]
#12 0xb619c58b in QObject::event (this=0x91fd4f0, e=0x9568c60) at kernel/qobject.cpp:1194
Comment 13 martinstingl 2014-03-19 16:31:48 UTC
Created attachment 85639 [details]
New crash information added by DrKonqi

okular (0.17.5) on KDE Platform 4.11.5 using Qt 4.8.4

- What I was doing when the application crashed:

Pressing F5 caused Okular to crash. This is not reproducable for me.

-- Backtrace (Reduced):
#6  0x00007fcf6536aa13 in Okular::Page::width (this=this@entry=0x16c5260) at ../core/page.cpp:182
#7  0x00007fcf65668236 in PageView::updateItemSize (this=this@entry=0x1505b80, item=item@entry=0x18ae960, colWidth=929, rowHeight=rowHeight@entry=418) at ../ui/pageview.cpp:3263
#8  0x00007fcf656711ce in PageView::slotRelayoutPages (this=this@entry=0x1505b80) at ../ui/pageview.cpp:3922
#9  0x00007fcf656720d4 in PageView::updateZoom (this=this@entry=0x1505b80, newZoomMode=<optimized out>, newZoomMode@entry=PageView::ZoomRefreshCurrent) at ../ui/pageview.cpp:3569
#10 0x00007fcf656724b1 in PageView::setCapability (this=0x1505b80, capability=<optimized out>, option=...) at ../ui/pageview.cpp:1356
Comment 14 Jekyll Wu 2014-03-25 00:38:56 UTC
*** Bug 332528 has been marked as a duplicate of this bug. ***
Comment 15 Albert Astals Cid 2014-04-10 17:46:05 UTC
*** Bug 333292 has been marked as a duplicate of this bug. ***
Comment 16 Albert Astals Cid 2014-05-08 11:01:15 UTC
Can any of you guys that could reproduce this bug please try with Okular >= 0.19.0 ( KDE >= 4.13.0 ). I know i fixed some bugs regarding refreshing of files and i think this one is one of them.

Thanks for caring about Okular :)
Comment 17 Albert Astals Cid 2015-07-09 20:34:48 UTC
Since you didn't come back to us we hope it was fixed meanwhile :)