Bug 331127 - Attempting to open a recent file while another file is open causes Okular to crash
Summary: Attempting to open a recent file while another file is open causes Okular to ...
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.18.60
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-02-14 01:46 UTC by Alon Amster
Modified: 2014-02-16 02:13 UTC (History)
1 user (show)

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 Alon Amster 2014-02-14 01:46:00 UTC
Application: okular (0.18.60)
KDE Platform Version: 4.11.5
Qt Version: 4.8.4
Operating System: Linux 3.11.0-15-generic x86_64
Distribution: Ubuntu 13.10

-- Information about the crash:
- What I was doing when the application crashed:
Viewing a PDF file (gazing helplessly at the Intel Software Development Manual, to be precise).
- Custom settings of the application:
Nothing special. I recently compiled a git clone of Okular and Ubuntu just updated some KDE libs.
Qt and KDE were not compiled from source.

I should also mention that not all expected functionality was available (so perhaps the compiled version was installed as an alt-version or something).

-- 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 0x7f574b62b7c0 (LWP 9953))]

Thread 4 (Thread 0x7f5736b38700 (LWP 9967)):
#0  0x00007f5748642f7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f57452396a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5745239b0a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f573e590b66 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f574525e0f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5745711f6e in start_thread (arg=0x7f5736b38700) at pthread_create.c:311
#6  0x00007f574864f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f5735a1c700 (LWP 9968)):
#0  0x00007f5748642f7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f57452396a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f57452397ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f57452397f9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f574525e0f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5745711f6e in start_thread (arg=0x7f5735a1c700) at pthread_create.c:311
#6  0x00007f574864f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f573521b700 (LWP 9974)):
#0  __GI___pthread_getspecific (key=3) at pthread_getspecific.c:56
#1  0x00007f574525e590 in g_thread_self () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f57452387dc in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5745239565 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f57452397ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5749043a76 in QEventDispatcherGlib::processEvents (this=0x7f572c001390, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f57490155ef in QEventLoop::processEvents (this=this@entry=0x7f573521ad70, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f57490158e5 in QEventLoop::exec (this=this@entry=0x7f573521ad70, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f5748f1488f in QThread::exec (this=this@entry=0xec7c20) at thread/qthread.cpp:542
#9  0x00007f5748ff6d13 in QInotifyFileSystemWatcherEngine::run (this=0xec7c20) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007f5748f16f2f in QThreadPrivate::start (arg=0xec7c20) at thread/qthread_unix.cpp:338
#11 0x00007f5745711f6e in start_thread (arg=0x7f573521b700) at pthread_create.c:311
#12 0x00007f574864f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f574b62b7c0 (LWP 9953)):
[KCrash Handler]
#5  0x0000000000000000 in ?? ()
#6  0x000000000040d15f in Shell::openUrl (this=0x9ecd20, url=...) at /home/alon/development/okular/shell/shell.cpp:187
#7  0x000000000040e409 in Shell::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /home/alon/development/okular/shell/shell.moc:90
#8  0x00007f574902aa58 in QMetaObject::activate (sender=0xdf4510, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff0f754690) at kernel/qobject.cpp:3539
#9  0x00007f574a643042 in KRecentFilesAction::urlSelected(KUrl const&) () from /usr/lib/libkdeui.so.5
#10 0x00007f574a643108 in ?? () from /usr/lib/libkdeui.so.5
#11 0x00007f574902aa58 in QMetaObject::activate (sender=0xdf4510, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff0f754870) at kernel/qobject.cpp:3539
#12 0x00007f574a64686f in KSelectAction::triggered(QAction*) () from /usr/lib/libkdeui.so.5
#13 0x00007f574a646c40 in KSelectAction::actionTriggered(QAction*) () from /usr/lib/libkdeui.so.5
#14 0x00007f574902aa58 in QMetaObject::activate (sender=sender@entry=0xdf4180, m=m@entry=0x7f574a4b0f00 <QActionGroup::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff0f754a00) at kernel/qobject.cpp:3539
#15 0x00007f5749a0497f in QActionGroup::triggered (this=this@entry=0xdf4180, _t1=_t1@entry=0xeaf290) at .moc/release-shared/moc_qactiongroup.cpp:160
#16 0x00007f5749a049ff in QActionGroupPrivate::_q_actionTriggered (this=<optimized out>) at kernel/qactiongroup.cpp:93
#17 0x00007f574902aa58 in QMetaObject::activate (sender=sender@entry=0xeaf290, m=m@entry=0x7f574a4b0de0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff0f754b50) at kernel/qobject.cpp:3539
#18 0x00007f5749a01a32 in QAction::triggered (this=this@entry=0xeaf290, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#19 0x00007f5749a03403 in QAction::activate (this=0xeaf290, event=<optimized out>) at kernel/qaction.cpp:1257
#20 0x00007f574902edce in QObject::event (this=0xeaf290, e=<optimized out>) at kernel/qobject.cpp:1194
#21 0x00007f5749a034c2 in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1187
#22 0x00007f5749a07dfc in QApplicationPrivate::notify_helper (this=this@entry=0x76c510, receiver=receiver@entry=0xeaf290, e=e@entry=0x12b7cd0) at kernel/qapplication.cpp:4567
#23 0x00007f5749a0e470 in QApplication::notify (this=0x7fff0f7553b0, receiver=0xeaf290, e=0x12b7cd0) at kernel/qapplication.cpp:4353
#24 0x00007f574a711a6a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#25 0x00007f57490168bd in QCoreApplication::notifyInternal (this=0x7fff0f7553b0, receiver=receiver@entry=0xeaf290, event=event@entry=0x12b7cd0) at kernel/qcoreapplication.cpp:946
#26 0x00007f5749019e1f in sendEvent (event=0x12b7cd0, receiver=0xeaf290) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x72f670) at kernel/qcoreapplication.cpp:1570
#28 0x00007f574901a2c3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#29 0x00007f5749044073 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#30 postEventSourceDispatch (s=0x76d1b0) at kernel/qeventdispatcher_glib.cpp:279
#31 0x00007f57452393b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f5745239708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f57452397ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f5749043a55 in QEventDispatcherGlib::processEvents (this=0x730b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#35 0x00007f5749aa99d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f57490155ef in QEventLoop::processEvents (this=this@entry=0x7fff0f7551f0, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007f57490158e5 in QEventLoop::exec (this=this@entry=0x7fff0f7551f0, flags=...) at kernel/qeventloop.cpp:204
#38 0x00007f574901ae5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#39 0x00007f5749a0634c in QApplication::exec () at kernel/qapplication.cpp:3828
#40 0x0000000000408d86 in main (argc=<optimized out>, argv=<optimized out>) at /home/alon/development/okular/shell/main.cpp:100

The reporter indicates this bug may be a duplicate of or related to bug 330090.

Possible duplicates by query: bug 330090.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2014-02-14 19:06:57 UTC
So you compiled your own okular? Is it the first time? Did you use the instrucions on the okular webpage?
Comment 2 Alon Amster 2014-02-16 02:13:59 UTC
I compiled the way I am used to (cmake && make && sudo make inatall).
It seems that configuring it with the correct KDE installation path, using:

cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..

resolved the issue and now everything seems to be working fine.

Thank you for your comment.