[Digikam-devel] [Bug 279616] New: Digikam crash on startup (or when camera connected)

Malcolm Lashley kde-malc at sucks-ass.com
Sun Aug 7 22:28:56 BST 2011


https://bugs.kde.org/show_bug.cgi?id=279616

           Summary: Digikam crash on startup (or when camera connected)
           Product: digikam
           Version: 2.0.0
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel at kde.org
        ReportedBy: kde-malc at sucks-ass.com


Application: digikam (2.0.0)
KDE Platform Version: 4.7.00 (4.7.0) (Compiled from sources)
Qt Version: 4.7.3
Operating System: Linux 2.6.39-gentoo x86_64
Distribution: "Gentoo Base System release 2.0.3"

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

After upgrading to digikam 2.0, it crashes with the attached backtrace under
the following conditions:

a) Digikam is launched from the after the camera is connected and 'download
photos with digikam' is selected from the device notification popup
b) Digikam is launched from kicker/console (and starts up ok) but crashes as
soon as the camera is connected.
c) Digikam is launched as per (b) 'add camera manually' is selected and 'Edit'
is attempted on the existing Canon Ixus 75 (PTP) entry (no camera connected)

Attempting to remove that entry, using the remove button appears to work - the
list is then empty - but upon restarting digikam (with the camera remaining
disconnected) the entry re-appears (and the same behaviour is observed)

dmesg shows the camera as follows:

usb 2-5.2: new high speed USB device number 13 using ehci_hcd
usb 2-5.2: New USB device found, idVendor=04a9, idProduct=314e
usb 2-5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-5.2: Product: Canon Digital Camera
usb 2-5.2: Manufacturer: Canon Inc.
usb 2-5.2: SerialNumber: 3896D7165E8841AC8627BB828FC0D5FB

If I try 'download photos with gwenview' from the device notifier, the camera
is correctly mounted and I can see the thumbnails/download to local directory
etc. from that application, but all subsequent attempts to do similar using
digikam (without disconnecting the camera in between) fail with a crash.

The crash can be reproduced every time.

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

