Bug 335370 - unecpected crash when deleting a tag
Summary: unecpected crash when deleting a tag
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 4.0.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-05-26 14:06 UTC by antoni
Modified: 2021-04-04 07:46 UTC (History)
1 user (show)

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


Attachments
2014_05_26 digikam gdb 36201 (89.23 KB, text/plain)
2014-05-26 17:45 UTC, antoni
Details
digikam valgrind (68.59 KB, text/plain)
2014-05-26 17:45 UTC, antoni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antoni 2014-05-26 14:06:28 UTC
Application: digikam (4.0.0)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.11.10-11-desktop x86_64
Distribution: "openSUSE 13.1 (Bottle) (x86_64)"

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

I was eliminating a non used tag.

Screen was blocked. CPU #1 was at 100% CPU 2 al 10%.

After some minutes appears this error : Unexpected crash.

I am using a network collection through cfis and vwmare to windows folder. 100.000 pictures.

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

Thread 8 (Thread 0x7f97e8d85700 (LWP 19917)):
#0  0x00007f98023bb0af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9805c0bb66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00000000005ed29e in Digikam::ScanController::run (this=0x1578520) at /usr/src/debug/digikam-4.0.0/core/digikam/database/scancontroller.cpp:725
#3  0x00007f9805c0b68f in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f98023b70db in start_thread () from /lib64/libpthread.so.0
#5  0x00007f980446790d in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f97e3fff700 (LWP 19918)):
#0  0x00007f980445eb3d in poll () from /lib64/libc.so.6
#1  0x00007f97fcb2b604 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f97fcb2b70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f9805d37d76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007f9805d09d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f9805d0a005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f9805c08fef in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007f9805ceb513 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f9805c0b68f in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f98023b70db in start_thread () from /lib64/libpthread.so.0
#10 0x00007f980446790d in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f97e37fe700 (LWP 19922)):
#0  0x00007f98023bb0af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9805c0bb66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f9808a9aaba in Digikam::ParkingThread::run (this=0x1657b40) at /usr/src/debug/digikam-4.0.0/core/libs/threads/threadmanager.cpp:119
#3  0x00007f9805c0b68f in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f98023b70db in start_thread () from /lib64/libpthread.so.0
#5  0x00007f980446790d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f97ca10d700 (LWP 21845)):
#0  0x00007f980445eb3d in poll () from /lib64/libc.so.6
#1  0x00007f97fcb2b604 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f97fcb2b70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f9805d37d76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007f9805d09d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f9805d0a005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f9808a9a183 in Digikam::WorkerObjectRunnable::run (this=0x5116aa0) at /usr/src/debug/digikam-4.0.0/core/libs/threads/threadmanager.cpp:196
#7  0x00007f9805bff13e in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f9805c0b68f in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f98023b70db in start_thread () from /lib64/libpthread.so.0
#10 0x00007f980446790d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f97cfcdc700 (LWP 21846)):
#0  0x00007f98023b93e9 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f97fcb6b291 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f97fcb2b08c in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f97fcb2b59b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f97fcb2b70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f9805d37d76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f9805d09d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x00007f9805d0a005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#8  0x00007f9808a9a183 in Digikam::WorkerObjectRunnable::run (this=0x7f97a0129a60) at /usr/src/debug/digikam-4.0.0/core/libs/threads/threadmanager.cpp:196
#9  0x00007f9805bff13e in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007f9805c0b68f in ?? () from /usr/lib64/libQtCore.so.4
#11 0x00007f98023b70db in start_thread () from /lib64/libpthread.so.0
#12 0x00007f980446790d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f97ce132700 (LWP 22065)):
#0  0x00007f980445eb3d in poll () from /lib64/libc.so.6
#1  0x00007f97fcb2b604 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f97fcb2b70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f9805d37d76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007f9805d09d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007f9805d0a005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f9808a9a183 in Digikam::WorkerObjectRunnable::run (this=0x7f97a06c18c0) at /usr/src/debug/digikam-4.0.0/core/libs/threads/threadmanager.cpp:196
#7  0x00007f9805bff13e in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007f9805c0b68f in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f98023b70db in start_thread () from /lib64/libpthread.so.0
#10 0x00007f980446790d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f97cb9d2700 (LWP 22066)):
#0  0x00007f980445a99d in read () from /lib64/libc.so.6
#1  0x00007f97fcb6a5c0 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f97fcb2b12c in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f97fcb2b59b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f97fcb2b70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f9805d37d76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007f9805d09d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x00007f9805d0a005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#8  0x00007f9808a9a183 in Digikam::WorkerObjectRunnable::run (this=0x7f97a06c1c60) at /usr/src/debug/digikam-4.0.0/core/libs/threads/threadmanager.cpp:196
#9  0x00007f9805bff13e in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007f9805c0b68f in ?? () from /usr/lib64/libQtCore.so.4
#11 0x00007f98023b70db in start_thread () from /lib64/libpthread.so.0
#12 0x00007f980446790d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f980b76e900 (LWP 19916)):
[KCrash Handler]
#5  Digikam::AlbumManager::removePAlbum (this=this@entry=0x1497db0, album=0x45e8cd0) at /usr/src/debug/digikam-4.0.0/core/digikam/album/albummanager.cpp:2858
#6  0x00000000005c3960 in Digikam::AlbumManager::scanPAlbums (this=0x1497db0) at /usr/src/debug/digikam-4.0.0/core/digikam/album/albummanager.cpp:1261
#7  0x00000000005c9bc5 in Digikam::AlbumManager::qt_static_metacall (_o=0x1497db0, _c=2424948, _id=36506712, _a=0x22d0b70) at /usr/src/debug/digikam-4.0.0/build/core/digikam/albummanager.moc:170
#8  0x00007f9805d1ed68 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#9  0x00007f9805d22f31 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#10 0x00007f9804e2b8ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#11 0x00007f9804e31e70 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#12 0x00007f980677418a in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#13 0x00007f9805d0b0ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#14 0x00007f9805d3a83c in ?? () from /usr/lib64/libQtCore.so.4
#15 0x00007f9805d37b21 in ?? () from /usr/lib64/libQtCore.so.4
#16 0x00007f97fcb2b316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#17 0x00007f97fcb2b668 in ?? () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f97fcb2b70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f9805d37d55 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#20 0x00007f9804ec8936 in ?? () from /usr/lib64/libQtGui.so.4
#21 0x00007f9805d09d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#22 0x00007f9805d0a005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#23 0x00007f98052cdcdc in QDialog::exec() () from /usr/lib64/libQtGui.so.4
#24 0x00007f98066e7822 in KMessageBox::createKMessageBox(KDialog*, QIcon const&, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&, QMessageBox::Icon) () from /usr/lib64/libkdeui.so.5
#25 0x00007f98066e7a61 in KMessageBox::createKMessageBox(KDialog*, QMessageBox::Icon, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&) () from /usr/lib64/libkdeui.so.5
#26 0x00007f98066eb2fa in KMessageBox::warningContinueCancelListWId(unsigned long, QString const&, QStringList const&, QString const&, KGuiItem const&, KGuiItem const&, QString const&, QFlags<KMessageBox::Option>) () from /usr/lib64/libkdeui.so.5
#27 0x00007f98066eb4f0 in KMessageBox::warningContinueCancelList(QWidget*, QString const&, QStringList const&, QString const&, KGuiItem const&, KGuiItem const&, QString const&, QFlags<KMessageBox::Option>) () from /usr/lib64/libkdeui.so.5
#28 0x00007f98066eb548 in KMessageBox::warningContinueCancel(QWidget*, QString const&, QString const&, KGuiItem const&, KGuiItem const&, QString const&, QFlags<KMessageBox::Option>) () from /usr/lib64/libkdeui.so.5
#29 0x000000000064eac9 in Digikam::TagModificationHelper::slotTagDelete (this=0x2cdb530, t=<optimized out>) at /usr/src/debug/digikam-4.0.0/core/digikam/tags/tagmodificationhelper.cpp:274
#30 0x00000000006510c5 in Digikam::TagModificationHelper::qt_static_metacall (_o=0x2cdb530, _c=2424948, _id=36506712, _a=0x7fff9c59ecd0) at /usr/src/debug/digikam-4.0.0/build/core/digikam/tagmodificationhelper.moc:94
#31 0x00007f9805d1ed68 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#32 0x00007f9804e25752 in QAction::triggered(bool) () from /usr/lib64/libQtGui.so.4
#33 0x00007f9804e27123 in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQtGui.so.4
#34 0x00007f98052500e9 in ?? () from /usr/lib64/libQtGui.so.4
#35 0x00007f9805254619 in ?? () from /usr/lib64/libQtGui.so.4
#36 0x00007f980682a735 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libkdeui.so.5
#37 0x00007f9804e7adfe in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#38 0x00007f98052583eb in QMenu::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#39 0x00007f9804e2b8ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#40 0x00007f9804e31fad in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#41 0x00007f980677418a in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#42 0x00007f9805d0b0ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#43 0x00007f9804e31763 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#44 0x00007f9804ea32ac in ?? () from /usr/lib64/libQtGui.so.4
#45 0x00007f9804ea19ec in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#46 0x00007f9804ec8882 in ?? () from /usr/lib64/libQtGui.so.4
#47 0x00007f97fcb2b316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#48 0x00007f97fcb2b668 in ?? () from /usr/lib64/libglib-2.0.so.0
#49 0x00007f97fcb2b70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#50 0x00007f9805d37d55 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#51 0x00007f9804ec8936 in ?? () from /usr/lib64/libQtGui.so.4
#52 0x00007f9805d09d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#53 0x00007f9805d0a005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#54 0x00007f98052571e7 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib64/libQtGui.so.4
#55 0x000000000066e1f8 in Digikam::ContextMenuHelper::exec (this=this@entry=0x7fff9c59fc70, pos=..., at=at@entry=0x0) at /usr/src/debug/digikam-4.0.0/core/digikam/utils/contextmenuhelper.cpp:1135
#56 0x000000000064217d in Digikam::TagFolderView::contextMenuEvent (this=0x2ccbd80, event=<optimized out>) at /usr/src/debug/digikam-4.0.0/core/digikam/tags/tagfolderview.cpp:333
#57 0x00007f9804e7b0c2 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#58 0x00007f9805217b6e in QFrame::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#59 0x00007f9805326df3 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#60 0x00007f9805365d10 in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#61 0x00007f9805d0b216 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#62 0x00007f9804e2b88c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#63 0x00007f9804e32bd0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#64 0x00007f980677418a in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#65 0x00007f9805d0b0ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#66 0x00007f9804ea2fd0 in ?? () from /usr/lib64/libQtGui.so.4
#67 0x00007f9804ea19ec in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#68 0x00007f9804ec8882 in ?? () from /usr/lib64/libQtGui.so.4
#69 0x00007f97fcb2b316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#70 0x00007f97fcb2b668 in ?? () from /usr/lib64/libglib-2.0.so.0
#71 0x00007f97fcb2b70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#72 0x00007f9805d37d55 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#73 0x00007f9804ec8936 in ?? () from /usr/lib64/libQtGui.so.4
#74 0x00007f9805d09d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#75 0x00007f9805d0a005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#76 0x00007f9805d0f13b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#77 0x000000000049dce0 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/digikam-4.0.0/core/digikam/main/main.cpp:236

