Bug 368398 - crash when moving pop-up note beyond page border
Summary: crash when moving pop-up note beyond page border
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.21.3
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-07 14:27 UTC by kadlecf
Modified: 2016-10-02 22:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kadlecf 2016-09-07 14:27:29 UTC
If a pop-up note (created via the Review | Pop-up Note tool) is moved beyond the page border, okular crashes. Ideally, I would wish not only to avoid the crash, but also to be able to move the pop-up note to another page (in a multiple-page view)

Reproducible: Always

Steps to Reproduce:
1. Open a file, usually I use pdf.
2. Create a pop-up note
3. Move the note (ctrl-mouse) beyond the page border.

Actual Results:  
Okular crashes.

Expected Results:  
1. Note stays at the page border; or,
2. In a multi-page view, the note is moved to another page, if the mouse cursor is dropped to a location on that page.

Application: okular (0.21.3)
KDE Platform Version: 4.14.9
Qt Version: 4.8.6
Operating System: Linux 3.16.7-42-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f1c141c2780 (LWP 13048))]

Thread 2 (Thread 0x7f1bfcf03700 (LWP 13050)):
#0  0x00007f1c1119b95d in read () from /lib64/libc.so.6
#1  0x00007f1c0dbe9750 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f1c0dba8714 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f1c0dba8b7b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f1c0dba8cec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f1c11b9f0de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f1c11b70e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x00007f1c11b71165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#8  0x00007f1c11a6e0bf in QThread::exec() () from /usr/lib64/libQtCore.so.4
#9  0x00007f1c11b52783 in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007f1c11a7079f in ?? () from /usr/lib64/libQtCore.so.4
#11 0x00007f1c0f0d20a4 in start_thread () from /lib64/libpthread.so.0
#12 0x00007f1c111a7cbd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f1c141c2780 (LWP 13048)):
[KCrash Handler]
#5  0x00007f1c0211ea90 in ?? () from /usr/lib64/kde4/okularpart.so
#6  0x00007f1c0211651a in ?? () from /usr/lib64/kde4/okularpart.so
#7  0x00007f1c125cfa7b in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#8  0x00007f1c1296c5de in QFrame::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#9  0x00007f1c0211b896 in ?? () from /usr/lib64/kde4/okularpart.so
#10 0x00007f1c11b72416 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#11 0x00007f1c1258074c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#12 0x00007f1c12586dea in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#13 0x00007f1c13298e0a in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#14 0x00007f1c11b722ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#15 0x00007f1c125865e3 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#16 0x00007f1c125f7c9b in ?? () from /usr/lib64/libQtGui.so.4
#17 0x00007f1c125f670c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007f1c1261d5c2 in ?? () from /usr/lib64/libQtGui.so.4
#19 0x00007f1c0dba8a04 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#20 0x00007f1c0dba8c48 in ?? () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f1c0dba8cec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f1c11b9f0be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#23 0x00007f1c1261d676 in ?? () from /usr/lib64/libQtGui.so.4
#24 0x00007f1c11b70e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#25 0x00007f1c11b71165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#26 0x00007f1c11b765b9 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#27 0x000000000040a480 in ?? ()
#28 0x00007f1c110e4b05 in __libc_start_main () from /lib64/libc.so.6
#29 0x000000000040bda2 in _start ()
Comment 1 Albert Astals Cid 2016-10-02 22:00:38 UTC
I can't find what commit fixed this, but with the current version of okular (the one you're using is almost 2 years old) i can't move the note outside the page, hence no crash.

If you upgrade to Okular >= 0.24.2 and it still crashes please reopen this bug.