Bug 379261 - Crash on attempting camera import
Summary: Crash on attempting camera import
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-IconView (show other bugs)
Version: 4.14.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-04-26 16:14 UTC by pbhj
Modified: 2018-08-17 21:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pbhj 2017-04-26 16:14:19 UTC
Application: digikam (4.14.0)
KDE Platform Version: 4.14.22
Qt Version: 4.8.7
Operating System: Linux 4.4.0-72-generic x86_64
Distribution: Ubuntu 16.04.2 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Using the devices pop-up to initiate import of photos from my Honor 5C phone. The import window came up but when I scrolled the whole application crashed and the reporting assistant stepped in.

-- Backtrace:
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 0x7f778f550b80 (LWP 2385))]

Thread 6 (Thread 0x7f76fa7fc700 (LWP 2599)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7788a7a3a6 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x16165ed0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1628a428, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x0000000000877a04 in Digikam::CameraController::run (this=0x162afd30) at /build/digikam-lwP2T0/digikam-4.14.0/core/utilities/importui/backend/cameracontroller.cpp:401
#4  0x00007f7788a79e3c in QThreadPrivate::start (arg=0x162afd30) at thread/qthread_unix.cpp:352
#5  0x00007f77849466ba in start_thread (arg=0x7f76fa7fc700) at pthread_create.c:333
#6  0x00007f7787f0d82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f775cacc700 (LWP 2392)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7788a7a3a6 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x41b08b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x41b0600, mutex=mutex@entry=0x41b05f8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f778d0e3352 in Digikam::ParkingThread::run (this=0x41b05e0) at /build/digikam-lwP2T0/digikam-4.14.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f7788a79e3c in QThreadPrivate::start (arg=0x41b05e0) at thread/qthread_unix.cpp:352
#5  0x00007f77849466ba in start_thread (arg=0x7f775cacc700) at pthread_create.c:333
#6  0x00007f7787f0d82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f775d2cd700 (LWP 2389)):
#0  0x00007f7787f01b5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f778006938c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f778006949c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7788bba23e in QEventDispatcherGlib::processEvents (this=0x7f77500008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f7788b8813f in QEventLoop::processEvents (this=this@entry=0x7f775d2cca00, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f7788b884a5 in QEventLoop::exec (this=this@entry=0x7f775d2cca00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f7788a77549 in QThread::exec (this=this@entry=0x2f28060) at thread/qthread.cpp:538
#7  0x00007f7788b681d3 in QInotifyFileSystemWatcherEngine::run (this=0x2f28060) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f7788a79e3c in QThreadPrivate::start (arg=0x2f28060) at thread/qthread_unix.cpp:352
#9  0x00007f77849466ba in start_thread (arg=0x7f775d2cd700) at pthread_create.c:333
#10 0x00007f7787f0d82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f775dace700 (LWP 2388)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7788a7a3a6 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x2e64c50) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x2e64b90, mutex=mutex@entry=0x2e64b88, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000006047f4 in Digikam::ScanController::run (this=0x2dd00d0) at /build/digikam-lwP2T0/digikam-4.14.0/core/app/database/scancontroller.cpp:725
#4  0x00007f7788a79e3c in QThreadPrivate::start (arg=0x2dd00d0) at thread/qthread_unix.cpp:352
#5  0x00007f77849466ba in start_thread (arg=0x7f775dace700) at pthread_create.c:333
#6  0x00007f7787f0d82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f7762a3e700 (LWP 2387)):
#0  0x00007f7787f01b5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f776d28664c in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f77849466ba in start_thread (arg=0x7f7762a3e700) at pthread_create.c:333
#3  0x00007f7787f0d82d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f778f550b80 (LWP 2385)):
[KCrash Handler]
#6  Digikam::ImportUI::getCameraThumbsCtrl (this=0x0) at /build/digikam-lwP2T0/digikam-4.14.0/core/utilities/importui/main/importui.cpp:848
#7  0x0000000000705f09 in Digikam::MapViewModelHelper::slotThumbnailLoaded (this=0x16574f00, info=...) at /build/digikam-lwP2T0/digikam-4.14.0/core/app/views/mapwidgetview.cpp:566
#8  0x00000000007061e9 in Digikam::MapViewModelHelper::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /build/digikam-lwP2T0/digikam-4.14.0/obj-x86_64-linux-gnu/core/app/mapwidgetview.moc:122
#9  0x00007f7788b9df80 in QMetaObject::activate (sender=sender@entry=0x15f17ce0, m=m@entry=0x96cd00 <Digikam::CameraThumbsCtrl::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd30fa21d0) at kernel/qobject.cpp:3567
#10 0x000000000087d8de in Digikam::CameraThumbsCtrl::signalThumbInfoReady (_t1=..., this=0x15f17ce0) at /build/digikam-lwP2T0/digikam-4.14.0/obj-x86_64-linux-gnu/core/utilities/importui/camerathumbsctrl.moc:115
#11 Digikam::CameraThumbsCtrl::slotThumbInfo (this=0x15f17ce0, file=..., info=..., thumb=...) at /build/digikam-lwP2T0/digikam-4.14.0/core/utilities/importui/backend/camerathumbsctrl.cpp:166
#12 0x000000000087eed0 in Digikam::CameraThumbsCtrl::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/digikam-lwP2T0/digikam-4.14.0/obj-x86_64-linux-gnu/core/utilities/importui/camerathumbsctrl.moc:62
#13 0x00007f7788ba3d21 in QObject::event (this=0x15f17ce0, e=<optimized out>) at kernel/qobject.cpp:1222
#14 0x00007f77895a3fdc in QApplicationPrivate::notify_helper (this=this@entry=0x2d1ac20, receiver=receiver@entry=0x15f17ce0, e=e@entry=0x7f76d45631b0) at kernel/qapplication.cpp:4570
#15 0x00007f77895aaf16 in QApplication::notify (this=this@entry=0x7ffd30fa2cc0, receiver=receiver@entry=0x15f17ce0, e=e@entry=0x7f76d45631b0) at kernel/qapplication.cpp:4356
#16 0x00007f778a30d6ba in KApplication::notify (this=0x7ffd30fa2cc0, receiver=0x15f17ce0, event=0x7f76d45631b0) at /build/kde4libs-jMGaqq/kde4libs-4.14.22/kdeui/kernel/kapplication.cpp:311
#17 0x00007f7788b898bd in QCoreApplication::notifyInternal (this=0x7ffd30fa2cc0, receiver=receiver@entry=0x15f17ce0, event=event@entry=0x7f76d45631b0) at kernel/qcoreapplication.cpp:955
#18 0x00007f7788b8d376 in QCoreApplication::sendEvent (event=0x7f76d45631b0, receiver=0x15f17ce0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x2c53f60) at kernel/qcoreapplication.cpp:1579
#20 0x00007f7788b8d653 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#21 0x00007f7788bba0ae in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#22 postEventSourceDispatch (s=0x2d2e030) at kernel/qeventdispatcher_glib.cpp:300
#23 0x00007f7780069197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f77800693f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f778006949c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f7788bba21e in QEventDispatcherGlib::processEvents (this=0x2d1bf90, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#27 0x00007f7789651616 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f7788b8813f in QEventLoop::processEvents (this=this@entry=0x7ffd30fa2820, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007f7788b884a5 in QEventLoop::exec (this=this@entry=0x7ffd30fa2820, flags=...) at kernel/qeventloop.cpp:204
#30 0x00007f7788b8e469 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#31 0x00007f77895a222c in QApplication::exec () at kernel/qapplication.cpp:3828
#32 0x000000000049649e in main (argc=<optimized out>, argv=<optimized out>) at /build/digikam-lwP2T0/digikam-4.14.0/core/app/main/main.cpp:230

Reported using DrKonqi
Comment 1 caulier.gilles 2017-04-26 16:28:55 UTC
This problem is solved since a very long time. Try to use last 5.5.0 release with AppImage Linux bundle or the current pre-release 5.6.0 available here :

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

Gilles Caulier
Comment 2 caulier.gilles 2017-06-22 21:42:22 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-23 18:26:57 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 4 caulier.gilles 2018-08-17 21:17:49 UTC
This crash cannot be reproduced with 6.0.0 release. I close this file now.


Gilles Caulier