Bug 249436 - Right-click and drag in print preview crashes okular
Summary: Right-click and drag in print preview crashes okular
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 236904 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-29 18:50 UTC by Christoph Feck
Modified: 2010-09-07 13:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Feck 2010-08-29 18:50:48 UTC
Application: okular (0.11.80)
KDE Platform Version: 4.5.66 (4.6 >= 20100825) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.34.1-0.1-desktop i686
Distribution: "openSUSE 11.3 (i586)"

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

* start okular with a simple JPEG image
* invoke Print Preview
* inside the preview, drag with pressed right mouse button

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4f80710 (LWP 13703))]

Thread 2 (Thread 0xb045cb70 (LWP 13716)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb59900b1 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0xb5e6c737 in QProcessManager::run (this=0xb60148ac) at /local/git/Qt/qt/src/corelib/io/qprocess_unix.cpp:245
#3  0xb5d87c7e in QThreadPrivate::start (arg=0xb60148ac) at /local/git/Qt/qt/src/corelib/thread/qthread_unix.cpp:274
#4  0xb5ce9b25 in start_thread (arg=0xb045cb70) at pthread_create.c:297
#5  0xb599746e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb4f80710 (LWP 13703)):
[KCrash Handler]
#7  0xb644993c in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x4) at ../../include/QtCore/../../../../git/Qt/qt/src/corelib/tools/qscopedpointer.h:135
#8  0xb6448809 in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../../../git/Qt/qt/src/corelib/global/qglobal.h:2338
#9  0xb6448cf0 in QAction::d_func (this=0x0) at /local/git/Qt/qt/src/gui/kernel/qaction.h:67
#10 0xb6447a8f in QAction::activate (this=0x0, event=QAction::Trigger) at /local/git/Qt/qt/src/gui/kernel/qaction.cpp:1240
#11 0xb2b37465 in QAction::trigger() () from /local/KDE4/trunk/lib/kde4/okularpart.so
#12 0xb2b2c5c1 in PageView::mouseMoveEvent (this=0x84052c8, e=0xbfbaef8c) at /local/svn/kde/trunk/KDE/kdegraphics/okular/ui/pageview.cpp:1566
#13 0xb64b6e79 in QWidget::event (this=0x84052c8, event=0xbfbaef8c) at /local/git/Qt/qt/src/gui/kernel/qwidget.cpp:8145
#14 0xb69172e4 in QFrame::event (this=0x84052c8, e=0xbfbaef8c) at /local/git/Qt/qt/src/gui/widgets/qframe.cpp:557
#15 0xb69b7fa7 in QAbstractScrollArea::viewportEvent (this=0x84052c8, e=0xbfbaef8c) at /local/git/Qt/qt/src/gui/widgets/qabstractscrollarea.cpp:1043
#16 0xb2b3027f in PageView::viewportEvent (this=0x84052c8, e=0xbfbaef8c) at /local/svn/kde/trunk/KDE/kdegraphics/okular/ui/pageview.cpp:2302
#17 0xb69b8b1f in QAbstractScrollAreaPrivate::viewportEvent (this=0x84033f8, event=0xbfbaef8c) at /local/git/Qt/qt/src/gui/widgets/qabstractscrollarea_p.h:100
#18 0xb69b8bfc in QAbstractScrollAreaFilter::eventFilter (this=0x83ff9f0, o=0x8401da8, e=0xbfbaef8c) at /local/git/Qt/qt/src/gui/widgets/qabstractscrollarea_p.h:116
#19 0xb5e91e87 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x80727d0, receiver=0x8401da8, event=0xbfbaef8c) at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:847
#20 0xb6456ef8 in QApplicationPrivate::notify_helper (this=0x80727d0, receiver=0x8401da8, e=0xbfbaef8c) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:4395
#21 0xb645505d in QApplication::notify (this=0xbfbb0b94, receiver=0x8401da8, e=0xbfbaef8c) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3962
#22 0xb711d122 in KApplication::notify (this=0xbfbb0b94, receiver=0x8401da8, event=0xbfbaef8c) at /local/svn/kde/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:310
#23 0xb5e91baf in QCoreApplication::notifyInternal (this=0xbfbb0b94, receiver=0x8401da8, event=0xbfbaef8c) at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:732
#24 0xb64597cf in QCoreApplication::sendSpontaneousEvent (receiver=0x8401da8, event=0xbfbaef8c) at ../../include/QtCore/../../../../git/Qt/qt/src/corelib/kernel/qcoreapplication.h:218
#25 0xb6453789 in QApplicationPrivate::sendMouseEvent (receiver=0x8401da8, event=0xbfbaef8c, alienWidget=0x8401da8, nativeWidget=0xbfbaf7c8, buttonDown=0xb6f301e0, lastMouseReceiver=..., spontaneous=
    true) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3059
