Bug 367847

Summary: digiKam crashed when we right click on albums area
Product: [Applications] digikam Reporter: soee <kontakt>
Component: Albums-TreeViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, sitter
Priority: NOR    
Version: 5.1.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.2.0
Sentry Crash Report:

Description soee 2016-08-26 11:26:36 UTC
Digikam crashes as soon as i right click on Albums area:

Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc723d20b80 (LWP 18611))]

Thread 14 (Thread 0x7fc6157fa700 (LWP 18668)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc74be59863 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fc74c17a051 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fc75222f6fa in start_thread (arg=0x7fc6157fa700) at pthread_create.c:333
#4  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 13 (Thread 0x7fc615ffb700 (LWP 18667)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc74be59863 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fc74c17a051 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fc75222f6fa in start_thread (arg=0x7fc615ffb700) at pthread_create.c:333
#4  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 12 (Thread 0x7fc6167fc700 (LWP 18666)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc74be59863 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fc74c17a051 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fc75222f6fa in start_thread (arg=0x7fc6167fc700) at pthread_create.c:333
#4  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7fc616ffd700 (LWP 18665)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc74be59863 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fc74c17a051 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fc75222f6fa in start_thread (arg=0x7fc616ffd700) at pthread_create.c:333
#4  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7fc6177fe700 (LWP 18664)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc74be59863 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fc74c17a051 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fc75222f6fa in start_thread (arg=0x7fc6177fe700) at pthread_create.c:333
#4  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7fc617fff700 (LWP 18663)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc74be59863 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fc74c17a051 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fc75222f6fa in start_thread (arg=0x7fc617fff700) at pthread_create.c:333
#4  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7fc654ff9700 (LWP 18662)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc74be58834 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fc74c17a051 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fc75222f6fa in start_thread (arg=0x7fc654ff9700) at pthread_create.c:333
#4  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7fc6557fa700 (LWP 18661)):
#0  0x00007fc7552c7e8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fc74cc5239c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc74cc524ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc7561d723b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc756181cea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc755fa6fb4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc755fabb98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc75222f6fa in start_thread (arg=0x7fc6557fa700) at pthread_create.c:333
#8  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7fc709db1700 (LWP 18618)):
#0  0x00007fc7552988dd in nanosleep () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fc75529882a in __sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#2  0x00007fc74c14a185 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fc74c14a469 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#4  0x00007fc75222f6fa in start_thread (arg=0x7fc709db1700) at pthread_create.c:333
#5  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7fc7190dc700 (LWP 18617)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc755faca4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc757d2f0cb in ?? () from /usr/lib/digikam/libdigikamcore.so.5.1.0
#3  0x00007fc755fabb98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc75222f6fa in start_thread (arg=0x7fc7190dc700) at pthread_create.c:333
#5  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7fc7198dd700 (LWP 18615)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc755faca4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc758888bc2 in Digikam::ScanController::run() () from /usr/lib/digikam/libdigikamgui.so.5.1.0
#3  0x00007fc755fabb98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc75222f6fa in start_thread (arg=0x7fc7198dd700) at pthread_create.c:333
#5  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fc71a0de700 (LWP 18614)):
#0  0x00007fc74cc96ac9 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fc74cc51807 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc74cc522cb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc74cc524ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc7561d723b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc756181cea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc755fa6fb4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc7592257a5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007fc755fabb98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fc75222f6fa in start_thread (arg=0x7fc71a0de700) at pthread_create.c:333
#10 0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fc723d17700 (LWP 18612)):
#0  0x00007fc7552c7e8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fc72ff5864c in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007fc75222f6fa in start_thread (arg=0x7fc723d17700) at pthread_create.c:333
#3  0x00007fc7552d3b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fc723d20b80 (LWP 18611)):
[KCrash Handler]
#6  0x00007fc758ad1d12 in Digikam::Album::isTrashAlbum() const () from /usr/lib/digikam/libdigikamgui.so.5.1.0
#7  0x00007fc758ac37b7 in ?? () from /usr/lib/digikam/libdigikamgui.so.5.1.0
#8  0x00007fc756ab6398 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007fc756b9c76e in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007fc756cc1573 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007fc756d0084c in QTreeView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007fc758ab51f8 in ?? () from /usr/lib/digikam/libdigikamgui.so.5.1.0
#13 0x00007fc756183a62 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007fc756a6f875 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fc756a789e3 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007fc756183cf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fc756ad01e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fc756ad2863 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fc756a6f89c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fc756a77296 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fc756183cf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007fc7564d50a0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007fc7564d6fa5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#24 0x00007fc7564b4e6b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#25 0x00007fc723196710 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#26 0x00007fc74cc521a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fc74cc52400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fc74cc524ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fc7561d721f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007fc756181cea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007fc75618a2fc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x0000000000405eeb in ?? ()
#33 0x00007fc7551ed830 in __libc_start_main (main=0x404b00, argc=3, argv=0x7ffd4653f068, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd4653f058) at ../csu/libc-start.c:291
#34 0x0000000000406839 in _start ()


Reproducible: Always

Steps to Reproduce:
1. Open Digikam
2. Right click mouse on Albums area

Actual Results:  
Digikam crashes.

Expected Results:  
Digikam should work :)
Comment 1 Harald Sitter 2016-08-26 11:28:14 UTC
May or may not be a by-product of bug #367848
Comment 2 caulier.gilles 2016-08-26 11:29:17 UTC
Already fixed in current implementation from git/master (next 5.2.0)

Gilles Caulier
Comment 3 caulier.gilles 2016-08-26 11:30:32 UTC
See bug #366630