Bug 268773 - Crash while Adding Camera
Summary: Crash while Adding Camera
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 2.0.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-17 19:18 UTC by David Vincent-Jones
Modified: 2022-11-24 17:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.9.0


Attachments
New crash information added by DrKonqi (11.68 KB, text/plain)
2011-03-24 17:59 UTC, ing Frank H Duron msee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Vincent-Jones 2011-03-17 19:18:27 UTC
Application: digikam (2.0.0-beta4)
KDE Platform Version: 4.6.1 (4.6.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-27-generic-pae i686
Distribution: Ubuntu 10.10

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

Trying to add the first camera onto a freshly installed Digikam

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0xaf3a6890 (LWP 24280))]

Thread 5 (Thread 0xaefbbb70 (LWP 24281)):
#0  0xb76f3424 in __kernel_vsyscall ()
#1  0xb40e2df6 in poll () from /lib/libc.so.6
#2  0xb3103a1b in g_poll () from /lib/libglib-2.0.so.0
#3  0xb30f643c in ?? () from /lib/libglib-2.0.so.0
#4  0xb30f6ba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5  0xb1f939c4 in ?? () from /usr/lib/libgio-2.0.so.0
#6  0xb311d48f in ?? () from /lib/libglib-2.0.so.0
#7  0xb3320cc9 in start_thread () from /lib/libpthread.so.0
#8  0xb40f169e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xac194b70 (LWP 24282)):
#0  0xb76f3424 in __kernel_vsyscall ()
#1  0xb33254dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb40fed9d in pthread_cond_wait () from /lib/libc.so.6
#3  0xb44809c7 in wait (this=0x9e18fcc, mutex=0x9e18fc8, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x9e18fcc, mutex=0x9e18fc8, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x08238b99 in Digikam::ScanController::run (this=0x9e18d98) at /build/buildd/digikam2-2.0.0~beta4+git110307/digikam/database/scancontroller.cpp:602
#6  0xb447fdf9 in QThreadPrivate::start (arg=0x9e18d98) at thread/qthread_unix.cpp:266
#7  0xb3320cc9 in start_thread () from /lib/libpthread.so.0
#8  0xb40f169e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xab993b70 (LWP 24283)):
#0  0xb332340a in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0xb40fef66 in pthread_mutex_lock () from /lib/libc.so.6
#2  0xb30f4412 in g_main_context_release () from /lib/libglib-2.0.so.0
#3  0xb30f6473 in ?? () from /lib/libglib-2.0.so.0
#4  0xb30f6848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb45b059f in QEventDispatcherGlib::processEvents (this=0x9e1cb68, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0xb4580609 in QEventLoop::processEvents (this=0xab993110, flags=) at kernel/qeventloop.cpp:149
#7  0xb4580a8a in QEventLoop::exec (this=0xab993110, flags=...) at kernel/qeventloop.cpp:201
#8  0xb447cb7e in QThread::exec (this=0x9de19f0) at thread/qthread.cpp:490
#9  0xb455f35b in QInotifyFileSystemWatcherEngine::run (this=0x9de19f0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb447fdf9 in QThreadPrivate::start (arg=0x9de19f0) at thread/qthread_unix.cpp:266
#11 0xb3320cc9 in start_thread () from /lib/libpthread.so.0
#12 0xb40f169e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xab192b70 (LWP 24285)):
#0  0xb76f3424 in __kernel_vsyscall ()
#1  0xb33254dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb40fed9d in pthread_cond_wait () from /lib/libc.so.6
#3  0xb44809c7 in wait (this=0x9f9dfb8, mutex=0x9f9dfb4, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x9f9dfb8, mutex=0x9f9dfb4, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb6493eaa in Digikam::ParkingThread::run (this=0x9f9dfa8) at /build/buildd/digikam2-2.0.0~beta4+git110307/libs/threads/threadmanager.cpp:119
#6  0xb447fdf9 in QThreadPrivate::start (arg=0x9f9dfa8) at thread/qthread_unix.cpp:266
#7  0xb3320cc9 in start_thread () from /lib/libpthread.so.0
#8  0xb40f169e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xaf3a6890 (LWP 24280)):
[KCrash Handler]
#7  0xb4092eb3 in realloc () from /lib/libc.so.6
#8  0xb11c0a1d in register_platform (d=0xb239ca8, dispatch=0xb11eb380, name=0xb11e72db "usb") at control.c:2015
#9  0xb11da061 in usb_init (d=0xb239ca8) at control.c:383
#10 0xa306508b in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#11 0xb5f9eb93 in ?? () from /usr/lib/libgphoto2_port.so.0
#12 0xb3080c50 in ?? () from /usr/lib/libltdl.so.7
#13 0xb308084c in ?? () from /usr/lib/libltdl.so.7
#14 0xb30808ff in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#15 0xb5f9ea70 in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
#16 0x083f1c7e in Digikam::GPCamera::getSupportedPorts (plist=...) at /build/buildd/digikam2-2.0.0~beta4+git110307/utilities/cameragui/devices/gpcamera.cpp:1616
#17 0x08136738 in Digikam::CameraSelection::getSerialPortList (this=0xb17e728) at /build/buildd/digikam2-2.0.0~beta4+git110307/utilities/setup/cameraselection.cpp:406
#18 0x0813b642 in Digikam::CameraSelection::CameraSelection (this=0xb17e728, parent=0x0) at /build/buildd/digikam2-2.0.0~beta4+git110307/utilities/setup/cameraselection.cpp:285
#19 0x081320f5 in Digikam::SetupCamera::slotAddCamera (this=0xb18a490) at /build/buildd/digikam2-2.0.0~beta4+git110307/utilities/setup/setupcamera.cpp:307
#20 0x0813491b in Digikam::SetupCamera::qt_metacall (this=0xb18a490, _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0xbfea7f48) at /build/buildd/digikam2-2.0.0~beta4+git110307/obj-i686-linux-gnu/digikam/setupcamera.moc:87
#21 0xb45878ca in QMetaObject::metacall (object=0xb18a490, cl=187203472, idx=33, argv=0xbfea7f48) at kernel/qmetaobject.cpp:237
#22 0xb459a6ad in QMetaObject::activate (sender=0xb22be58, m=0x857f060, local_signal_index=2, argv=0x0) at kernel/qobject.cpp:3280
#23 0xb5251019 in QAbstractButton::clicked (this=0xb22be58, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#24 0xb4f10ff9 in QAbstractButtonPrivate::emitClicked (this=0xb22be70) at widgets/qabstractbutton.cpp:546
#25 0xb4f126f4 in QAbstractButtonPrivate::click (this=0xb22be70) at widgets/qabstractbutton.cpp:539
#26 0xb4f129ae in QAbstractButton::mouseReleaseEvent (this=0xb22be58, e=0xbfea8690) at widgets/qabstractbutton.cpp:1121
#27 0xb4b40e08 in QWidget::event (this=0xb22be58, event=0xbfea8690) at kernel/qwidget.cpp:8187
#28 0xb4f10e9e in QAbstractButton::event (this=0xb22be58, e=0x1) at widgets/qabstractbutton.cpp:1080
#29 0xb4fbec22 in QPushButton::event (this=0xb22be58, e=0xbfea8690) at widgets/qpushbutton.cpp:683
#30 0xb4ae2fdc in QApplicationPrivate::notify_helper (this=0x9ccb9b0, receiver=0xb22be58, e=0xbfea8690) at kernel/qapplication.cpp:4396
#31 0xb4ae9c2e in QApplication::notify (this=0xbfeaa240, receiver=0xb22be58, e=0xbfea8690) at kernel/qapplication.cpp:3959
#32 0xb568a7da in KApplication::notify (this=0xbfeaa240, receiver=0xb22be58, event=0xbfea8690) at ../../kdeui/kernel/kapplication.cpp:311
#33 0xb4581b3b in QCoreApplication::notifyInternal (this=0xbfeaa240, receiver=0xb22be58, event=0xbfea8690) at kernel/qcoreapplication.cpp:732
#34 0xb4ae8094 in sendEvent (receiver=0xb22be58, event=0xbfea8690, alienWidget=0xb22be58, nativeWidget=0xadfaae0, buttonDown=0xb547d3c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#35 QApplicationPrivate::sendMouseEvent (receiver=0xb22be58, event=0xbfea8690, alienWidget=0xb22be58, nativeWidget=0xadfaae0, buttonDown=0xb547d3c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3058
#36 0xb4b76d10 in QETWidget::translateMouseEvent (this=0xadfaae0, event=0xbfea8bac) at kernel/qapplication_x11.cpp:4403
#37 0xb4b76151 in QApplication::x11ProcessEvent (this=0xbfeaa240, event=0xbfea8bac) at kernel/qapplication_x11.cpp:3414
#38 0xb4ba536a in x11EventSourceDispatch (s=0x9ccec40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0xb30f2855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#40 0xb30f6668 in ?? () from /lib/libglib-2.0.so.0
#41 0xb30f6848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#42 0xb45b0565 in QEventDispatcherGlib::processEvents (this=0x9c830a8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#43 0xb4ba4be5 in QGuiEventDispatcherGlib::processEvents (this=0x9c830a8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#44 0xb4580609 in QEventLoop::processEvents (this=0xbfea8ea0, flags=) at kernel/qeventloop.cpp:149
#45 0xb4580a8a in QEventLoop::exec (this=0xbfea8ea0, flags=...) at kernel/qeventloop.cpp:201
#46 0xb504d873 in QDialog::exec (this=0xadfaae0) at dialogs/qdialog.cpp:552
#47 0x08108ad0 in Digikam::Setup::exec (parent=0x9ec7238, page=Digikam::Setup::LastPageUsed) at /build/buildd/digikam2-2.0.0~beta4+git110307/utilities/setup/setup.cpp:401
#48 0x081d3869 in Digikam::DigikamApp::setup (this=0x9ec7238) at /build/buildd/digikam2-2.0.0~beta4+git110307/digikam/main/digikamapp.cpp:2357
#49 0x081f37cd in slotSetup (this=0x9ec7238, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfea9068) at /build/buildd/digikam2-2.0.0~beta4+git110307/digikam/main/digikamapp.cpp:2352
#50 Digikam::DigikamApp::qt_metacall (this=0x9ec7238, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfea9068) at /build/buildd/digikam2-2.0.0~beta4+git110307/obj-i686-linux-gnu/digikam/digikamapp.moc:226
#51 0xb45878ca in QMetaObject::metacall (object=0x9ec7238, cl=187203472, idx=71, argv=0xbfea9068) at kernel/qmetaobject.cpp:237
#52 0xb459a6ad in QMetaObject::activate (sender=0xa470e30, m=0x857f180, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3280
#53 0xb4adaf99 in QAction::triggered (this=0xa470e30, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#54 0xb4adc8dc in QAction::activate (this=0xa470e30, event=QAction::Trigger) at kernel/qaction.cpp:1256
#55 0xb4fa87ef in QMenuPrivate::activateCausedStack (this=0xa4c72c0, causedStack=..., action=0xa470e30, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#56 0xb4faea4b in QMenuPrivate::activateAction (this=0xa4c72c0, action=0xa470e30, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#57 0xb4faf5e0 in QMenu::mouseReleaseEvent (this=0xa43f7c8, e=0xbfea9910) at widgets/qmenu.cpp:2301
#58 0xb577b965 in KMenu::mouseReleaseEvent (this=0xa43f7c8, e=0xbfea9910) at ../../kdeui/widgets/kmenu.cpp:458
#59 0xb4b40e08 in QWidget::event (this=0xa43f7c8, event=0xbfea9910) at kernel/qwidget.cpp:8187
#60 0xb4fb102f in QMenu::event (this=0xa43f7c8, e=0xbfea9910) at widgets/qmenu.cpp:2410
#61 0xb4ae2fdc in QApplicationPrivate::notify_helper (this=0x9ccb9b0, receiver=0xa43f7c8, e=0xbfea9910) at kernel/qapplication.cpp:4396
#62 0xb4ae9c2e in QApplication::notify (this=0xbfeaa240, receiver=0xa43f7c8, e=0xbfea9910) at kernel/qapplication.cpp:3959
#63 0xb568a7da in KApplication::notify (this=0xbfeaa240, receiver=0xa43f7c8, event=0xbfea9910) at ../../kdeui/kernel/kapplication.cpp:311
#64 0xb4581b3b in QCoreApplication::notifyInternal (this=0xbfeaa240, receiver=0xa43f7c8, event=0xbfea9910) at kernel/qcoreapplication.cpp:732
#65 0xb4ae8094 in sendEvent (receiver=0xa43f7c8, event=0xbfea9910, alienWidget=0x0, nativeWidget=0xa43f7c8, buttonDown=0xb547d3c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#66 QApplicationPrivate::sendMouseEvent (receiver=0xa43f7c8, event=0xbfea9910, alienWidget=0x0, nativeWidget=0xa43f7c8, buttonDown=0xb547d3c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3058
#67 0xb4b77261 in QETWidget::translateMouseEvent (this=0xa43f7c8, event=0xbfea9e2c) at kernel/qapplication_x11.cpp:4337
#68 0xb4b76151 in QApplication::x11ProcessEvent (this=0xbfeaa240, event=0xbfea9e2c) at kernel/qapplication_x11.cpp:3414
#69 0xb4ba536a in x11EventSourceDispatch (s=0x9ccec40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#70 0xb30f2855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#71 0xb30f6668 in ?? () from /lib/libglib-2.0.so.0
#72 0xb30f6848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#73 0xb45b0565 in QEventDispatcherGlib::processEvents (this=0x9c830a8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#74 0xb4ba4be5 in QGuiEventDispatcherGlib::processEvents (this=0x9c830a8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#75 0xb4580609 in QEventLoop::processEvents (this=0xbfeaa124, flags=) at kernel/qeventloop.cpp:149
#76 0xb4580a8a in QEventLoop::exec (this=0xbfeaa124, flags=...) at kernel/qeventloop.cpp:201
#77 0xb458500f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#78 0xb4ae1e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#79 0x0832b3db in main (argc=5, argv=0xbfeaa4e4) at /build/buildd/digikam2-2.0.0~beta4+git110307/digikam/main/main.cpp:232

