Bug 175597 - crash when trying to access usb cam (autodetected)
Summary: crash when trying to access usb cam (autodetected)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 0.10.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-19 16:28 UTC by simon
Modified: 2017-08-16 06:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simon 2008-11-19 16:28:57 UTC
Version:           0.10.0-beta6 (using 4.1.80 (KDE 4.1.80 (KDE 4.2 Beta1)), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.26-tuxonice

backtrace see below, i tried to use the first menu item in the import menu

Anwendung: digiKam (digikam), Signal SIGSEGV
Using host libthread_db library "/lib/libthread_db.so.1".
0x00007f6758d617e1 in nanosleep () from /lib64/libc.so.6
[Current thread is 0 (LWP 8897)]

Thread 5 (Thread 0x420d4950 (LWP 8898)):
#0  0x00007f675ac046a6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f675ae71055 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x000000000061d3c8 in Digikam::ScanController::run ()
#3  0x00007f675ae70142 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f675ac00047 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f6758d8f28d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x428d5950 (LWP 8956)):
#0  0x00007f675ac046a6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f675ae71055 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f675e9c6a93 in Digikam::LoadSaveThread::run () from /usr/lib64/libdigikamcore.so.1
#3  0x00007f675ae70142 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f675ac00047 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f6758d8f28d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x41253950 (LWP 8957)):
#0  0x00007f675ac046a6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f675ae71055 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f675e9c6a93 in Digikam::LoadSaveThread::run () from /usr/lib64/libdigikamcore.so.1
#3  0x00007f675ae70142 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f675ac00047 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f6758d8f28d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x430d8950 (LWP 8973)):
#0  0x00007f675ac046a6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f675ae71055 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f675e9c6a93 in Digikam::LoadSaveThread::run () from /usr/lib64/libdigikamcore.so.1
#3  0x00007f675ae70142 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f675ac00047 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f6758d8f28d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f676020d700 (LWP 8897)):
[KCrash Handler]
#5  0x00007f675aeaf205 in QString::fromLatin1_helper () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f675aeaf29e in QString::fromLatin1 () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00000000004cbb51 in Digikam::GPCamera::findConnectedUsbCamera ()
#8  0x00000000005c4a39 in Digikam::CameraList::findConnectedCamera ()
#9  0x00000000005ce535 in Digikam::DigikamApp::slotOpenSolidCamera ()
#10 0x00000000005d64dc in Digikam::DigikamApp::qt_metacall ()
#11 0x00007f675af6226c in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#12 0x00007f675a2947af in QActionGroup::triggered () from /usr/lib64/qt4/libQtGui.so.4
#13 0x00007f675a294a47 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00007f675a295150 in QActionGroup::qt_metacall () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007f675af6226c in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#16 0x00007f675a28fc47 in QAction::triggered () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00007f675a290450 in QAction::activate () from /usr/lib64/qt4/libQtGui.so.4
#18 0x00007f675a6217dd in ?? () from /usr/lib64/qt4/libQtGui.so.4
#19 0x00007f675c36d371 in KMenu::mouseReleaseEvent () from /usr/lib64/libkdeui.so.5
#20 0x00007f675a2e29f5 in QWidget::event () from /usr/lib64/qt4/libQtGui.so.4
#21 0x00007f675a61f771 in QMenu::event () from /usr/lib64/qt4/libQtGui.so.4
#22 0x00007f675a2962be in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#23 0x00007f675a29b2cc in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#24 0x00007f675c2a407b in KApplication::notify () from /usr/lib64/libkdeui.so.5
#25 0x00007f675af4e2c8 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#26 0x00007f675a298551 in QApplicationPrivate::sendMouseEvent () from /usr/lib64/qt4/libQtGui.so.4
#27 0x00007f675a2f8603 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#28 0x00007f675a2f7273 in QApplication::x11ProcessEvent () from /usr/lib64/qt4/libQtGui.so.4
#29 0x00007f675a31af45 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#30 0x00007f675af4d645 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#31 0x00007f675af4d7a8 in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007f675af4f4ce in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
#33 0x000000000060e353 in main ()
Comment 1 Marcel Wiesweg 2008-11-19 17:27:16 UTC
*** Bug 175443 has been marked as a duplicate of this bug. ***
Comment 2 Marcel Wiesweg 2008-11-22 13:17:29 UTC
SVN commit 887541 by mwiesweg:

Fix possible crash when the access method fails and the pointer is accessed.
An invalid index was used, which leads to failure in certain hardware situations.
Please check if this fixes your crash.

CCBUG: 175597

 M  +17 -11    gpcamera.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=887541
Comment 3 caulier.gilles 2008-11-23 07:01:16 UTC
Simon, Daniel,

Can you confirm that crash diseapear with last Marcel fixes ?

Thanks in advance

Gilles Caulier
Comment 4 simon 2008-11-23 14:53:40 UTC
the crash disappeared, but it doesn't work. The status bar says "connecting to camera" but without success and the abort/retry dialog is shown after a while.

the only (possibly?) related log entry is

Nov 23 14:52:01 d-partment usb 1-4.2: usbfs: USBDEVFS_CONTROL failed cmd digikam rqt 33 rq 102 len 0 ret -7
Comment 5 Andi Clemens 2008-11-23 14:58:54 UTC
There a a lot of bugreports describing this problem (10 or so), GPhoto detects the camera but access is not possible.
Still I think this report can be closed since the actual problem is fixed.

Andi
Comment 6 simon 2008-11-23 15:17:08 UTC
it's quite unclear which access method is used in the individual menuentries(usb storage/gphoto/?) this might be improved

closing the crash-bug, thanks for fixing
Comment 7 Marcel Wiesweg 2008-12-02 17:15:25 UTC
*** Bug 165325 has been marked as a duplicate of this bug. ***