#26 0xb64ebbb6 in QETWidget::translateMouseEvent (this=0xbfbaf7c8, event=0xbfbaf4c0) at /local/git/Qt/qt/src/gui/kernel/qapplication_x11.cpp:4403
#27 0xb64e887e in QApplication::x11ProcessEvent (this=0xbfbb0b94, event=0xbfbaf4c0) at /local/git/Qt/qt/src/gui/kernel/qapplication_x11.cpp:3414
#28 0xb651d1fa in x11EventSourceDispatch (s=0x8075ab0, callback=0, user_data=0x0) at /local/git/Qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#29 0xb531fb49 in g_main_dispatch (context=0x8074328) at gmain.c:1960
#30 IA__g_main_context_dispatch (context=0x8074328) at gmain.c:2513
#31 0xb5320350 in g_main_context_iterate (context=0x8074328, block=1, dispatch=1, self=0x8072970) at gmain.c:2591
#32 0xb532060e in IA__g_main_context_iteration (context=0x8074328, may_block=1) at gmain.c:2654
#33 0xb5ec6134 in QEventDispatcherGlib::processEvents (this=0x8072790, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:415
#34 0xb651d550 in QGuiEventDispatcherGlib::processEvents (this=0x8072790, flags=...) at /local/git/Qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#35 0xb5e8f90d in QEventLoop::processEvents (this=0xbfbaf75c, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:149
#36 0xb5e8fa51 in QEventLoop::exec (this=0xbfbaf75c, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:201
#37 0xb6a02c90 in QDialog::exec (this=0xbfbaf7c8) at /local/git/Qt/qt/src/gui/dialogs/qdialog.cpp:552
#38 0xb2ade214 in Okular::Part::slotPrintPreview (this=0x81756f0) at /local/svn/kde/trunk/KDE/kdegraphics/okular/part.cpp:1705
#39 0xb2ae09f8 in Okular::Part::qt_metacall (this=0x81756f0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfbaf928) at /local/build/KDE/kdegraphics/okular/part.moc:192
#40 0xb5e99242 in QMetaObject::metacall (object=0x81756f0, cl=QMetaObject::InvokeMetaMethod, idx=24, argv=0xbfbaf928) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#41 0xb5eac171 in QMetaObject::activate (sender=0x82adf40, m=0xb6f126f8, local_signal_index=1, argv=0xbfbaf928) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:3272
#42 0xb644870e in QAction::triggered (this=0x82adf40, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263
#43 0xb6447ba3 in QAction::activate (this=0x82adf40, event=QAction::Trigger) at /local/git/Qt/qt/src/gui/kernel/qaction.cpp:1256
#44 0xb6963de5 in QMenuPrivate::activateCausedStack (this=0x82e1ea8, causedStack=..., action=0x82adf40, action_e=QAction::Trigger, self=true) at /local/git/Qt/qt/src/gui/widgets/qmenu.cpp:993
#45 0xb6964211 in QMenuPrivate::activateAction (this=0x82e1ea8, action=0x82adf40, action_e=QAction::Trigger, self=true) at /local/git/Qt/qt/src/gui/widgets/qmenu.cpp:1085
#46 0xb69680e2 in QMenu::mouseReleaseEvent (this=0x82dd490, e=0xbfbb02ac) at /local/git/Qt/qt/src/gui/widgets/qmenu.cpp:2301
#47 0xb720348e in KMenu::mouseReleaseEvent (this=0x82dd490, e=0xbfbb02ac) at /local/svn/kde/trunk/KDE/kdelibs/kdeui/widgets/kmenu.cpp:471
#48 0xb64b6eb5 in QWidget::event (this=0x82dd490, event=0xbfbb02ac) at /local/git/Qt/qt/src/gui/kernel/qwidget.cpp:8160
#49 0xb6968728 in QMenu::event (this=0x82dd490, e=0xbfbb02ac) at /local/git/Qt/qt/src/gui/widgets/qmenu.cpp:2410
#50 0xb6456f1c in QApplicationPrivate::notify_helper (this=0x80727d0, receiver=0x82dd490, e=0xbfbb02ac) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:4399
#51 0xb645505d in QApplication::notify (this=0xbfbb0b94, receiver=0x82dd490, e=0xbfbb02ac) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3962
#52 0xb711d122 in KApplication::notify (this=0xbfbb0b94, receiver=0x82dd490, event=0xbfbb02ac) at /local/svn/kde/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:310
#53 0xb5e91baf in QCoreApplication::notifyInternal (this=0xbfbb0b94, receiver=0x82dd490, event=0xbfbb02ac) at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:732
#54 0xb64597cf in QCoreApplication::sendSpontaneousEvent (receiver=0x82dd490, event=0xbfbb02ac) at ../../include/QtCore/../../../../git/Qt/qt/src/corelib/kernel/qcoreapplication.h:218
#55 0xb6453789 in QApplicationPrivate::sendMouseEvent (receiver=0x82dd490, event=0xbfbb02ac, alienWidget=0x0, nativeWidget=0x82dd490, buttonDown=0xb6f301e0, lastMouseReceiver=..., spontaneous=true)
    at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3059
