Bug 340933 - digiKam crash while tagging photos (Baloo database)
Summary: digiKam crash while tagging photos (Baloo database)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Baloo (show other bugs)
Version: 4.5.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-11-13 18:09 UTC by Heikki
Modified: 2016-04-22 17:03 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments
New crash information added by DrKonqi (12.71 KB, text/plain)
2016-04-22 17:03 UTC, pierre_metzner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heikki 2014-11-13 18:09:50 UTC
Application: digikam (4.4.0)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.17.1-1.g5c4d099-default x86_64
Distribution: "openSUSE 20141107 (Harlequin) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed: I was scanning trough a rather large collection of photos and added a tag to some of them. After quite a long time of working digikam crashed. This has happened twice today.

The crash can be reproduced sometimes.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4ec949a880 (LWP 4994))]

Thread 10 (Thread 0x7f4ea7c2e700 (LWP 4995)):
#0  0x00007f4ec1f829bd in recvmsg () at /lib64/libc.so.6
#1  0x00007f4ec9517eb9 in udev_monitor_receive_device () at /usr/lib64/libudev.so.1
#2  0x00007f4ea8bec2eb in  () at /usr/lib64/libusb-1.0.so.0
#3  0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7f4ea0cba700 (LWP 4996)):
#0  0x00007f4ebfed585f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f4ec2d59c86 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQtCore.so.4
#2  0x0000000000602f2e in  ()
#3  0x00007f4ec2d5979f in  () at /usr/lib64/libQtCore.so.4
#4  0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7f4e9bfff700 (LWP 4997)):
#0  0x00007f4ec1f794ad in poll () at /lib64/libc.so.6
#1  0x00007f4eb9fdbbe4 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f4eb9fdbcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f4ec2e880de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#4  0x00007f4ec2e59e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#5  0x00007f4ec2e5a165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#6  0x00007f4ec2d570bf in QThread::exec() () at /usr/lib64/libQtCore.so.4
#7  0x00007f4ec2e3b783 in  () at /usr/lib64/libQtCore.so.4
#8  0x00007f4ec2d5979f in  () at /usr/lib64/libQtCore.so.4
#9  0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f4e9b7fe700 (LWP 5000)):
#0  0x00007f4ebfed585f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f4ec2d59c86 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQtCore.so.4
#2  0x00007f4ec6b48c0a in  () at /usr/lib64/libdigikamcore.so.4.4.0
#3  0x00007f4ec2d5979f in  () at /usr/lib64/libQtCore.so.4
#4  0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f4e912fa700 (LWP 6675)):
#0  0x00007f4ec1f794ad in poll () at /lib64/libc.so.6
#1  0x00007f4eb9fdbbe4 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f4eb9fdbcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f4ec2e880de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#4  0x00007f4ec2e59e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#5  0x00007f4ec2e5a165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#6  0x00007f4ec6b482d3 in  () at /usr/lib64/libdigikamcore.so.4.4.0
#7  0x00007f4ec2d4d6ae in  () at /usr/lib64/libQtCore.so.4
#8  0x00007f4ec2d5979f in  () at /usr/lib64/libQtCore.so.4
#9  0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f4e932fe700 (LWP 6676)):
#0  0x00007f4ec1f794ad in poll () at /lib64/libc.so.6
#1  0x00007f4eb9fdbbe4 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f4eb9fdbcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f4ec2e880de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#4  0x00007f4ec2e59e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#5  0x00007f4ec2e5a165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#6  0x00007f4ec6b482d3 in  () at /usr/lib64/libdigikamcore.so.4.4.0
#7  0x00007f4ec2d4d6ae in  () at /usr/lib64/libQtCore.so.4
#8  0x00007f4ec2d5979f in  () at /usr/lib64/libQtCore.so.4
#9  0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f4e92afd700 (LWP 6678)):
#0  0x00007f4eb9fd8fc2 in  () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f4eb9fdb22b in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f4eb9fdbb03 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f4eb9fdbcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f4ec2e880de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#5  0x00007f4ec2e59e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#6  0x00007f4ec2e5a165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#7  0x00007f4ec6b482d3 in  () at /usr/lib64/libdigikamcore.so.4.4.0
#8  0x00007f4ec2d4d6ae in  () at /usr/lib64/libQtCore.so.4
#9  0x00007f4ec2d5979f in  () at /usr/lib64/libQtCore.so.4
#10 0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#11 0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f4e90af9700 (LWP 6756)):
#0  0x00007f4eb9fd901e in  () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f4eb9fdb22b in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f4eb9fdbb03 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f4eb9fdbcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f4ec2e880de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#5  0x00007f4ec2e59e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#6  0x00007f4ec2e5a165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#7  0x00007f4ec6b482d3 in  () at /usr/lib64/libdigikamcore.so.4.4.0
#8  0x00007f4ec2d4d6ae in  () at /usr/lib64/libQtCore.so.4
#9  0x00007f4ec2d5979f in  () at /usr/lib64/libQtCore.so.4
#10 0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#11 0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f4e77fff700 (LWP 6764)):
[KCrash Handler]
#5  0x00007f4eb2c25f58 in Xapian::Database::get_document(unsigned int) const () at /usr/lib64/libxapian.so.22
#6  0x00007f4eb27b18a4 in Baloo::XapianDatabase::document(unsigned int) () at /usr/lib64/libbalooxapian.so.4
#7  0x00007f4ebd8532ed in Baloo::FileModifyJob::doStart() () at /usr/lib64/libbaloofiles.so.4
#8  0x00007f4ec2e7359e in QObject::event(QEvent*) () at /usr/lib64/libQtCore.so.4
#9  0x00007f4ec386976c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#10 0x00007f4ec386fcad in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#11 0x00007f4ec4581bda in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#12 0x00007f4ec2e5b2ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#13 0x00007f4ec2e5e57d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQtCore.so.4
#14 0x00007f4ec2e888fe in  () at /usr/lib64/libQtCore.so.4
#15 0x00007f4eb9fdba04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#16 0x00007f4eb9fdbc48 in  () at /usr/lib64/libglib-2.0.so.0
#17 0x00007f4eb9fdbcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#18 0x00007f4ec2e880be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#19 0x00007f4ec2e59e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#20 0x00007f4ec2e5a165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#21 0x00007f4ec6b482d3 in  () at /usr/lib64/libdigikamcore.so.4.4.0
#22 0x00007f4ec2d4d6ae in  () at /usr/lib64/libQtCore.so.4
#23 0x00007f4ec2d5979f in  () at /usr/lib64/libQtCore.so.4
#24 0x00007f4ebfed13a4 in start_thread () at /lib64/libpthread.so.0
#25 0x00007f4ec1f81a4d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f4ec949a880 (LWP 4994)):
#0  0x00007f4ebfed585f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f4ec2d59c86 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQtCore.so.4
#2  0x00007f4ec6b48ed4 in Digikam::WorkerObject::wait() () at /usr/lib64/libdigikamcore.so.4.4.0
#3  0x0000000000649413 in  ()
#4  0x0000000000649445 in  ()
#5  0x00000000006494a7 in  ()
#6  0x00007f4ec1ed4949 in __run_exit_handlers () at /lib64/libc.so.6
#7  0x00007f4ec1ed4995 in  () at /lib64/libc.so.6
#8  0x00007f4ec38cffc8 in  () at /usr/lib64/libQtGui.so.4
#9  0x00007f4ec4580790 in KApplication::xioErrhandler(_XDisplay*) () at /usr/lib64/libkdeui.so.5
#10 0x00007f4ec046f3be in _XIOError () at /usr/lib64/libX11.so.6
#11 0x00007f4ec046cdbd in _XEventsQueued () at /usr/lib64/libX11.so.6
#12 0x00007f4ec045edeb in XEventsQueued () at /usr/lib64/libX11.so.6
#13 0x00007f4ec39060ec in  () at /usr/lib64/libQtGui.so.4
#14 0x00007f4eb9fdb661 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#15 0x00007f4eb9fdbb7b in  () at /usr/lib64/libglib-2.0.so.0
#16 0x00007f4eb9fdbcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#17 0x00007f4ec2e880de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#18 0x00007f4ec3906676 in  () at /usr/lib64/libQtGui.so.4
#19 0x00007f4ec2e59e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#20 0x00007f4ec2e5a165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#21 0x00007f4ec2e5f5b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#22 0x00000000004a0710 in  ()
#23 0x00007f4ec1ebeb45 in __libc_start_main () at /lib64/libc.so.6
#24 0x00000000004a2d5f in _start ()

