Bug 162822 - Crash in the annotation system when removing an annotation
Summary: Crash in the annotation system when removing an annotation
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-29 18:38 UTC by Quentin Godfroy
Modified: 2008-05-29 21:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Godfroy 2008-05-29 18:38:14 UTC
Version:           4:4.0.80-1 (using KDE 4.0.4)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc 
OS:                Linux

Linux x86_64 2.6.24.4, glibc-2.7
I tried PDF and PS backends.

When adding an annotation with okular, open it, close it then delete the annotation with right-click->delete raises a segmentation fault.

Application: Okular (okular), signal SIGSEGV
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2b8242f7acc0 (LWP 414023)]
[KCrash handler]
#5  0x00002b824550895b in Okular::Annotation::author ()
   from /usr/lib/libokularcore.so.1
#6  0x00002b824522ec38 in ?? () from /usr/lib/kde4/okularpart.so
#7  0x00002b8245262674 in ?? () from /usr/lib/kde4/okularpart.so
#8  0x00002b8245525915 in Okular::Document::removePageAnnotation ()
   from /usr/lib/libokularcore.so.1
#9  0x00002b8245231e87 in ?? () from /usr/lib/kde4/okularpart.so
#10 0x00002b82452672aa in ?? () from /usr/lib/kde4/okularpart.so
#11 0x00002b823c1b3597 in QWidget::event (this=0x7b9390, event=0x7fff6f7d3490)
    at kernel/qwidget.cpp:6923
#12 0x00002b824526e07d in ?? () from /usr/lib/kde4/okularpart.so
#13 0x00002b823c1654df in QApplicationPrivate::notify_helper (this=0x620490, 
    receiver=0x7b9390, e=0x7fff6f7d3490) at kernel/qapplication.cpp:3772
#14 0x00002b823c16a2b9 in QApplication::notify (this=0x7fff6f7d3f60, 
    receiver=0x7b9390, e=0x7fff6f7d3490) at kernel/qapplication.cpp:3501
#15 0x00002b823bbdbd2b in KApplication::notify (this=0x7fff6f7d3f60, 
    receiver=0x7b9390, event=0x7fff6f7d3490)
    at /tmp/buildd/kde4libs-4.0.80/kdeui/kernel/kapplication.cpp:311
#16 0x00002b823d08fbd9 in QCoreApplication::notifyInternal (
    this=0x7fff6f7d3f60, receiver=0x7b9390, event=0x7fff6f7d3490)
    at kernel/qcoreapplication.cpp:587
#17 0x00002b823c1673e5 in QApplicationPrivate::sendMouseEvent (
    receiver=0x7b9390, event=0x7fff6f7d3490, 
    alienWidget=<value optimized out>, nativeWidget=0x69dcf0, 
    buttonDown=<value optimized out>, lastMouseReceiver=@0x2b823cad61a0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#18 0x00002b823c1c958c in QETWidget::translateMouseEvent (this=0x69dcf0, 
    event=<value optimized out>) at kernel/qapplication_x11.cpp:4133
#19 0x00002b823c1c84f2 in QApplication::x11ProcessEvent (this=0x77, 
    event=0x7fff6f7d3c00) at kernel/qapplication_x11.cpp:3255
#20 0x00002b823c1ee3c3 in x11EventSourceDispatch (s=0x623d10, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#21 0x00002b824027d0f2 in IA__g_main_context_dispatch (context=0x623040)
    at /tmp/buildd/glib2.0-2.16.3/glib/gmain.c:2009
#22 0x00002b8240280396 in g_main_context_iterate (context=0x623040, block=1, 
    dispatch=1, self=<value optimized out>)
    at /tmp/buildd/glib2.0-2.16.3/glib/gmain.c:2642
#23 0x00002b824028082f in IA__g_main_context_iteration (context=0x623040, 
    may_block=1) at /tmp/buildd/glib2.0-2.16.3/glib/gmain.c:2705
#24 0x00002b823d0b8dff in QEventDispatcherGlib::processEvents (this=0x6207d0, 
    flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:325
#25 0x00002b823c1ee20f in QGuiEventDispatcherGlib::processEvents (
    this=0x7fff6f7d2710, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:204
#26 0x00002b823d08f055 in QEventLoop::processEvents (
    this=<value optimized out>, flags=@0x7fff6f7d3ed0)
    at kernel/qeventloop.cpp:149
#27 0x00002b823d08f1ab in QEventLoop::exec (this=0x7fff6f7d3f10, 
    flags=@0x7fff6f7d3f20) at kernel/qeventloop.cpp:200
#28 0x00002b823d0911f9 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:845
#29 0x0000000000407946 in _start ()
Comment 1 Pino Toscano 2008-05-29 18:44:35 UTC
Cannot reproduce the issue.
Can you please run in a console:
$ okular --version
Comment 2 Pino Toscano 2008-05-29 21:13:25 UTC
SVN commit 814256 by pino:

Store the annotation window associated to the annotation it represent (using an hash);
when there's a change in the annotations of a page, remove the windows of removed annotations and update all the others.
This improval in the page annotation update fixes bug #162822.
BUG: 162822


 M  +24 -23    pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=814256