#56 0xb64eb917 in QETWidget::translateMouseEvent (this=0x82dd490, event=0xbfbb08a0) at /local/git/Qt/qt/src/gui/kernel/qapplication_x11.cpp:4337
#57 0xb64e887e in QApplication::x11ProcessEvent (this=0xbfbb0b94, event=0xbfbb08a0) at /local/git/Qt/qt/src/gui/kernel/qapplication_x11.cpp:3414
#58 0xb651d1fa in x11EventSourceDispatch (s=0x8075ab0, callback=0, user_data=0x0) at /local/git/Qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#59 0xb531fb49 in g_main_dispatch (context=0x8074328) at gmain.c:1960
#60 IA__g_main_context_dispatch (context=0x8074328) at gmain.c:2513
#61 0xb5320350 in g_main_context_iterate (context=0x8074328, block=1, dispatch=1, self=0x8072970) at gmain.c:2591
#62 0xb532060e in IA__g_main_context_iteration (context=0x8074328, may_block=1) at gmain.c:2654
#63 0xb5ec6134 in QEventDispatcherGlib::processEvents (this=0x8072790, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:415
#64 0xb651d550 in QGuiEventDispatcherGlib::processEvents (this=0x8072790, flags=...) at /local/git/Qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#65 0xb5e8f90d in QEventLoop::processEvents (this=0xbfbb0b3c, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:149
#66 0xb5e8fa51 in QEventLoop::exec (this=0xbfbb0b3c, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:201
#67 0xb5e9229a in QCoreApplication::exec () at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:1009
#68 0xb64543fa in QApplication::exec () at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3675
#69 0x0804f08e in main (argc=2, argv=0xbfbb0cc4) at /local/svn/kde/trunk/KDE/kdegraphics/okular/shell/main.cpp:82

Reported using DrKonqi
Comment 1 Albert Astals Cid 2010-08-30 20:13:49 UTC
SVN commit 1170081 by aacid:

Do not crash if we are in dummy mode and the user tries to "select an area"
BUGS: 249436
FIXED-IN: 4.5.2


 M  +1 -1      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1170081
Comment 2 ntsp 2010-09-07 13:14:57 UTC
*** Bug 236904 has been marked as a duplicate of this bug. ***