Bug 316802 - okular crashes when adding a stamp
Summary: okular crashes when adding a stamp
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-15 22:05 UTC by Giorgio
Modified: 2014-05-08 09:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
output of valgrind (20.50 KB, text/plain)
2013-03-26 17:53 UTC, Giorgio
Details
the xml file which makes okular crash. (27.10 KB, application/xml)
2013-04-12 21:16 UTC, Giorgio
Details
the pdf on which okular crashes (44 bytes, text/plain)
2013-04-12 21:22 UTC, Giorgio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giorgio 2013-03-15 22:05:19 UTC
Application: okular (0.15.3)
KDE Platform Version: 4.9.5
Qt Version: 4.8.3
Operating System: Linux 3.5.7.2 x86_64
Distribution: Ubuntu 12.10

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

I was adding a stamp (F6 + 7). Sometimes it crashes while opening the proprieties of the stamp.

The crash can be reproduced some of the time.

-- 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 0x7f0dbb6ce780 (LWP 5278))]

Thread 2 (Thread 0x7f0d9f7fe700 (LWP 5296)):
#0  0x00007f0db8935303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f0db5534d84 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0db5534ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0db9330c16 in QEventDispatcherGlib::processEvents (this=0x7f0d980013e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f0db93012bf in QEventLoop::processEvents (this=this@entry=0x7f0d9f7fddd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f0db9301548 in QEventLoop::exec (this=0x7f0d9f7fddd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f0db9202b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f0db92e19af in QInotifyFileSystemWatcherEngine::run (this=0x1878bb0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f0db9205aec in QThreadPrivate::start (arg=0x1878bb0) at thread/qthread_unix.cpp:338
#9  0x00007f0db5a03e9a in start_thread (arg=0x7f0d9f7fe700) at pthread_create.c:308
#10 0x00007f0db8940cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0dbb6ce780 (LWP 5278)):
[KCrash Handler]
#5  QSortFilterProxyModelPrivate::updateChildrenMapping (this=this@entry=0x15c47a0, source_parent=..., parent_mapping=parent_mapping@entry=0x16245e0, orient=orient@entry=Qt::Vertical, start=start@entry=10, end=end@entry=10, delta_item_count=delta_item_count@entry=1, remove=remove@entry=false) at itemviews/qsortfilterproxymodel.cpp:948
#6  0x00007f0dba274dbe in QSortFilterProxyModelPrivate::source_items_inserted (this=this@entry=0x15c47a0, source_parent=..., start=10, end=10, orient=orient@entry=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:745
#7  0x00007f0dba2752bf in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x15c47a0, source_parent=..., start=<optimized out>, end=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:1281
#8  0x00007f0db9317f5f in QMetaObject::activate (sender=0x15c4ca0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffe2a0ff60) at kernel/qobject.cpp:3547
#9  0x00007f0db9361be4 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=..., _t2=10, _t3=10) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#10 0x00007f0db92fce6a in QAbstractItemModel::endInsertRows (this=0x15c4ca0) at kernel/qabstractitemmodel.cpp:2433
#11 0x00007f0da9877d80 in AnnotationModelPrivate::notifyPageChanged (this=0x159b790, page=<optimized out>, flags=<optimized out>) at ../ui/annotationmodel.cpp:146
#12 0x00007f0da959fd9f in Okular::DocumentPrivate::notifyAnnotationChanges (this=<optimized out>, page=page@entry=20) at ../core/document.cpp:2480
#13 0x00007f0da95aab48 in Okular::Document::addPageAnnotation (this=0x1567ff0, page=20, annotation=0x1637090) at ../core/document.cpp:2505
#14 0x00007f0da989cc31 in PageViewAnnotator::routeEvent (this=0x24b3400, e=<optimized out>, item=0x1a70ce0) at ../ui/pageviewannotator.cpp:793
#15 0x00007f0da98b2d6a in PageView::mouseReleaseEvent (this=0x1681780, e=0x7fffe2a10f20) at ../ui/pageview.cpp:2164
#16 0x00007f0db9d34850 in QWidget::event (this=0x1681780, event=0x7fffe2a10f20) at kernel/qwidget.cpp:8371
#17 0x00007f0dba0e3b66 in QFrame::event (this=0x1681780, e=0x7fffe2a10f20) at widgets/qframe.cpp:557
#18 0x00007f0da98a3c9d in PageView::viewportEvent (this=0x1681780, e=0x7fffe2a10f20) at ../ui/pageview.cpp:2994
#19 0x00007f0db93026d6 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x1660490, event=0x7fffe2a10f20) at kernel/qcoreapplication.cpp:1025
#20 0x00007f0db9ce4e6c in QApplicationPrivate::notify_helper (this=this@entry=0x13c35d0, receiver=receiver@entry=0x1660490, e=e@entry=0x7fffe2a10f20) at kernel/qapplication.cpp:4558
#21 0x00007f0db9ce9b6b in QApplication::notify (this=<optimized out>, receiver=0x1660490, e=0x7fffe2a10f20) at kernel/qapplication.cpp:4105
#22 0x00007f0dba9ed1f6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#23 0x00007f0db930256e in QCoreApplication::notifyInternal (this=0x7fffe2a11cc0, receiver=0x1660490, event=0x7fffe2a10f20) at kernel/qcoreapplication.cpp:915
#24 0x00007f0db9ce5cd3 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 QApplicationPrivate::sendMouseEvent (receiver=0x1660490, event=0x7fffe2a10f20, alienWidget=0x1660490, nativeWidget=0x154b720, buttonDown=0x7f0dba7c1308 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#26 0x00007f0db9d63554 in QETWidget::translateMouseEvent (this=this@entry=0x154b720, event=event@entry=0x7fffe2a116a0) at kernel/qapplication_x11.cpp:4622
#27 0x00007f0db9d6244f in QApplication::x11ProcessEvent (this=0x7fffe2a11cc0, event=0x7fffe2a116a0) at kernel/qapplication_x11.cpp:3737
#28 0x00007f0db9d89fa2 in x11EventSourceDispatch (s=0x13b4d20, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#29 0x00007f0db5534ab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f0db5534de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f0db5534ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f0db9330c16 in QEventDispatcherGlib::processEvents (this=0x1396b30, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#33 0x00007f0db9d89c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f0db93012bf in QEventLoop::processEvents (this=this@entry=0x7fffe2a11a70, flags=...) at kernel/qeventloop.cpp:149
#35 0x00007f0db9301548 in QEventLoop::exec (this=0x7fffe2a11a70, flags=...) at kernel/qeventloop.cpp:204
#36 0x00007f0db9306708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#37 0x000000000040822e in main (argc=<optimized out>, argv=<optimized out>) at /home/giorgio/oku/okular-4.9.3/shell/main.cpp:85