Reported using DrKonqi
Comment 1 caulier.gilles 2014-05-26 14:25:35 UTC
It crash when it scan album.

I suspect another problem with SQlite package (already reported).

Can you try to get a better backtrace to run digiKam in GDB like explained here :

http://www.digikam.org/contrib

Gilles Caulier
Comment 2 antoni 2014-05-26 17:45:19 UTC
Created attachment 86834 [details]
2014_05_26 digikam gdb 36201

Guilles,

Thanks for your answer.

I have installed in a Vaio under windows 7, Vmware player an Opensuse
13.1 with the digikam 4.0.0.

Pictures are kept in a windows shared folder. After a lot of failures it
seems I succed mounting it in a permanent way through fstab.

There are around 102.000 pictures mainly jpgs but also kinds of Raws,
and tiff.

After instalations, i got 70 % of the times, the program was blocked,
mostly often without any foto available on the next run. So I tried to
close opensuse and windows and start again, but in this case take like
one hour to recognise the database and the pictures.

In the present problem reported i got a crash after mofifiyng tags.

I have run under gdb and I am attaching the file of the monitor.

Also I have run under valgrind without any failure, and the file is also
attached.

Ask me if yoiu need any other info or action.

Regards,

antoni olivella



El dl 26 de 05 de 2014 a les 14:25 +0000, en/na Gilles Caulier va
escriure:
> https://bugs.kde.org/show_bug.cgi?id=335370
> 
> Gilles Caulier <caulier.gilles@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |caulier.gilles@gmail.com
>           Component|general                     |Database
> 
> --- Comment #1 from Gilles Caulier <caulier.gilles@gmail.com> ---
> It crash when it scan album.
> 
> I suspect another problem with SQlite package (already reported).
> 
> Can you try to get a better backtrace to run digiKam in GDB like explained here
> :
> 
> http://www.digikam.org/contrib
> 
> Gilles Caulier
>
Comment 3 antoni 2014-05-26 17:45:23 UTC
Created attachment 86835 [details]
digikam valgrind
Comment 4 Jekyll Wu 2014-05-27 00:43:38 UTC

*** This bug has been marked as a duplicate of bug 329824 ***
Comment 5 caulier.gilles 2021-04-04 07:46:50 UTC
Fixed with #329824