Thread 6 (Thread 0x7fc3fae09700 (LWP 2898)):
#0  pthread_cond_wait () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc4153f24db in wait (time=18446744073709551615, this=0xbcd3e0) at
thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xbcde98,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005af570 in Digikam::ScanController::run (this=0xcd4880) at
/var/tmp/portage/media-gfx/digikam-2.0.0/work/digikam-2.0.0/core/digikam/database/scancontroller.cpp:618
#4  0x00007fc4153f1df5 in QThreadPrivate::start (arg=0xcd4880) at
thread/qthread_unix.cpp:320
#5  0x00007fc4123c2d4c in start_thread (arg=0x7fc3fae09700) at
pthread_create.c:301
#6  0x00007fc4141d3c6d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7fc3fa608700 (LWP 2899)):
#0  0x00007fc4141cafa3 in *__GI___poll (fds=<optimized out>, nfds=<optimized
out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc40cc2cbfd in g_main_context_poll (n_fds=1, fds=0xc989e0,
timeout=-1, context=0xbcf100, priority=<optimized out>) at gmain.c:3405
#2  g_main_context_iterate (context=0xbcf100, block=1, dispatch=1,
self=<optimized out>) at gmain.c:3087
#3  0x00007fc40cc2d12d in g_main_context_iteration (context=0xbcf100,
may_block=1) at gmain.c:3155
#4  0x00007fc415504d96 in QEventDispatcherGlib::processEvents (this=0xc72850,
flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fc4154d9222 in QEventLoop::processEvents (this=<optimized out>,
flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fc4154d9464 in QEventLoop::exec (this=0x7fc3fa607d60, flags=...) at
kernel/qeventloop.cpp:201
#7  0x00007fc4153ef5a4 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:492
#8  0x00007fc4154bae08 in QInotifyFileSystemWatcherEngine::run (this=0xc73130)
at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fc4153f1df5 in QThreadPrivate::start (arg=0xc73130) at
thread/qthread_unix.cpp:320
#10 0x00007fc4123c2d4c in start_thread (arg=0x7fc3fa608700) at
pthread_create.c:301
#11 0x00007fc4141d3c6d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fc3f9e07700 (LWP 2902)):
#0  pthread_cond_wait () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc4153f24db in wait (time=18446744073709551615, this=0xd936f0) at
thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xe097e8,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fc417dd4e87 in Digikam::ParkingThread::run (this=0xe097d0) at
/var/tmp/portage/media-gfx/digikam-2.0.0/work/digikam-2.0.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007fc4153f1df5 in QThreadPrivate::start (arg=0xe097d0) at
thread/qthread_unix.cpp:320
#5  0x00007fc4123c2d4c in start_thread (arg=0x7fc3f9e07700) at
pthread_create.c:301
#6  0x00007fc4141d3c6d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fc3f896d700 (LWP 2903)):
#0  0xffffffffff600108 in ?? ()
#1  0x00007fffce1ff7a1 in ?? ()
#2  0x00007fc40b8d82f3 in *__GI_clock_gettime (clock_id=1, tp=0x7fc3f896cab0)
at ../sysdeps/unix/clock_gettime.c:100
#3  0x00007fc415442ac2 in do_gettime (frac=<optimized out>, sec=<optimized
out>) at tools/qelapsedtimer_unix.cpp:123
#4  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#5  0x00007fc41550578d in QTimerInfoList::updateCurrentTime (this=0xe8f870) at
kernel/qeventdispatcher_unix.cpp:339
#6  0x00007fc415505b05 in QTimerInfoList::timerWait (this=0xe8f870, tm=...) at
kernel/qeventdispatcher_unix.cpp:442
#7  0x00007fc41550457c in timerSourcePrepareHelper (src=<optimized out>,
timeout=0x7fc3f896cbdc) at kernel/qeventdispatcher_glib.cpp:136
#8  0x00007fc415504625 in timerSourcePrepare (source=<optimized out>,
timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#9  0x00007fc40cc2bb76 in g_main_context_prepare (context=0xe8ef20,
priority=0x7fc3f896cc4c) at gmain.c:2762
#10 0x00007fc40cc2ca89 in g_main_context_iterate (context=0xe8ef20, block=1,
dispatch=1, self=<optimized out>) at gmain.c:3072
#11 0x00007fc40cc2d12d in g_main_context_iteration (context=0xe8ef20,
may_block=1) at gmain.c:3155
#12 0x00007fc415504d96 in QEventDispatcherGlib::processEvents (this=0xe8e9e0,
flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#13 0x00007fc4154d9222 in QEventLoop::processEvents (this=<optimized out>,
flags=...) at kernel/qeventloop.cpp:149
#14 0x00007fc4154d9464 in QEventLoop::exec (this=0x7fc3f896cd60, flags=...) at
kernel/qeventloop.cpp:201
#15 0x00007fc4153ef5a4 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:492
#16 0x00007fc4154bae08 in QInotifyFileSystemWatcherEngine::run (this=0xe8dcc0)
at io/qfilesystemwatcher_inotify.cpp:248
#17 0x00007fc4153f1df5 in QThreadPrivate::start (arg=0xe8dcc0) at
thread/qthread_unix.cpp:320
#18 0x00007fc4123c2d4c in start_thread (arg=0x7fc3f896d700) at
pthread_create.c:301
#19 0x00007fc4141d3c6d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fc3f816c700 (LWP 2904)):
#0  pthread_cond_wait () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc3f19410e0 in LoopRequest (p_playlist=0x1364810) at
playlist/thread.c:539
#2  Thread (data=0x1364810) at playlist/thread.c:586
#3  0x00007fc4123c2d4c in start_thread (arg=0x7fc3f816c700) at
pthread_create.c:301
#4  0x00007fc4141d3c6d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fc41a7717e0 (LWP 2897)):
[KCrash Handler]
#6  *__GI___libc_realloc (oldmem=0x21, bytes=18446744046918828320) at
malloc.c:3769
#7  0x00007fc40843dc41 in register_platform (d=0x3c04e20,
dispatch=0x7fc408662b60, name=0x7fc40845aa59 "usb") at control.c:2015
#8  0x00007fc3c42ad6db in gp_port_library_list (list=0x2005d40) at libusb.c:94
#9  0x00007fc413ef6307 in foreach_func (filename=0x2a8b505
"/usr/lib64/libgphoto2_port/0.8.0/usb", data=0x2005d40) at
gphoto2-port-info-list.c:243
#10 0x00007fc410211731 in foreachfile_callback (dirname=0x309fdc0
"/usr/lib64/libgphoto2_port/0.8.0", data1=<optimized out>, data2=0x2005d40) at
libltdl/ltdl.c:1860
#11 0x00007fc410211385 in foreach_dirinpath (search_path=<optimized out>,
base_name=0x0, func=0x7fc410211460 <foreachfile_callback>,
data1=0x7fffce193188, data2=0x2005d40) at libltdl/ltdl.c:715
#12 0x00007fc410212371 in lt_dlforeachfile (search_path=<optimized out>,
func=0x7fc413ef6230 <foreach_func>, data=0x2005d40) at libltdl/ltdl.c:1889
#13 0x00007fc413ef671d in gp_port_info_list_load (list=0x2005d40) at
gphoto2-port-info-list.c:290
#14 0x000000000073ea85 in Digikam::GPCamera::findConnectedUsbCamera
(vendorId=1193, productId=12622, model=..., port=...) at
/var/tmp/portage/media-gfx/digikam-2.0.0/work/digikam-2.0.0/core/utilities/cameragui/devices/gpcamera.cpp:1697
#15 0x000000000056009f in Digikam::DigikamApp::openSolidCamera (this=0xd8ec40,
udi=..., cameraLabel=...) at
/var/tmp/portage/media-gfx/digikam-2.0.0/work/digikam-2.0.0/core/digikam/main/digikamapp.cpp:1825
#16 0x0000000000561466 in Digikam::DigikamApp::slotOpenSolidDevice
(this=0xd8ec40, udi=...) at
/var/tmp/portage/media-gfx/digikam-2.0.0/work/digikam-2.0.0/core/digikam/main/digikamapp.cpp:1765
#17 0x0000000000566d5d in Digikam::DigikamApp::qt_metacall (this=0xd8ec40,
_c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x2ea19a0) at
/var/tmp/portage/media-gfx/digikam-2.0.0/work/digikam-2.0.0_build/digikam/digikamapp.moc:231
#18 0x00007fc4154ee03a in QObject::event (this=0xd8ec40, e=<optimized out>) at
kernel/qobject.cpp:1217
#19 0x00007fc415eef8cd in QWidget::event (this=0xd8ec40, event=0x2d59ac0) at
kernel/qwidget.cpp:8718
#20 0x00007fc41629428b in QMainWindow::event (this=0xd8ec40, event=0x2d59ac0)
at widgets/qmainwindow.cpp:1480
#21 0x00007fc416c99680 in KXmlGuiWindow::event (this=0xd8ec40, ev=0x2d59ac0) at
/var/tmp/portage/kde-base/kdelibs-4.7.0/work/kdelibs-4.7.0/kdeui/xmlgui/kxmlguiwindow.cpp:126
#22 0x00007fc415e9e644 in QApplicationPrivate::notify_helper (this=0xb4d4d0,
receiver=0xd8ec40, e=0x2d59ac0) at kernel/qapplication.cpp:4462
#23 0x00007fc415ea31ca in QApplication::notify (this=<optimized out>,
receiver=0xd8ec40, e=0x2d59ac0) at kernel/qapplication.cpp:4341
#24 0x00007fc416b9ca86 in KApplication::notify (this=0x7fffce194e50,
receiver=0xd8ec40, event=0x2d59ac0) at
/var/tmp/portage/kde-base/kdelibs-4.7.0/work/kdelibs-4.7.0/kdeui/kernel/kapplication.cpp:311
#25 0x00007fc4154d9e5b in QCoreApplication::notifyInternal
(this=0x7fffce194e50, receiver=0xd8ec40, event=0x2d59ac0) at
kernel/qcoreapplication.cpp:731
#26 0x00007fc4154dd614 in sendEvent (event=0x2d59ac0, receiver=0xd8ec40) at
kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0xaf6ad0) at kernel/qcoreapplication.cpp:1372
#28 0x00007fc415504ba3 in sendPostedEvents () at kernel/qcoreapplication.h:220
#29 postEventSourceDispatch (s=0xb51540) at
kernel/qeventdispatcher_glib.cpp:277
#30 0x00007fc40cc2c6ae in g_main_dispatch (context=0xb504e0) at gmain.c:2441
#31 g_main_context_dispatch (context=0xb504e0) at gmain.c:3014
#32 0x00007fc40cc2ce98 in g_main_context_iterate (context=0xb504e0, block=1,
dispatch=1, self=<optimized out>) at gmain.c:3092
#33 0x00007fc40cc2d12d in g_main_context_iteration (context=0xb504e0,
may_block=1) at gmain.c:3155
#34 0x00007fc415504d3f in QEventDispatcherGlib::processEvents (this=0xb4a000,
flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#35 0x00007fc415f43b0e in QGuiEventDispatcherGlib::processEvents
(this=<optimized out>, flags=<optimized out>) at
kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007fc4154d9222 in QEventLoop::processEvents (this=<optimized out>,
flags=...) at kernel/qeventloop.cpp:149
#37 0x00007fc4154d9464 in QEventLoop::exec (this=0x7fffce194c80, flags=...) at
kernel/qeventloop.cpp:201
#38 0x00007fc4154dd8cb in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1008
#39 0x0000000000681e2d in main (argc=11831296, argv=0x7fff00000000) at
/var/tmp/portage/media-gfx/digikam-2.0.0/work/digikam-2.0.0/core/digikam/main/main.cpp:232

Reported using DrKonqi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list