Bug 304789 - Crash on drag and drop from Mendeley
Summary: Crash on drag and drop from Mendeley
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.14.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-08 12:10 UTC by Jeroen Keiren
Modified: 2012-08-08 19:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Keiren 2012-08-08 12:10:26 UTC
Application: okular (0.14.3)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-29-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
From Mendeley (www.mendeley.com), drag and drop a bibliography entry to Okular. Upon dropping, Okular crashes.

The crash can be reproduced every 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 0x7f9fa5a2b780 (LWP 31902))]

Thread 3 (Thread 0x7f9f917ca700 (LWP 31905)):
#0  0x00007f9fa2bff0bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f9f9fa428cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9f9fa07ba4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9f9fa07fd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9f9fa0849a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9f917cf98b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#6  0x00007f9f9fa299e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f9f9fed4e9a in start_thread (arg=0x7f9f917ca700) at pthread_create.c:308
#8  0x00007f9fa2c0c4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9f90fc9700 (LWP 31906)):
#0  0x00007f9fa2c00b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9f9fa08036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9f9fa0849a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9f98928406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f9f9fa299e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9f9fed4e9a in start_thread (arg=0x7f9f90fc9700) at pthread_create.c:308
#6  0x00007f9fa2c0c4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9fa5a2b780 (LWP 31902)):
[KCrash Handler]
#6  QUrl::scheme (this=0x31) at io/qurl.cpp:4494
#7  0x00007f9fa3a4ebbd in ?? () from /usr/lib/libkdecore.so.5
#8  0x00007f9fa52abdb0 in KIO::NetAccess::exists(KUrl const&, KIO::NetAccess::StatSide, QWidget*) () from /usr/lib/libkio.so.5
#9  0x00007f9f7ddbce5f in Okular::Part::openUrlFromDocument (this=0x9fdc00, url=...) at ../part.cpp:895
#10 0x00007f9f7ddccfbe in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./part.moc:187
#11 Okular::Part::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./part.moc:159
#12 0x00007f9fa35e7281 in QMetaObject::activate (sender=0xcd3c70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff1a933f40) at kernel/qobject.cpp:3547
#13 0x00007f9f7de11912 in PageView::urlDropped (this=<optimized out>, _t1=...) at ./pageview.moc:247
#14 0x00007f9f7de22279 in dropEvent (ev=0x7fff1a9347c0, this=0xcd3c70) at ../ui/pageview.cpp:2861
#15 PageView::dropEvent (this=0xcd3c70, ev=0x7fff1a9347c0) at ../ui/pageview.cpp:2858
#16 0x00007f9fa401e491 in QWidget::event (this=0xcd3c70, event=0x7fff1a9347c0) at kernel/qwidget.cpp:8552
#17 0x00007f9fa43de3b6 in QFrame::event (this=0xcd3c70, e=0x7fff1a9347c0) at widgets/qframe.cpp:557
#18 0x00007f9f7de0e4ed in PageView::viewportEvent (this=0xcd3c70, e=0x7fff1a9347c0) at ../ui/pageview.cpp:2911
#19 0x00007f9fa35d3028 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0xcd3190, event=0x7fff1a9347c0) at kernel/qcoreapplication.cpp:986
#20 0x00007f9fa3fcd85f in notify_helper (e=0x7fff1a9347c0, receiver=0xcd3190, this=0x760980) at kernel/qapplication.cpp:4555
#21 QApplicationPrivate::notify_helper (this=0x760980, receiver=0xcd3190, e=0x7fff1a9347c0) at kernel/qapplication.cpp:4531
#22 0x00007f9fa3fd2c5f in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fff1a9347c0) at kernel/qapplication.cpp:4345
#23 0x00007f9fa4d079e6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x00007f9fa35d2e9c in QCoreApplication::notifyInternal (this=0x7fff1a9352a0, receiver=0xcd3190, event=0x7fff1a9347c0) at kernel/qcoreapplication.cpp:876
#25 0x00007f9fa4058163 in sendEvent (event=0x7fff1a9347c0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QX11Data::xdndHandleDrop (this=<optimized out>, xe=<optimized out>, passive=<optimized out>) at kernel/qdnd_x11.cpp:1185
#27 0x00007f9fa404e85d in QApplication::x11ClientMessage (this=<optimized out>, w=0x9d2820, event=<optimized out>, passive_only=<optimized out>) at kernel/qapplication_x11.cpp:3240
#28 0x00007f9fa404cbeb in QApplication::x11ProcessEvent (this=0x7fff1a9352a0, event=0x7fff1a934e90) at kernel/qapplication_x11.cpp:3871
#29 0x00007f9fa40760d2 in x11EventSourceDispatch (s=0x760d40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007f9f9fa07d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f9f9fa080a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f9f9fa08164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f9fa36023bf in QEventDispatcherGlib::processEvents (this=0x738b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#34 0x00007f9fa4075d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f9fa35d1c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f9fa35d1ed7 in QEventLoop::exec (this=0x7fff1a935230, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007f9fa35d6f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#38 0x00000000004079c6 in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:85

Reported using DrKonqi
Comment 1 Albert Astals Cid 2012-08-08 19:08:57 UTC
Git commit 06ec381288bf9d560013a4ff0ef19197f370565e by Albert Astals Cid.
Committed on 08/08/2012 at 21:05.
Pushed by aacid into branch 'KDE/4.9'.

Fix crash when a drag contains the url format but doesn't contain any url data for that format

KUrl::List::canDecode( ev->mimeData() ) doesn't mean KUrl::List::fromMimeData( ev->mimeData() ) will not be empty
FIXED-IN: 4.9.1

M  +5    -1    ui/pageview.cpp
M  +5    -1    ui/thumbnaillist.cpp

http://commits.kde.org/okular/06ec381288bf9d560013a4ff0ef19197f370565e
Comment 2 Albert Astals Cid 2012-08-08 19:10:22 UTC
Git commit a0339dec66f6e4ad387bdb37c64706d6f1d61cbe by Albert Astals Cid.
Committed on 08/08/2012 at 21:05.
Pushed by aacid into branch 'master'.

Fix crash when a drag contains the url format but doesn't contain any url data for that format

KUrl::List::canDecode( ev->mimeData() ) doesn't mean KUrl::List::fromMimeData( ev->mimeData() ) will not be empty
FIXED-IN: 4.9.1

M  +5    -1    ui/pageview.cpp
M  +5    -1    ui/thumbnaillist.cpp

http://commits.kde.org/okular/a0339dec66f6e4ad387bdb37c64706d6f1d61cbe