Reported using DrKonqi
Comment 1 David Vincent-Jones 2011-03-17 19:23:22 UTC
Crash has ocured in 3 instances:
1 .. Add Camera
2 .. Auto Detect Camera
3 .. Simply connecting the camera to the system through USB

Problem is repeatable
Comment 2 caulier.gilles 2011-03-17 20:56:27 UTC
Crash appear in libgphoto2, not digiKam directly...

Gilles Caulier
Comment 3 David Vincent-Jones 2011-03-17 23:19:51 UTC
Gilles; Is there a solution to this? Strange that I appear to be the
only one with the problem.

David

On Thu, 2011-03-17 at 20:56 +0100, Gilles Caulier wrote:
> Crash appear in libgphoto2, not digiKam directly...
Comment 4 ing Frank H Duron msee 2011-03-24 17:59:31 UTC
Created attachment 58309 [details]
New crash information added by DrKonqi

digikam (2.0.0-beta4) on KDE Platform 4.6.1 (4.6.1) using Qt 4.7.0

- What I was doing when the application crashed:  The crash occured by adding the Nikon D7000 to the program.

-- Backtrace (Reduced):
#8  0x07ad5a1d in register_platform (d=0xb279758, dispatch=0x7b00380, name=0x7afc2db "usb") at control.c:2015
#9  0x07aef061 in usb_init (d=0xb279758) at control.c:383
#10 0x05f1708b in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
[...]
[...]
[...]
#14 0x00f528ff in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#15 0x00312a70 in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
Comment 5 caulier.gilles 2011-03-27 13:49:25 UTC
*** Bug 269533 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Caswell 2011-05-03 05:10:32 UTC
This looks like a duplicate of bug 268267
Comment 7 caulier.gilles 2011-05-03 07:41:31 UTC

*** This bug has been marked as a duplicate of bug 268267 ***
Comment 8 caulier.gilles 2022-11-24 17:05:47 UTC
Fixed with #268267