Possible duplicates by query: bug 311037, bug 289310, bug 277822, bug 276643.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2013-03-19 22:46:56 UTC
Hi Giorgio, could you please do this in a terminal

valgrind okular

And then do what you usually make to make okular crash (have patience it will be slow) and attach the output of the valgrind command in the terminal

Thanks!
Comment 2 Giorgio 2013-03-26 17:53:31 UTC
Created attachment 78405 [details]
output of valgrind

This is the output of 
valgrind --log-file=okular.out okular
until okular crashed again while adding a stamp.
Comment 3 Albert Astals Cid 2013-04-07 16:08:41 UTC
I can't reproduce the crash. Maybe it has to do with the file your using. Could you share the file and in case it has more than one page tell us in which page are you adding the stamp?
Comment 4 Giorgio 2013-04-12 21:16:40 UTC
Created attachment 78845 [details]
the xml file which makes okular crash.
Comment 5 Giorgio 2013-04-12 21:19:54 UTC
The pdf file is too big (10M), so I'm uploading it somewhere and adding here a link to download it.
Anyway I realized that the problem is somehow connected with the xml file associated to the PDF, so I've uploaded it here. 

The crash happens on many pages, but for sure on page 20.
Comment 6 Giorgio 2013-04-12 21:22:01 UTC
Created attachment 78846 [details]
the pdf on which okular crashes
Comment 7 Albert Astals Cid 2013-04-14 14:45:29 UTC
Hi again, i tried to go to http://ubuntuone.com/5ee3zkHaF8Zj20QKbsIYCT as you say but I am getting a 404, can you try sending it to aacid@kde.org or tsdgeos@gmail.com or uploading it again to somewhere?
Comment 8 Albert Astals Cid 2013-04-14 22:07:38 UTC
Ok, got the file
Comment 9 Albert Astals Cid 2013-05-20 16:34:15 UTC
Still works here :-/

Can you tell me, in the sidebar, which of the three buttons of the lower part of the annotations "tab" you have checked?
Comment 10 Christoph Feck 2013-06-15 21:54:03 UTC
If you can provide the information in comment #9, please add it.
Comment 11 Ricardo Varas 2013-10-02 20:00:42 UTC
Hi Giorgio, thanks for reporting this bug.
I could not reproduce it as It seems to work well under Okular Version 0.17.1. KDE 4.11.1. What I did was to use a 15MB pdf file and insert a Stamp [7], then right click for the properties options and changed the symbol. All good.
Can you please check if there is a newer version in your Ubuntu install?
Thanks.
Comment 12 Albert Astals Cid 2013-10-02 20:05:59 UTC
waiting...
Comment 13 Albert Astals Cid 2014-05-08 09:44:32 UTC
No answer in more than 6 months