Reported using DrKonqi
Comment 1 caulier.gilles 2014-11-13 18:12:07 UTC
It crash in Baloo.

Veaceslav, this entry must be moved to Baloo bugzilla section ?

Gilles
Comment 2 Heikki 2014-11-14 18:12:31 UTC
After doing the following I have experienced no crashes while tagging the photos for more than two hours. Much longer than yesterday. 

Some days ago the digikam crashed while starting. I got from the web some indication that the reason may be do to videos I have in the album. Just as a guess I changed priority of my packman repository to 101 and the priority of KDE-Extra to 100. ( I have understood that it is not adviced.)

Surprisingly the digikam started to work except the crashes I experienced yesterday.

Today I changed all the priorities to 99 and installed the latest updates of tumbleweed with the command zypper dup. There has been no crashes for quite a long time after that.


(Yesterday I started my system from suspend to RAM state, today I rebooted the system after the update. I have got a feeling that sometimes something does not work properly after suspend, but that is just a feeling based on no evidence or facts. Nonsense I guess.)


I will report if I experience a crash.
Comment 3 bunu 2015-01-04 21:10:25 UTC
*** Bug 342489 has been marked as a duplicate of this bug. ***
Comment 4 caulier.gilles 2015-01-12 09:55:16 UTC
*** Bug 342760 has been marked as a duplicate of this bug. ***
Comment 5 caulier.gilles 2015-01-12 09:58:02 UTC
The crash appear in sqlite database managed by Baloo. See trace from bug #342760. 

