Bug 379335 - Digikam crashes when deleting images in the download window [patch]
Summary: Digikam crashes when deleting images in the download window [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 5.2.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-04-29 05:36 UTC by András Manţia
Modified: 2018-08-17 21:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments
currentlyDeleting.patch (629 bytes, patch)
2017-04-29 17:26 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description András Manţia 2017-04-29 05:36:05 UTC
Application: digikam (5.2.0)
 (Compiled from sources)
Qt Version: 5.6.1
Frameworks Version: 5.26.0
Operating System: Linux 4.4.57-18.3-default x86_64
Distribution: "openSUSE Leap 42.2"

-- Information about the crash:
This is a requent crash I see with a Samsung Android phone using MTP: I select a set of images, use delete and after deleting a few images Digikam crashes.

The crash can be reproduced every time.

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

Thread 17 (Thread 0x7f1e2e7fc700 (LWP 11948)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f7840a65b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007f1f7b067124 in Digikam::VideoThumbnailerJob::run() () at /usr/lib64/libdigikamcore.so.5.2.0
#3  0x00007f1f784099e9 in  () at /usr/lib64/libQt5Core.so.5
#4  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 16 (Thread 0x7f1e26ffd700 (LWP 11927)):
#0  0x00007f1f77af849d in poll () at /lib64/libc.so.6
#1  0x00007f1f5d4d4848 in  () at /usr/lib64/libusb-1.0.so.0
#2  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#3  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 15 (Thread 0x7f1e267fc700 (LWP 11919)):
#0  0x00007f1f77af849d in poll () at /lib64/libc.so.6
#1  0x00007f1f5d4ce348 in  () at /usr/lib64/libusb-1.0.so.0
#2  0x00007f1f5d4cf1c3 in libusb_handle_events_timeout_completed () at /usr/lib64/libusb-1.0.so.0
#3  0x00007f1f5d4cf2c0 in libusb_handle_events_completed () at /usr/lib64/libusb-1.0.so.0
#4  0x00007f1f5d4cfb61 in  () at /usr/lib64/libusb-1.0.so.0
#5  0x00007f1f5d4cfc39 in  () at /usr/lib64/libusb-1.0.so.0
#6  0x00007f1f5d4cffc4 in libusb_bulk_transfer () at /usr/lib64/libusb-1.0.so.0
#7  0x00007f1ec837408e in  () at /usr/lib64/libgphoto2_port/0.12.0/usb1.so
#8  0x00007f1f76eefc66 in gp_port_read () at /usr/lib64/libgphoto2_port.so.12
#9  0x00007f1ec8103f18 in  () at /usr/lib64/libgphoto2/2.5.10/ptp2.so
#10 0x00007f1ec8104738 in  () at /usr/lib64/libgphoto2/2.5.10/ptp2.so
#11 0x00007f1ec80df81b in  () at /usr/lib64/libgphoto2/2.5.10/ptp2.so
#12 0x00007f1ec80df9d8 in  () at /usr/lib64/libgphoto2/2.5.10/ptp2.so
#13 0x00007f1ec80e2361 in  () at /usr/lib64/libgphoto2/2.5.10/ptp2.so
#14 0x00007f1ec8100d05 in  () at /usr/lib64/libgphoto2/2.5.10/ptp2.so
#15 0x00007f1f7710cae8 in  () at /usr/lib64/libgphoto2.so.6
#16 0x00007f1f7710ec27 in gp_filesystem_get_file () at /usr/lib64/libgphoto2.so.6
#17 0x00007f1f77105889 in gp_camera_file_get () at /usr/lib64/libgphoto2.so.6
#18 0x00007f1f7bf57e58 in  () at /usr/lib64/libdigikamgui.so.5.2.0
#19 0x00007f1f7bf40a15 in Digikam::CameraController::executeCommand(Digikam::CameraCommand*) () at /usr/lib64/libdigikamgui.so.5.2.0
#20 0x00007f1f7bf42615 in Digikam::CameraController::run() () at /usr/lib64/libdigikamgui.so.5.2.0
#21 0x00007f1f784099e9 in  () at /usr/lib64/libQt5Core.so.5
#22 0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#23 0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 14 (Thread 0x7f1eedffb700 (LWP 11867)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f6cc956e3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f1f6cfb7341 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 13 (Thread 0x7f1eee7fc700 (LWP 11866)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f6cc956e3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f1f6cfb7341 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7f1eeeffd700 (LWP 11865)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f6cc956e3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f1f6cfb7341 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7f1eef7fe700 (LWP 11864)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f6cc956e3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f1f6cfb7341 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7f1eeffff700 (LWP 11863)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f6cc956e3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f1f6cfb7341 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7f1ef4f86700 (LWP 11862)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f6cc956e3 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f1f6cfb7341 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7f1ef57a6700 (LWP 11861)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f6cc9470d in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f1f6cfb7341 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f1ef6650700 (LWP 11860)):
#0  0x00007f1f77af849d in poll () at /lib64/libc.so.6
#1  0x00007f1f6ed7b314 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f1f6ed7b42c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f1f7861c32b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f1f785c9fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f1f78404f1a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f1f784099e9 in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f1f37531700 (LWP 11857)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f6cf88873 in  () at /usr/lib64/libQt5WebKit.so.5
#2  0x00007f1f6cf88899 in  () at /usr/lib64/libQt5WebKit.so.5
#3  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f1f4d816700 (LWP 11854)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f7840a65b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007f1f7b07a3c9 in  () at /usr/lib64/libdigikamcore.so.5.2.0
#3  0x00007f1f784099e9 in  () at /usr/lib64/libQt5Core.so.5
#4  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f1f4e017700 (LWP 11852)):
#0  0x00007f1f742080bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f1f7840a65b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007f1f7bc870d0 in Digikam::ScanController::run() () at /usr/lib64/libdigikamgui.so.5.2.0
#3  0x00007f1f784099e9 in  () at /usr/lib64/libQt5Core.so.5
#4  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f1f4e818700 (LWP 11851)):
#0  0x00007f1f77af849d in poll () at /lib64/libc.so.6
#1  0x00007f1f6ed7b314 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f1f6ed7b42c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f1f7861c32b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f1f785c9fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f1f78404f1a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f1f7442f1d5 in  () at /usr/lib64/libQt5DBus.so.5
#7  0x00007f1f784099e9 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f1f50636700 (LWP 11850)):
#0  0x00007f1f77af849d in poll () at /lib64/libc.so.6
#1  0x00007f1f692d33e2 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f1f692d4fcf in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f1f52520839 in  () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f1f784099e9 in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007f1f74203744 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f1f77b00d3d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f1f7c7139c0 (LWP 11849)):
[KCrash Handler]
#6  0x00007f1f77a4b8d7 in raise () at /lib64/libc.so.6
#7  0x00007f1f77a4ccaa in abort () at /lib64/libc.so.6
#8  0x00007f1f783f537e in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007f1f783f0b61 in  () at /usr/lib64/libQt5Core.so.5
#10 0x00007f1f7bc68904 in  () at /usr/lib64/libdigikamgui.so.5.2.0
#11 0x00007f1f7c08735f in  () at /usr/lib64/libdigikamgui.so.5.2.0
#12 0x00007f1f7c0a1e46 in  () at /usr/lib64/libdigikamgui.so.5.2.0
#13 0x00007f1f7c0b1653 in Digikam::ImportUI::slotUpdateDownloadName() () at /usr/lib64/libdigikamgui.so.5.2.0
#14 0x00007f1f7c0b336f in Digikam::ImportUI::slotNewSelection(bool) () at /usr/lib64/libdigikamgui.so.5.2.0
#15 0x00007f1f7c0bc476 in  () at /usr/lib64/libdigikamgui.so.5.2.0
#16 0x00007f1f785f5bb1 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#17 0x00007f1f7c0b94f2 in  () at /usr/lib64/libdigikamgui.so.5.2.0
#18 0x00007f1f7c0a7071 in  () at /usr/lib64/libdigikamgui.so.5.2.0
#19 0x00007f1f7c0ba4dd in  () at /usr/lib64/libdigikamgui.so.5.2.0
#20 0x00007f1f785f5bb1 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#21 0x00007f1f78603112 in QTimer::timerEvent(QTimerEvent*) () at /usr/lib64/libQt5Core.so.5
#22 0x00007f1f785f6f34 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#23 0x00007f1f792d2e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#24 0x00007f1f792d749a in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#25 0x00007f1f785cbfc5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#26 0x00007f1f7861bc7e in QTimerInfoList::activateTimers() () at /usr/lib64/libQt5Core.so.5
#27 0x00007f1f7861c041 in  () at /usr/lib64/libQt5Core.so.5
#28 0x00007f1f6ed7b134 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#29 0x00007f1f6ed7b388 in  () at /usr/lib64/libglib-2.0.so.0
#30 0x00007f1f6ed7b42c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#31 0x00007f1f7861c30c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#32 0x00007f1f785c9fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#33 0x00007f1f785d1ec6 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#34 0x0000000000408946 in  ()
#35 0x00007f1f77a376e5 in __libc_start_main () at /lib64/libc.so.6
#36 0x00000000004092b9 in _start ()

Reported using DrKonqi
Comment 1 Maik Qualmann 2017-04-29 17:26:45 UTC
Created attachment 105275 [details]
currentlyDeleting.patch

You are using compiled sources. Can you test this patch? The problem here is not reproducible, but the patch could be the solution.

Maik
Comment 2 caulier.gilles 2017-06-22 21:43:01 UTC
digiKam 5.6.0 is now released and available as bundle for Linux, MacOS and Windows.

https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/

Can you check if problem still exists with this version ?

Thanks in advance

Gilles Caulier
Comment 3 caulier.gilles 2017-07-08 09:53:56 UTC
Any feedback about the report ? The problem still reproducible ?

Gilles Caulier
Comment 4 caulier.gilles 2017-07-23 18:27:56 UTC
New digiKam 5.7.0 are built with current implementation as pre-release bundles:

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Problem still reproducible ?
Comment 5 caulier.gilles 2018-08-17 21:22:53 UTC
No feedback. Sound like a binary compatibility issue with native package.

This crash is not reproducible with 6.0.0

I close this file
Comment 6 caulier.gilles 2018-08-17 21:24:55 UTC
Oups,

Maik,

I don't see your patch attached. ou you fell it need to apply to git/master (or perhaps you have already apply it) ?

Gilles
Comment 7 caulier.gilles 2018-08-17 21:27:39 UTC
Can you reproduce the dysfunction using digiKam 6.0.0 pre-release bundle available here :

https://files.kde.org/digikam/

Gilles Caulier
Comment 8 Maik Qualmann 2018-08-17 21:42:25 UTC
No, the patch was not applied because I could never reproduce the problem.

Maik
Comment 9 caulier.gilles 2018-08-17 21:49:10 UTC
Ok, so i close this file as well...