Bug 307972 - Crash on all PTP imports attemps.
Summary: Crash on all PTP imports attemps.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 2.5.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-06 10:52 UTC by LeLapin
Modified: 2023-05-05 05:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LeLapin 2012-10-06 10:52:14 UTC
Application: digikam (2.5.0)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-23-lowlatency x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed: Trying to connect to an EOS Canon camera.

- Custom settings of the application: Standard, as installed from the most recent official distrib.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
[Current thread is 1 (Thread 0x7f27b2dfaa00 (LWP 17487))]

Thread 7 (Thread 0x7f278d61a700 (LWP 17489)):
#0  0x00007f27ac286303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f27a57f5036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f27a57f549a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f279b5c6406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f27a58169e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f27a7ba7e9a in start_thread (arg=0x7f278d61a700) at pthread_create.c:308
#6  0x00007f27ac291cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f27856f5700 (LWP 17490)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f27ad0684db in wait (time=18446744073709551615, this=0x118f590) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x118f488, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005ca1d0 in Digikam::ScanController::run (this=0x118f220) at /build/buildd/digikam-2.5.0/core/digikam/database/scancontroller.cpp:647
#4  0x00007f27ad067fcb in QThreadPrivate::start (arg=0x118f220) at thread/qthread_unix.cpp:298
#5  0x00007f27a7ba7e9a in start_thread (arg=0x7f27856f5700) at pthread_create.c:308
#6  0x00007f27ac291cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f2784ef4700 (LWP 17491)):
#0  QThreadData::current () at thread/qthread_unix.cpp:201
#1  0x00007f27ad195b89 in postEventSourcePrepare (s=0x7f2774001f00, timeout=0x0) at kernel/qeventdispatcher_glib.cpp:256
#2  0x00007f27a57f4b43 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f27a57f4fd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f27a57f5164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f27ad196426 in QEventDispatcherGlib::processEvents (this=0x7f27740008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f27ad165c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f27ad165ed7 in QEventLoop::exec (this=0x7f2784ef3b50, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f27ad064fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f27ad1459ff in QInotifyFileSystemWatcherEngine::run (this=0x1191e30) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f27ad067fcb in QThreadPrivate::start (arg=0x1191e30) at thread/qthread_unix.cpp:298
#11 0x00007f27a7ba7e9a in start_thread (arg=0x7f2784ef4700) at pthread_create.c:308
#12 0x00007f27ac291cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f2755f31700 (LWP 17523)):
#0  0x00007f27972969b4 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#1  0x00007f27972ea548 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#2  0x00007f27972ee7ca in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#3  0x00007f27972ee9c9 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#4  0x00007f27972eeb08 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#5  0x00007f27844ed6ce in QSQLiteResult::prepare (this=0x7f2740099430, query=...) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:330
#6  0x00007f27b2a2d3e0 in QSqlResult::savePrepare (this=0x7f2740099430, query=...) at kernel/qsqlresult.cpp:600
#7  0x00007f27b2a206bb in QSqlQuery::prepare (this=0x7f2755f302c8, query=...) at kernel/qsqlquery.cpp:930
#8  0x00007f27b0417082 in Digikam::SqlQuery::prepare (this=0x7f2755f302c0, query=...) at /build/buildd/digikam-2.5.0/core/libs/database/sqlquery.cpp:52
#9  0x00007f27b0400ffc in Digikam::DatabaseCoreBackend::prepareQuery (this=0x14c8210, sql=...) at /build/buildd/digikam-2.5.0/core/libs/database/databasecorebackend.cpp:1459
#10 0x00007f27b0402b51 in Digikam::DatabaseCoreBackend::execQuery (this=0x14c8210, sql=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam-2.5.0/core/libs/database/databasecorebackend.cpp:1021
#11 0x00007f27b0403295 in Digikam::DatabaseCoreBackend::execSql (this=0x14c8210, sql=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=..., values=0x0, lastInsertId=0x7f2755f303c0) at /build/buildd/digikam-2.5.0/core/libs/database/databasecorebackend.cpp:921
#12 0x00007f27b040ea43 in Digikam::ThumbnailDB::insertThumbnail (this=0x1443d50, info=..., lastInsertId=0x7f2755f304a0) at /build/buildd/digikam-2.5.0/core/libs/database/thumbnaildb.cpp:262
#13 0x00007f27b0445a58 in Digikam::ThumbnailCreator::storeInDatabase (this=<optimized out>, info=..., image=...) at /build/buildd/digikam-2.5.0/core/libs/threadimageio/thumbnailcreator.cpp:753
#14 0x00007f27b044b199 in Digikam::ThumbnailCreator::load (this=0x133c990, path=..., rect=..., pregenerate=true) at /build/buildd/digikam-2.5.0/core/libs/threadimageio/thumbnailcreator.cpp:264
#15 0x00007f27b044c11d in Digikam::ThumbnailCreator::pregenerate (this=<optimized out>, path=...) at /build/buildd/digikam-2.5.0/core/libs/threadimageio/thumbnailcreator.cpp:180
#16 0x00007f27b045a8e0 in Digikam::ThumbnailLoadingTask::execute (this=0x4210530) at /build/buildd/digikam-2.5.0/core/libs/threadimageio/thumbnailtask.cpp:79
#17 0x00007f27b042a68e in Digikam::LoadSaveThread::run (this=0x140dbf0) at /build/buildd/digikam-2.5.0/core/libs/threadimageio/loadsavethread.cpp:118
#18 0x00007f27b046fece in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x1287640) at /build/buildd/digikam-2.5.0/core/libs/threads/dynamicthread.cpp:328
#19 0x00007f27ad05b4f2 in QThreadPoolThread::run (this=0x3bc1700) at concurrent/qthreadpool.cpp:107
#20 0x00007f27ad067fcb in QThreadPrivate::start (arg=0x3bc1700) at thread/qthread_unix.cpp:298
#21 0x00007f27a7ba7e9a in start_thread (arg=0x7f2755f31700) at pthread_create.c:308
#22 0x00007f27ac291cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#23 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f2755730700 (LWP 17530)):
[KCrash Handler]
#6  0x00000000007582b8 in Digikam::GPCamera::getItemInfoInternal (this=0x42d1510, folder=..., itemName=..., info=..., useMetadata=true) at /build/buildd/digikam-2.5.0/core/utilities/cameragui/devices/gpcamera.cpp:840
#7  0x000000000075f915 in Digikam::GPCamera::getItemsInfoList (this=0x42d1510, folder=..., useMetadata=true, items=...) at /build/buildd/digikam-2.5.0/core/utilities/cameragui/devices/gpcamera.cpp:793
#8  0x0000000000783c00 in Digikam::CameraController::executeCommand (this=0x42c2a50, cmd=0x15d22e0) at /build/buildd/digikam-2.5.0/core/utilities/cameragui/controller/cameracontroller.cpp:489
#9  0x00000000007872a6 in Digikam::CameraController::run (this=0x42c2a50) at /build/buildd/digikam-2.5.0/core/utilities/cameragui/controller/cameracontroller.cpp:396
#10 0x00007f27ad067fcb in QThreadPrivate::start (arg=0x42c2a50) at thread/qthread_unix.cpp:298
#11 0x00007f27a7ba7e9a in start_thread (arg=0x7f2755730700) at pthread_create.c:308
#12 0x00007f27ac291cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f277bfff700 (LWP 17533)):
#0  0x00007f27a852a3d6 in ?? () from /usr/lib/x86_64-linux-gnu/libgomp.so.1
#1  0x00007f27a8528efe in ?? () from /usr/lib/x86_64-linux-gnu/libgomp.so.1
#2  0x00007f27a7ba7e9a in start_thread (arg=0x7f277bfff700) at pthread_create.c:308
#3  0x00007f27ac291cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f27b2dfaa00 (LWP 17487)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f27ad0684db in wait (time=18446744073709551615, this=0x14c7070) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x14a4938, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f27ad05ac7e in QThreadPoolPrivate::waitForDone (this=0x14a48b0, msecs=-1) at concurrent/qthreadpool.cpp:298
#4  0x00007f27ad05c6a4 in QThreadPool::~QThreadPool (this=0x13c7220, __in_chrg=<optimized out>) at concurrent/qthreadpool.cpp:440
#5  0x00007f27ad05c6e9 in QThreadPool::~QThreadPool (this=0x13c7220, __in_chrg=<optimized out>) at concurrent/qthreadpool.cpp:442
#6  0x00007f27ad179935 in QObjectPrivate::deleteChildren (this=0x138f3d0) at kernel/qobject.cpp:1908
#7  0x00007f27ad17fb9c in QObject::~QObject (this=0x138f3b0, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#8  0x00007f27b046cea7 in ~ThreadManagerCreator (this=0x138f3b0, __in_chrg=<optimized out>) at /build/buildd/digikam-2.5.0/core/libs/threads/threadmanager.cpp:236
#9  destroy () at /build/buildd/digikam-2.5.0/core/libs/threads/threadmanager.cpp:241
#10 0x00007f27ac1d9901 in __run_exit_handlers (status=1, listp=0x7f27ac556688, run_list_atexit=true) at exit.c:78
#11 0x00007f27ac1d9985 in __GI_exit (status=<optimized out>) at exit.c:100
#12 0x00007f27a1ca9624 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#13 0x00007f27ae8986b8 in KApplication::xioErrhandler (this=0x7fff91e8a1a0, dpy=0xf7c7f0) at ../../kdeui/kernel/kapplication.cpp:419
#14 0x00007f27aa7a141e in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007f27aa79f38b in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#16 0x00007f27aa794e69 in XQueryPointer () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#17 0x00007f27adbe90bf in QCursor::pos () at kernel/qcursor_x11.cpp:162
#18 0x00007f27adb61c15 in QApplicationPrivate::sendSyntheticEnterLeave (this=<optimized out>, widget=0x41a9c30) at kernel/qapplication.cpp:3234
#19 0x00007f27adbb3b12 in QWidget::setVisible (this=0x41a9c30, visible=<optimized out>) at kernel/qwidget.cpp:7767
#20 0x00007f27adb95389 in show (this=0x41a9c30) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:494
#21 QStackedLayout::setCurrentIndex (this=0x42c2360, index=1) at kernel/qstackedlayout.cpp:311
#22 0x00007f27b0497b7d in Digikam::StatusProgressBar::progressBarMode (this=0x41b09a0, mode=<optimized out>, text=...) at /build/buildd/digikam-2.5.0/core/libs/widgets/common/statusprogressbar.cpp:162
#23 0x0000000000773e2f in Digikam::CameraUI::slotBusy (this=0x3dd3cc0, val=<optimized out>) at /build/buildd/digikam-2.5.0/core/utilities/cameragui/main/cameraui.cpp:931
#24 0x00007f27ad180446 in QObject::event (this=0x3dd3cc0, e=<optimized out>) at kernel/qobject.cpp:1195
#25 0x00007f27adbb0b7b in QWidget::event (this=0x3dd3cc0, event=0x7f273400fd20) at kernel/qwidget.cpp:8821
#26 0x00007f27adf8ac4b in QMainWindow::event (this=0x3dd3cc0, event=0x7f273400fd20) at widgets/qmainwindow.cpp:1478
#27 0x00007f27ae996378 in KXmlGuiWindow::event (this=0x3dd3cc0, ev=0x7f273400fd20) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#28 0x00007f27adb60894 in notify_helper (e=0x7f273400fd20, receiver=0x3dd3cc0, this=0xf666c0) at kernel/qapplication.cpp:4559
#29 QApplicationPrivate::notify_helper (this=0xf666c0, receiver=0x3dd3cc0, e=0x7f273400fd20) at kernel/qapplication.cpp:4531
#30 0x00007f27adb65713 in QApplication::notify (this=0x7fff91e8a1a0, receiver=0x3dd3cc0, e=0x7f273400fd20) at kernel/qapplication.cpp:4420
#31 0x00007f27ae89a3f6 in KApplication::notify (this=0x7fff91e8a1a0, receiver=0x3dd3cc0, event=0x7f273400fd20) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x00007f27ad166e9c in QCoreApplication::notifyInternal (this=0x7fff91e8a1a0, receiver=0x3dd3cc0, event=0x7f273400fd20) at kernel/qcoreapplication.cpp:876
#33 0x00007f27ad16ac6a in sendEvent (event=0x7f273400fd20, receiver=0x3dd3cc0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#34 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xf034d0) at kernel/qcoreapplication.cpp:1500
#35 0x00007f27ad195f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#36 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#37 0x00007f27a57f4d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f27a57f50a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f27a57f5164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f27ad1963bf in QEventDispatcherGlib::processEvents (this=0xf04db0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#41 0x00007f27adc08d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007f27ad165c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f27ad165ed7 in QEventLoop::exec (this=0x7fff91e8a020, flags=...) at kernel/qeventloop.cpp:204
#44 0x00007f27ad16af67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#45 0x000000000048bc5d in main (argc=5, argv=<optimized out>) at /build/buildd/digikam-2.5.0/core/digikam/main/main.cpp:232

This bug may be a duplicate of or related to bug 293492.

Possible duplicates by query: bug 301838, bug 300838, bug 295778, bug 295751, bug 295062.

Reported using DrKonqi
Comment 1 caulier.gilles 2012-10-06 15:26:34 UTC

*** This bug has been marked as a duplicate of bug 293492 ***
Comment 2 caulier.gilles 2023-05-05 05:28:52 UTC
Fixed with #293492