Problem is located in Baloo file management implementation, not digiKam

Gilles Caulier
Comment 6 caulier.gilles 2015-01-20 08:23:33 UTC
*** Bug 343066 has been marked as a duplicate of this bug. ***
Comment 7 Veaceslav Munteanu 2015-01-20 15:00:17 UTC
When implementing baloo syncronization, I also added some switches in digiKam options. Just switch baloo off in metadata tab, until the problem is fixed.
Comment 8 Vishesh Handa 2015-01-20 16:22:48 UTC
Fixed Baloo in Qt5.

Baloo-Qt4 is no longer getting any more updates.
Comment 9 caulier.gilles 2015-01-20 16:38:54 UTC
Thanks Vishesh,

I report this info to future digiKam for KF5 under development.

Gilles Caulier
Comment 10 caulier.gilles 2015-05-19 04:45:06 UTC
*** Bug 347915 has been marked as a duplicate of this bug. ***
Comment 11 pierre_metzner 2016-04-22 17:03:05 UTC
Created attachment 98520 [details]
New crash information added by DrKonqi

digikam (4.14.0) on KDE Platform 4.14.16 using Qt 4.8.7

- What I was doing when the application crashed:
I add a Tag to a Photho, the digikam crashes

-- Backtrace (Reduced):
#6  0x00007fbf84c84435 in Xapian::Database::get_document (this=0x0, did=did@entry=252) at ../api/omdatabase.cc:440
#7  0x00007fbf84a3a6b4 in Baloo::XapianDatabase::document (this=0x7fbf1c07da10, id=252) at ../../../src/xapian/xapiandatabase.cpp:159
#8  0x00007fbf8e8beef7 in Baloo::FileModifyJob::doStart (this=0x7fbf1c020110) at ../../../../src/file/lib/filemodifyjob.cpp:144
#9  0x00007fbf92633db1 in QObject::event (this=0x7fbf1c020110, e=<optimized out>) at kernel/qobject.cpp:1222
#10 0x00007fbf93029fdc in QApplicationPrivate::notify_helper (this=this@entry=0x29a9db0, receiver=receiver@entry=0x7fbf1c020110, e=e@entry=0x7fbf1c0219a0) at kernel/qapplication.cpp:4570