Bug 268267

Summary: digiKam crashes on picture import : OpenCV and Gphoto2 libraries incompatibility through libdc1394
Product: [Applications] digikam Reporter: Steve <shughes2>
Component: Import-Gphoto2Assignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: alex.danila.web, anderslund, caulier.gilles, dagger, davidvincentjones, debeerjohann, dilfridge, dirk.kesseler, engineering, engineering, fiz.ban, friemue, giovannefc, hamelg, hanser, hill.phil, imhofjp, jacob, jcheesman, jimpenn, jlt_kde, kairo, kde-malc, kde, king_mantus, nucleo, pc_windows_web3, philip.johnsson, pua, rodney.baker, sainthyoga2003, sronayette, strosier, suseuser, sven.burmeister, tcaswell, udo.wolfgramm, xdan779
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.0
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
Buildlogs from building Digikam 2.0.0 beta4 on kubuntu 10.04
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Steve 2011-03-12 00:01:49 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 x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
When attempting to upload pitures vis the menu Import-Camera, Digikam crashes as soon as the camera is selected.  This occurs on every attempt and with different cameras.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Aborted
[Current thread is 1 (Thread 0x7f0e47a219a0 (LWP 20237))]

Thread 10 (Thread 0x7f0e2406e700 (LWP 20238)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0e3f85ee3b in wait (this=<value optimized out>, mutex=0x1c34e38, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1c34e38, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x000000000063a654 in Digikam::ScanController::run (this=0x1bfe940) at /home/steve/tmp/digikam-software-compilation/core/digikam/database/scancontroller.cpp:602
#4  0x00007f0e3f85e27e in QThreadPrivate::start (arg=0x1bfe940) at thread/qthread_unix.cpp:266
#5  0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f0e2386d700 (LWP 20239)):
#0  idleTimerSourcePrepare (source=0x7f0e1c0012c0, timeout=0x7f0e2386c9dc) at kernel/qeventdispatcher_glib.cpp:206
#1  0x00007f0e39b90a11 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#2  0x00007f0e39b90e78 in ?? () from /lib/libglib-2.0.so.0
#3  0x00007f0e39b9145c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x00007f0e3f97e1e6 in QEventDispatcherGlib::processEvents (this=0x1c004c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#5  0x00007f0e3f950a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007f0e3f950dec in QEventLoop::exec (this=0x7f0e2386cb70, flags=) at kernel/qeventloop.cpp:201
#7  0x00007f0e3f85b2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#8  0x00007f0e3f9305f8 in QInotifyFileSystemWatcherEngine::run (this=0x1bffd20) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f0e3f85e27e in QThreadPrivate::start (arg=0x1bffd20) at thread/qthread_unix.cpp:266
#10 0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#11 0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f0e2306c700 (LWP 20243)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0e3f85ee3b in wait (this=<value optimized out>, mutex=0x1f92a08, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1f92a08, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f0e44389941 in Digikam::ParkingThread::run (this=0x1f929f0) at /home/steve/tmp/digikam-software-compilation/core/libs/threads/threadmanager.cpp:119
#4  0x00007f0e3f85e27e in QThreadPrivate::start (arg=0x1f929f0) at thread/qthread_unix.cpp:266
#5  0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f0e1bfff700 (LWP 20244)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f0e3e7d21dc in _L_lock_12347 () from /lib/libc.so.6
#2  0x00007f0e3e7d0c78 in __libc_free (mem=0x7f0e3ead1e40) at malloc.c:3736
#3  0x00007f0e3f97e601 in socketNotifierSourceCheck (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:92
#4  0x00007f0e39b9066a in g_main_context_check () from /lib/libglib-2.0.so.0
#5  0x00007f0e39b91023 in ?? () from /lib/libglib-2.0.so.0
#6  0x00007f0e39b9145c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#7  0x00007f0e3f97e193 in QEventDispatcherGlib::processEvents (this=0x231ed70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#8  0x00007f0e3f950a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#9  0x00007f0e3f950dec in QEventLoop::exec (this=0x7f0e1bffeb70, flags=) at kernel/qeventloop.cpp:201
#10 0x00007f0e3f85b2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#11 0x00007f0e3f9305f8 in QInotifyFileSystemWatcherEngine::run (this=0x231e120) at io/qfilesystemwatcher_inotify.cpp:248
#12 0x00007f0e3f85e27e in QThreadPrivate::start (arg=0x231e120) at thread/qthread_unix.cpp:266
#13 0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#14 0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f0e12b51700 (LWP 20245)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f0e18ef00d1 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#3  0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f0e11918700 (LWP 20246)):
#0  0x00007f0e3e8322c3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f0e18f19385 in xine_usec_sleep () from /usr/lib/libxine.so.1
#2  0x00007f0e18efdd09 in ?? () from /usr/lib/libxine.so.1
#3  0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#4  0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0e11117700 (LWP 20247)):
#0  0x00007f0e3e82d203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f0e39b91009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f0e39b9145c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f0e3f97e1e6 in QEventDispatcherGlib::processEvents (this=0x29b1f70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f0e3f950a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f0e3f950dec in QEventLoop::exec (this=0x7f0e11116b50, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f0e3f85b2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f0e1914b830 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#8  0x00007f0e3f85e27e in QThreadPrivate::start (arg=0x29b1930) at thread/qthread_unix.cpp:266
#9  0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0e10711700 (LWP 20248)):
#0  0x00007f0e3e82d203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f0e3e53e40f in ?? () from /usr/lib/libpulse.so.0
#2  0x00007f0e3e52dd76 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007f0e3e52f7f9 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007f0e3e52f8b0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007f0e3e53e20b in ?? () from /usr/lib/libpulse.so.0
#6  0x00007f0e35f25fb8 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#7  0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#8  0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f0e0bf0f700 (LWP 20249)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0e18f00e83 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f0e3af43971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#3  0x00007f0e3e83992d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0e47a219a0 (LWP 20237)):
[KCrash Handler]
#6  0x00007f0e3e786ba5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f0e3e78a6b0 in abort () at abort.c:92
#8  0x00007f0e3e7c043b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f0e3e7ca4b6 in malloc_printerr (action=3, str=0x7f0e3e89af2f "realloc(): invalid old size", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007f0e3e7d0b96 in _int_realloc (av=0x7f0e3ead1e40, oldp=0x2577580, oldsize=<value optimized out>, nb=75856) at malloc.c:5238
#11 0x00007f0e3e7d0eb0 in __libc_realloc (oldmem=0x2577590, bytes=75840) at malloc.c:3821
#12 0x00007f0e321a1553 in register_platform (d=0x4efaae8, dispatch=0x7f0e323cc660, name=<value optimized out>) at control.c:2015
#13 0x00007f0df7a79fd2 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#14 0x00007f0e439345e8 in ?? () from /usr/lib/libgphoto2_port.so.0
#15 0x00007f0e3951708e in ?? () from /usr/lib/libltdl.so.7
#16 0x00007f0e39516c66 in ?? () from /usr/lib/libltdl.so.7
#17 0x00007f0e39516d11 in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#18 0x00007f0e439344ed in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
#19 0x00000000007fe016 in Digikam::GPCamera::findConnectedUsbCamera (vendorId=1200, productId=1042, model=..., port=...) at /home/steve/tmp/digikam-software-compilation/core/utilities/cameragui/devices/gpcamera.cpp:1761
#20 0x00000000005207f0 in Digikam::CameraList::findConnectedCamera (vendorId=1200, productId=1042, model=..., port=...) at /home/steve/tmp/digikam-software-compilation/core/utilities/setup/cameralist.cpp:310
#21 0x00000000005e1633 in Digikam::DigikamApp::openSolidCamera (this=0x1c99c80, udi=..., cameraLabel=...) at /home/steve/tmp/digikam-software-compilation/core/digikam/main/digikamapp.cpp:1828
#22 0x00000000005e1268 in Digikam::DigikamApp::slotOpenSolidCamera (this=0x1c99c80, action=0x36d68d0) at /home/steve/tmp/digikam-software-compilation/core/digikam/main/digikamapp.cpp:1775
#23 0x00000000005cc0c5 in Digikam::DigikamApp::qt_metacall (this=0x1c99c80, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0x7fffeb5ff600) at /home/steve/tmp/digikam-software-compilation/build/core/digikam/digikamapp.moc:232
#24 0x00007f0e3f969b27 in QMetaObject::activate (sender=0x2fcc370, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#25 0x00007f0e4058d74f in QActionGroup::triggered (this=0x4f0d, _t1=0x36d68d0) at .moc/release-shared/moc_qactiongroup.cpp:146
#26 0x00007f0e4058db37 in QActionGroupPrivate::_q_actionTriggered (this=<value optimized out>) at kernel/qactiongroup.cpp:93
#27 0x00007f0e4058de71 in QActionGroup::qt_metacall (this=0x2fcc370, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffeb5ff760) at .moc/release-shared/moc_qactiongroup.cpp:101
#28 0x00007f0e3f969b27 in QMetaObject::activate (sender=0x36d68d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#29 0x00007f0e40588852 in QAction::triggered (this=0x4f0d, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#30 0x00007f0e40589f5b in QAction::activate (this=0x36d68d0, event=<value optimized out>) at kernel/qaction.cpp:1256
#31 0x00007f0e409f0dc1 in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x36d68d0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#32 0x00007f0e409f6782 in QMenuPrivate::activateAction (this=0x3289e90, action=0x36d68d0, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#33 0x00007f0e413f87be in KMenu::mouseReleaseEvent (this=0x32559d0, e=0x4f0d) at ../../kdeui/widgets/kmenu.cpp:458
#34 0x00007f0e405e604e in QWidget::event (this=0x32559d0, event=0x7fffeb6003b0) at kernel/qwidget.cpp:8187
#35 0x00007f0e409f890b in QMenu::event (this=0x32559d0, e=0x7fffeb6003b0) at widgets/qmenu.cpp:2410
#36 0x00007f0e4058ffdc in QApplicationPrivate::notify_helper (this=0x1b52cf0, receiver=0x32559d0, e=0x7fffeb6003b0) at kernel/qapplication.cpp:4396
#37 0x00007f0e4059630e in QApplication::notify (this=0x7fffeb6011b0, receiver=0x32559d0, e=0x7fffeb6003b0) at kernel/qapplication.cpp:3959
#38 0x00007f0e413202c6 in KApplication::notify (this=0x7fffeb6011b0, receiver=0x32559d0, event=0x7fffeb6003b0) at ../../kdeui/kernel/kapplication.cpp:311
#39 0x00007f0e3f951cdc in QCoreApplication::notifyInternal (this=0x7fffeb6011b0, receiver=0x32559d0, event=0x7fffeb6003b0) at kernel/qcoreapplication.cpp:732
#40 0x00007f0e40594dbe in sendEvent (receiver=0x32559d0, event=0x7fffeb6003b0, alienWidget=0x0, nativeWidget=0x32559d0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#41 QApplicationPrivate::sendMouseEvent (receiver=0x32559d0, event=0x7fffeb6003b0, alienWidget=0x0, nativeWidget=0x32559d0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:3058
#42 0x00007f0e406187bd in QETWidget::translateMouseEvent (this=0x32559d0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4337
#43 0x00007f0e40616c5c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffeb600cd0) at kernel/qapplication_x11.cpp:3536
#44 0x00007f0e406430e2 in x11EventSourceDispatch (s=0x1b569f0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x00007f0e39b8d342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#46 0x00007f0e39b912a8 in ?? () from /lib/libglib-2.0.so.0
#47 0x00007f0e39b9145c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#48 0x00007f0e3f97e193 in QEventDispatcherGlib::processEvents (this=0x1ae6ff0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#49 0x00007f0e40642a4e in QGuiEventDispatcherGlib::processEvents (this=0x4f0d, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007f0e3f950a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#51 0x00007f0e3f950dec in QEventLoop::exec (this=0x7fffeb601000, flags=) at kernel/qeventloop.cpp:201
#52 0x00007f0e3f954ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#53 0x0000000000747322 in main (argc=5, argv=0x7fffeb601838) at /home/steve/tmp/digikam-software-compilation/core/digikam/main/main.cpp:232

Possible duplicates by query: bug 257248, bug 243462, bug 228333, bug 188951.

Reported using DrKonqi
Comment 1 caulier.gilles 2011-03-12 07:06:53 UTC
Sound like libgphoto2 crash... check your system...

Which camera and libgphoto2 version you use ? Go to Help/Component Info for details...

Gilles Caulier
Comment 2 Steve 2011-03-12 13:17:56 UTC
Cameras tried:  Nikon D700, Nikon D80, Olympus FE-340, Sony Cyber-shot P100
libgphoto2 2.4.8
Comment 3 Philip Johnsson 2011-03-30 00:08:55 UTC
Created attachment 58446 [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:

Reproducible in Digikam 2.0.0 beta3 and beta 4 but not in Digikam 1.9.

Attached camera to usb-port and selected Digikam 2.0.0 beta4 as program to open with. Also happen when using the import tool in Digikam 2.0.0 beta4 from the menu. There is no problem if Digikam is downgraded to Digikam 1.9 so the problem shouldn't be with libgphoto but how libgphoto is called in Digikam 2.0 beta 3/4, or something like that.

-- Backtrace (Reduced):
#6  __libc_realloc (oldmem=0x880d1, bytes=33148971296) at malloc.c:3769
#7  0x00007f0c1d583553 in register_platform () from /usr/lib/libdc1394.so.22
#8  0x00007f0bf1286e88 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
[...]
#12 0x00007f0c248f8d11 in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#13 0x00007f0c2e9b728d in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
Comment 4 caulier.gilles 2011-03-30 06:55:24 UTC
Philip,

There is no difference between 1.9 and 2.0 how digiKam call libgphoto2 API. No changes have been done here in source code.

So, it's probably a packaging issue.

Gilles Caulier
Comment 5 Philip Johnsson 2011-04-01 02:01:59 UTC
I have done more testing trying to see if this bug really is a packaging issue. Even if I build and install any of the 2.0 betas (2-4) with either cmake and no packaging tools I get camera gui crashes. If I build Digikam 1.9 there are no crashes.

The crash happens with all features that access the libgphoto2 (coincidences??) either when using import > camera or in accessing supported cameras to list them in settings > configure > camera or trying to add a camera in Digikam.

Camera gui works fine as it should if the camera function as a usb mass storage instead of libgphoto features.

I have tried different versions of libgphoto to solve this, 2.4.8 and 2.4.10.1. I have tried compiling them in versions using udev, HAL both or either of them but nothing matters as it crashes anyway. Digikam 1.9 works with any of the libgphoto version. I can also use gtkam or Dolphin to access the camera using libgphoto without any problems

Depending on if I access any feature that use libgphoto I get somewhat different crash logs. I'll attach them too if they give any clues.

Otherwise I use this setup with Digikam:

digiKam version 2.0.0-beta4
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibClapack: internal library
LibExiv2: 0.21.1
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.6.1 (4.6.1)
LibKExiv2: 2.0.0
LibKMap: 2.0.0
LibKdcraw: 2.0.0
LibLCMS: 119
LibPGF: 6.09.44 - internal library
LibPNG: 1.2.44
LibQt: 4.7.0
LibRaw: 0.13.2
LibTIFF: LIBTIFF, Version 3.9.4 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.11.0 (Stable Release)
Parallelized demosaicing: Yes
Database backend: QSQLITE
LibGphoto2: 2.4.10.1
LibKface: 2.0.0
LibKipi: 1.2.0
LibOpenCV: 2.1.0
Libface: 0.2
Comment 6 Philip Johnsson 2011-04-01 02:04:23 UTC
*** glibc detected *** ./digikam: realloc(): invalid pointer: 0x00007f8ae55e9e98 ***
======= Backtrace: =========
/lib/libc.so.6(+0x774b6)[0x7f8ae52e24b6]
/lib/libc.so.6(realloc+0x352)[0x7f8ae52e9112]
/usr/lib/libdc1394.so.22(register_platform+0xa3)[0x7f8ad8e06553]
/usr/lib/libgphoto2_port/0.8.0/usb.so(gp_port_library_list+0x98)[0x7f8aaa711e88]
/usr/lib/libgphoto2_port.so.0(+0x2388)[0x7f8aea44b388]
/usr/lib/libltdl.so.7(+0x408e)[0x7f8ae017c08e]
/usr/lib/libltdl.so.7(+0x3c66)[0x7f8ae017bc66]
/usr/lib/libltdl.so.7(lt_dlforeachfile+0x31)[0x7f8ae017bd11]
/usr/lib/libgphoto2_port.so.0(gp_port_info_list_load+0x7d)[0x7f8aea44b28d]
./digikam[0x7b1f60]
./digikam[0x5042ff]
./digikam[0x508bcd]
./digikam[0x4fff08]
./digikam[0x502684]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2c7)[0x7f8ae6481b27]
/usr/lib/libQtGui.so.4(_ZN15QAbstractButton7clickedEb+0x32)[0x7f8ae7785402]
/usr/lib/libQtGui.so.4(+0x58feeb)[0x7f8ae747feeb]
/usr/lib/libQtGui.so.4(+0x5915bb)[0x7f8ae74815bb]
/usr/lib/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x8c)[0x7f8ae748182c]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x9be)[0x7f8ae70fe04e]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0x7f8ae70a7fdc]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x96e)[0x7f8ae70ae30e]
/usr/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x36)[0x7f8ae7e382c6]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f8ae6469cdc]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x19e)[0x7f8ae70acdbe]
/usr/lib/libQtGui.so.4(+0x240345)[0x7f8ae7130345]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x85c)[0x7f8ae712ec5c]
/usr/lib/libQtGui.so.4(+0x26b0e2)[0x7f8ae715b0e2]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7f8ae07f2342]
/lib/libglib-2.0.so.0(+0x442a8)[0x7f8ae07f62a8]
/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7f8ae07f645c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x73)[0x7f8ae6496193]
/usr/lib/libQtGui.so.4(+0x26aa4e)[0x7f8ae715aa4e]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7f8ae6468a02]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xdc)[0x7f8ae6468dec]
/usr/lib/libQtGui.so.4(_ZN7QDialog4execEv+0xde)[0x7f8ae759c7de]
./digikam[0x4dafb0]
./digikam[0x5b9e21]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2c7)[0x7f8ae6481b27]
/usr/lib/libQtGui.so.4(_ZN7QAction9triggeredEb+0x32)[0x7f8ae70a0852]
/usr/lib/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0x7b)[0x7f8ae70a1f5b]
/usr/lib/libQtGui.so.4(+0x618dc1)[0x7f8ae7508dc1]
/usr/lib/libQtGui.so.4(+0x61e782)[0x7f8ae750e782]
/usr/lib/libkdeui.so.5(_ZN5KMenu17mouseReleaseEventEP11QMouseEvent+0x3e)[0x7f8ae7f107be]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x9be)[0x7f8ae70fe04e]
/usr/lib/libQtGui.so.4(_ZN5QMenu5eventEP6QEvent+0x6b)[0x7f8ae751090b]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0x7f8ae70a7fdc]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x96e)[0x7f8ae70ae30e]
/usr/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x36)[0x7f8ae7e382c6]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f8ae6469cdc]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x19e)[0x7f8ae70acdbe]
/usr/lib/libQtGui.so.4(+0x2407bd)[0x7f8ae71307bd]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x85c)[0x7f8ae712ec5c]
/usr/lib/libQtGui.so.4(+0x26b0e2)[0x7f8ae715b0e2]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7f8ae07f2342]
/lib/libglib-2.0.so.0(+0x442a8)[0x7f8ae07f62a8]
/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7f8ae07f645c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x73)[0x7f8ae6496193]
/usr/lib/libQtGui.so.4(+0x26aa4e)[0x7f8ae715aa4e]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7f8ae6468a02]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xdc)[0x7f8ae6468dec]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xbb)[0x7f8ae646cebb]
./digikam[0x6edb1d]
======= Memory map: ========
00400000-00957000 r-xp 00000000 08:11 6323960                            /opt/digikam2/usr/bin/digikam
00b56000-00b57000 r--p 00556000 08:11 6323960                            /opt/digikam2/usr/bin/digikam
00b57000-00b61000 rw-p 00557000 08:11 6323960                            /opt/digikam2/usr/bin/digikam
00b61000-00b64000 rw-p 00000000 00:00 0 
02a0b000-0674c000 rw-p 00000000 00:00 0                                  [heap]
7f8aaa506000-7f8aaa50c000 r-xp 00000000 08:11 262395                     /lib/libusb-0.1.so.4.4.4
7f8aaa50c000-7f8aaa70c000 ---p 00006000 08:11 262395                     /lib/libusb-0.1.so.4.4.4
7f8aaa70c000-7f8aaa70d000 r--p 00006000 08:11 262395                     /lib/libusb-0.1.so.4.4.4
7f8aaa70d000-7f8aaa70e000 rw-p 00007000 08:11 262395                     /lib/libusb-0.1.so.4.4.4
7f8aaa70e000-7f8aaa70f000 rw-p 00000000 00:00 0 
7f8aaa70f000-7f8aaa713000 r-xp 00000000 08:11 6423252                    /usr/lib/libgphoto2_port/0.8.0/usb.so
7f8aaa713000-7f8aaa912000 ---p 00004000 08:11 6423252                    /usr/lib/libgphoto2_port/0.8.0/usb.so
7f8aaa912000-7f8aaa913000 r--p 00003000 08:11 6423252                    /usr/lib/libgphoto2_port/0.8.0/usb.so
7f8aaa913000-7f8aaa914000 rw-p 00004000 08:11 6423252                    /usr/lib/libgphoto2_port/0.8.0/usb.so
7f8aaa914000-7f8aaa995000 r--p 00000000 08:11 6561716                    /home/user/.fonts/DejaVuSans-BoldOblique.ttf
7f8aaa995000-7f8aabc9e000 rw-p 00000000 00:00 0 
7f8aabc9e000-7f8aabcf5000 r-xp 00000000 08:11 6424757                    /usr/lib/kde4/digikamimageplugin_transform.so
7f8aabcf5000-7f8aabef4000 ---p 00057000 08:11 6424757                    /usr/lib/kde4/digikamimageplugin_transform.so
7f8aabef4000-7f8aabef6000 r--p 00056000 08:11 6424757                    /usr/lib/kde4/digikamimageplugin_transform.so
7f8aabef6000-7f8aabef7000 rw-p 00058000 08:11 6424757                    /usr/lib/kde4/digikamimageplugin_transform.so
7f8aabef7000-7f8aabf1e000 r-xp 00000000 08:11 6451440                    /usr/lib/kde4/digikamimageplugin_fxfilters.so
7f8aabf1e000-7f8aac11d000 ---p 00027000 08:11 6451440                    /usr/lib/kde4/digikamimageplugin_fxfilters.so
7f8aac11d000-7f8aac11f000 r--p 00026000 08:11 6451440                    /usr/lib/kde4/digikamimageplugin_fxfilters.so
7f8aac11f000-7f8aac120000 rw-p 00028000 08:11 6451440                    /usr/lib/kde4/digikamimageplugin_fxfilters.so
7f8aac120000-7f8aac167000 r-xp 00000000 08:11 6451436                    /usr/lib/kde4/digikamimageplugin_enhance.soKCrash: Application 'digikam' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/user/.kde/socket-linuxfront/kdeinit4__0
QSocketNotifier: Invalid socket 17 and type 'Read', disabling...
QSocketNotifier: Invalid socket 22 and type 'Read', disabling...
[6]   Exit 253                ./digikam

[7]+  Stopped                 ./digikam

---------------------------------------------------------------------------

Application: digiKam (digikam), signal: Aborted
[Current thread is 1 (Thread 0x7f8aee30f9a0 (LWP 11880))]

Thread 7 (Thread 0x7f8acacbc700 (LWP 11881)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8ae6376e3b in wait (this=<value optimized out>, mutex=0x2bdeef8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2bdeef8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005ff87b in Digikam::ScanController::run (this=0x2c4a0d0) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/digikam/database/scancontroller.cpp:602
#4  0x00007f8ae637627e in QThreadPrivate::start (arg=0x2c4a0d0) at thread/qthread_unix.cpp:266
#5  0x00007f8ae1db9971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f8ae535192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f8aca4bb700 (LWP 11882)):
#0  0x00007f8ae5345203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8ae07f6009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f8ae07f645c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f8ae64961e6 in QEventDispatcherGlib::processEvents (this=0x2bc0310, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f8ae6468a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f8ae6468dec in QEventLoop::exec (this=0x7f8aca4bab70, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f8ae63732fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f8ae64485f8 in QInotifyFileSystemWatcherEngine::run (this=0x2bcfb50) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f8ae637627e in QThreadPrivate::start (arg=0x2bcfb50) at thread/qthread_unix.cpp:266
#9  0x00007f8ae1db9971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f8ae535192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f8ac9cba700 (LWP 11885)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8ae6376e3b in wait (this=<value optimized out>, mutex=0x2fd02b8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2fd02b8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f8aead96a92 in Digikam::ParkingThread::run (this=0x2fd02a0) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/libs/threads/threadmanager.cpp:119
#4  0x00007f8ae637627e in QThreadPrivate::start (arg=0x2fd02a0) at thread/qthread_unix.cpp:266
#5  0x00007f8ae1db9971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f8ae535192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8ac2b5f700 (LWP 11886)):
#0  0x00007f8ae5345203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8ae07f6009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f8ae07f645c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f8ae64961e6 in QEventDispatcherGlib::processEvents (this=0x30383b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f8ae6468a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f8ae6468dec in QEventLoop::exec (this=0x7f8ac2b5eb70, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f8ae63732fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f8ae64485f8 in QInotifyFileSystemWatcherEngine::run (this=0x3037900) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f8ae637627e in QThreadPrivate::start (arg=0x3037900) at thread/qthread_unix.cpp:266
#9  0x00007f8ae1db9971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f8ae535192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f8ab27e7700 (LWP 11891)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f8ae6376da2 in wait (this=<value optimized out>, mutex=0x3dd7f90, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x3dd7f90, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f8ae636bda2 in QThreadPoolThread::run (this=0x3cb4020) at concurrent/qthreadpool.cpp:140
#4  0x00007f8ae637627e in QThreadPrivate::start (arg=0x3cb4020) at thread/qthread_unix.cpp:266
#5  0x00007f8ae1db9971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f8ae535192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8ab808c700 (LWP 11896)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f8ae6376da2 in wait (this=<value optimized out>, mutex=0x2fd0850, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2fd0850, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f8ae636bda2 in QThreadPoolThread::run (this=0x58044a0) at concurrent/qthreadpool.cpp:140
#4  0x00007f8ae637627e in QThreadPrivate::start (arg=0x58044a0) at thread/qthread_unix.cpp:266
#5  0x00007f8ae1db9971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f8ae535192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8aee30f9a0 (LWP 11880)):
[KCrash Handler]
#6  0x00007f8ae529eba5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f8ae52a26b0 in abort () at abort.c:92
#8  0x00007f8ae52d843b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f8ae52e24b6 in malloc_printerr (action=3, str=0x7f8ae53b2f8b "realloc(): invalid pointer", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007f8ae52e9112 in __libc_realloc (oldmem=0x0, bytes=9421888) at malloc.c:3778
#11 0x00007f8ad8e06553 in register_platform () from /usr/lib/libdc1394.so.22
#12 0x00007f8aaa711e88 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#13 0x00007f8aea44b388 in ?? () from /usr/lib/libgphoto2_port.so.0
#14 0x00007f8ae017c08e in ?? () from /usr/lib/libltdl.so.7
#15 0x00007f8ae017bc66 in ?? () from /usr/lib/libltdl.so.7
#16 0x00007f8ae017bd11 in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#17 0x00007f8aea44b28d in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
#18 0x00000000007b1f60 in Digikam::GPCamera::getSupportedPorts (plist=...) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/utilities/cameragui/devices/gpcamera.cpp:1616
#19 0x00000000005042ff in Digikam::CameraSelection::getSerialPortList (this=0x58a6c20) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/utilities/setup/cameraselection.cpp:406
#20 0x0000000000508bcd in Digikam::CameraSelection::CameraSelection (this=0x58a6c20, parent=<value optimized out>) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/utilities/setup/cameraselection.cpp:285
#21 0x00000000004fff08 in Digikam::SetupCamera::slotAddCamera (this=0x58d73e0) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/utilities/setup/setupcamera.cpp:323
#22 0x0000000000502684 in Digikam::SetupCamera::qt_metacall (this=0x58d73e0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff1f292060) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/builddir/core/digikam/setupcamera.moc:87
#23 0x00007f8ae6481b27 in QMetaObject::activate (sender=0x58655c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#24 0x00007f8ae7785402 in QAbstractButton::clicked (this=0x2e68, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#25 0x00007f8ae747feeb in QAbstractButtonPrivate::emitClicked (this=0x5865760) at widgets/qabstractbutton.cpp:546
#26 0x00007f8ae74815bb in QAbstractButtonPrivate::click (this=0x5865760) at widgets/qabstractbutton.cpp:539
#27 0x00007f8ae748182c in QAbstractButton::mouseReleaseEvent (this=0x58655c0, e=0x7fff1f2929b0) at widgets/qabstractbutton.cpp:1121
#28 0x00007f8ae70fe04e in QWidget::event (this=0x58655c0, event=0x7fff1f2929b0) at kernel/qwidget.cpp:8187
#29 0x00007f8ae70a7fdc in QApplicationPrivate::notify_helper (this=0x2a97550, receiver=0x58655c0, e=0x7fff1f2929b0) at kernel/qapplication.cpp:4396
#30 0x00007f8ae70ae30e in QApplication::notify (this=0x7fff1f295210, receiver=0x58655c0, e=0x7fff1f2929b0) at kernel/qapplication.cpp:3959
#31 0x00007f8ae7e382c6 in KApplication::notify (this=0x7fff1f295210, receiver=0x58655c0, event=0x7fff1f2929b0) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x00007f8ae6469cdc in QCoreApplication::notifyInternal (this=0x7fff1f295210, receiver=0x58655c0, event=0x7fff1f2929b0) at kernel/qcoreapplication.cpp:732
#33 0x00007f8ae70acdbe in sendEvent (receiver=0x58655c0, event=0x7fff1f2929b0, alienWidget=0x58655c0, nativeWidget=0x3a7f2a0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#34 QApplicationPrivate::sendMouseEvent (receiver=0x58655c0, event=0x7fff1f2929b0, alienWidget=0x58655c0, nativeWidget=0x3a7f2a0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:3058
#35 0x00007f8ae7130345 in QETWidget::translateMouseEvent (this=0x3a7f2a0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4403
#36 0x00007f8ae712ec5c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff1f2932d0) at kernel/qapplication_x11.cpp:3536
#37 0x00007f8ae715b0e2 in x11EventSourceDispatch (s=0x2a9b320, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#38 0x00007f8ae07f2342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#39 0x00007f8ae07f62a8 in ?? () from /lib/libglib-2.0.so.0
#40 0x00007f8ae07f645c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#41 0x00007f8ae6496193 in QEventDispatcherGlib::processEvents (this=0x2a26fd0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#42 0x00007f8ae715aa4e in QGuiEventDispatcherGlib::processEvents (this=0x2e68, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007f8ae6468a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#44 0x00007f8ae6468dec in QEventLoop::exec (this=0x7fff1f293600, flags=) at kernel/qeventloop.cpp:201
#45 0x00007f8ae759c7de in QDialog::exec (this=0x3a7f2a0) at dialogs/qdialog.cpp:552
#46 0x00000000004dafb0 in Digikam::Setup::exec (parent=0x2cb5380, page=Digikam::Setup::LastPageUsed) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/utilities/setup/setup.cpp:401
#47 0x00000000005b9e21 in slotSetup (this=0x2cb5380, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff1f2937d0) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/digikam/main/digikamapp.cpp:2356
#48 Digikam::DigikamApp::qt_metacall (this=0x2cb5380, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff1f2937d0) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/builddir/core/digikam/digikamapp.moc:226
#49 0x00007f8ae6481b27 in QMetaObject::activate (sender=0x3a16ee0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#50 0x00007f8ae70a0852 in QAction::triggered (this=0x2e68, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#51 0x00007f8ae70a1f5b in QAction::activate (this=0x3a16ee0, event=<value optimized out>) at kernel/qaction.cpp:1256
#52 0x00007f8ae7508dc1 in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x3a16ee0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#53 0x00007f8ae750e782 in QMenuPrivate::activateAction (this=0x3c584c0, action=0x3a16ee0, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#54 0x00007f8ae7f107be in KMenu::mouseReleaseEvent (this=0x3c58480, e=0x2e68) at ../../kdeui/widgets/kmenu.cpp:458
#55 0x00007f8ae70fe04e in QWidget::event (this=0x3c58480, event=0x7fff1f294420) at kernel/qwidget.cpp:8187
#56 0x00007f8ae751090b in QMenu::event (this=0x3c58480, e=0x7fff1f294420) at widgets/qmenu.cpp:2410
#57 0x00007f8ae70a7fdc in QApplicationPrivate::notify_helper (this=0x2a97550, receiver=0x3c58480, e=0x7fff1f294420) at kernel/qapplication.cpp:4396
#58 0x00007f8ae70ae30e in QApplication::notify (this=0x7fff1f295210, receiver=0x3c58480, e=0x7fff1f294420) at kernel/qapplication.cpp:3959
#59 0x00007f8ae7e382c6 in KApplication::notify (this=0x7fff1f295210, receiver=0x3c58480, event=0x7fff1f294420) at ../../kdeui/kernel/kapplication.cpp:311
#60 0x00007f8ae6469cdc in QCoreApplication::notifyInternal (this=0x7fff1f295210, receiver=0x3c58480, event=0x7fff1f294420) at kernel/qcoreapplication.cpp:732
#61 0x00007f8ae70acdbe in sendEvent (receiver=0x3c58480, event=0x7fff1f294420, alienWidget=0x0, nativeWidget=0x3c58480, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#62 QApplicationPrivate::sendMouseEvent (receiver=0x3c58480, event=0x7fff1f294420, alienWidget=0x0, nativeWidget=0x3c58480, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:3058
#63 0x00007f8ae71307bd in QETWidget::translateMouseEvent (this=0x3c58480, event=<value optimized out>) at kernel/qapplication_x11.cpp:4337
#64 0x00007f8ae712ec5c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff1f294d40) at kernel/qapplication_x11.cpp:3536
#65 0x00007f8ae715b0e2 in x11EventSourceDispatch (s=0x2a9b320, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#66 0x00007f8ae07f2342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#67 0x00007f8ae07f62a8 in ?? () from /lib/libglib-2.0.so.0
#68 0x00007f8ae07f645c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#69 0x00007f8ae6496193 in QEventDispatcherGlib::processEvents (this=0x2a26fd0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#70 0x00007f8ae715aa4e in QGuiEventDispatcherGlib::processEvents (this=0x2e68, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#71 0x00007f8ae6468a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#72 0x00007f8ae6468dec in QEventLoop::exec (this=0x7fff1f295070, flags=) at kernel/qeventloop.cpp:201
#73 0x00007f8ae646cebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#74 0x00000000006edb1d in main (argc=<value optimized out>, argv=<value optimized out>) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/digikam/main/main.cpp:232
Comment 7 Philip Johnsson 2011-04-01 02:06:34 UTC
*** glibc detected *** ./digikam: realloc(): invalid pointer: 0x00007f1a2417ee98 ***
======= Backtrace: =========
/lib/libc.so.6(+0x774b6)[0x7f1a23e774b6]
/lib/libc.so.6(realloc+0x352)[0x7f1a23e7e112]
/usr/lib/libdc1394.so.22(register_platform+0xa3)[0x7f1a1799b553]
/usr/lib/libgphoto2_port/0.8.0/usb.so(gp_port_library_list+0x98)[0x7f19e9341e88]
/usr/lib/libgphoto2_port.so.0(+0x2388)[0x7f1a28fe0388]
/usr/lib/libltdl.so.7(+0x408e)[0x7f1a1ed1108e]
/usr/lib/libltdl.so.7(+0x3c66)[0x7f1a1ed10c66]
/usr/lib/libltdl.so.7(lt_dlforeachfile+0x31)[0x7f1a1ed10d11]
/usr/lib/libgphoto2_port.so.0(gp_port_info_list_load+0x7d)[0x7f1a28fe028d]
./digikam[0x7b8d10]
./digikam[0x5a346c]
./digikam[0x5a3d6c]
./digikam[0x5b9e84]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2c7)[0x7f1a25016b27]
/usr/lib/libQtGui.so.4(_ZN12QActionGroup9triggeredEP7QAction+0x2f)[0x7f1a25c3a74f]
/usr/lib/libQtGui.so.4(+0x1b5b37)[0x7f1a25c3ab37]
/usr/lib/libQtGui.so.4(_ZN12QActionGroup11qt_metacallEN11QMetaObject4CallEiPPv+0x171)[0x7f1a25c3ae71]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2c7)[0x7f1a25016b27]
/usr/lib/libQtGui.so.4(_ZN7QAction9triggeredEb+0x32)[0x7f1a25c35852]
/usr/lib/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0x7b)[0x7f1a25c36f5b]
/usr/lib/libQtGui.so.4(+0x618dc1)[0x7f1a2609ddc1]
/usr/lib/libQtGui.so.4(+0x61e782)[0x7f1a260a3782]
/usr/lib/libkdeui.so.5(_ZN5KMenu17mouseReleaseEventEP11QMouseEvent+0x3e)[0x7f1a26aa57be]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x9be)[0x7f1a25c9304e]
/usr/lib/libQtGui.so.4(_ZN5QMenu5eventEP6QEvent+0x6b)[0x7f1a260a590b]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0x7f1a25c3cfdc]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x96e)[0x7f1a25c4330e]
/usr/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x36)[0x7f1a269cd2c6]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f1a24ffecdc]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x19e)[0x7f1a25c41dbe]
/usr/lib/libQtGui.so.4(+0x2407bd)[0x7f1a25cc57bd]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x85c)[0x7f1a25cc3c5c]
/usr/lib/libQtGui.so.4(+0x26b0e2)[0x7f1a25cf00e2]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7f1a1f387342]
/lib/libglib-2.0.so.0(+0x442a8)[0x7f1a1f38b2a8]
/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7f1a1f38b45c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x73)[0x7f1a2502b193]
/usr/lib/libQtGui.so.4(+0x26aa4e)[0x7f1a25cefa4e]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7f1a24ffda02]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xdc)[0x7f1a24ffddec]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xbb)[0x7f1a25001ebb]
./digikam[0x6edb1d]
/lib/libc.so.6(__libc_start_main+0xfe)[0x7f1a23e1ed8e]
./digikam[0x488d29]
======= Memory map: ========
00400000-00957000 r-xp 00000000 08:11 6323960                            /opt/digikam2/usr/bin/digikam
00b56000-00b57000 r--p 00556000 08:11 6323960                            /opt/digikam2/usr/bin/digikam
00b57000-00b61000 rw-p 00557000 08:11 6323960                            /opt/digikam2/usr/bin/digikam
00b61000-00b64000 rw-p 00000000 00:00 0 
01146000-03df6000 rw-p 00000000 00:00 0                                  [heap]
7f19e9136000-7f19e913c000 r-xp 00000000 08:11 262395                     /lib/libusb-0.1.so.4.4.4
7f19e913c000-7f19e933c000 ---p 00006000 08:11 262395                     /lib/libusb-0.1.so.4.4.4
7f19e933c000-7f19e933d000 r--p 00006000 08:11 262395                     /lib/libusb-0.1.so.4.4.4
7f19e933d000-7f19e933e000 rw-p 00007000 08:11 262395                     /lib/libusb-0.1.so.4.4.4
7f19e933e000-7f19e933f000 rw-p 00000000 00:00 0 
7f19e933f000-7f19e9343000 r-xp 00000000 08:11 6423252                    /usr/lib/libgphoto2_port/0.8.0/usb.so
7f19e9343000-7f19e9542000 ---p 00004000 08:11 6423252                    /usr/lib/libgphoto2_port/0.8.0/usb.so
7f19e9542000-7f19e9543000 r--p 00003000 08:11 6423252                    /usr/lib/libgphoto2_port/0.8.0/usb.so
7f19e9543000-7f19e9544000 rw-p 00004000 08:11 6423252                    /usr/lib/libgphoto2_port/0.8.0/usb.so
7f19e9544000-7f19ea84d000 rw-p 00000000 00:00 0 
7f19ea84d000-7f19ea8a4000 r-xp 00000000 08:11 6424757                    /usr/lib/kde4/digikamimageplugin_transform.so
7f19ea8a4000-7f19eaaa3000 ---p 00057000 08:11 6424757                    /usr/lib/kde4/digikamimageplugin_transform.so
7f19eaaa3000-7f19eaaa5000 r--p 00056000 08:11 6424757                    /usr/lib/kde4/digikamimageplugin_transform.so
7f19eaaa5000-7f19eaaa6000 rw-p 00058000 08:11 6424757                    /usr/lib/kde4/digikamimageplugin_transform.so
7f19eaaa6000-7f19eaacd000 r-xp 00000000 08:11 6451440                    /usr/lib/kde4/digikamimageplugin_fxfilters.so
7f19eaacd000-7f19eaccc000 ---p 00027000 08:11 6451440                    /usr/lib/kde4/digikamimageplugin_fxfilters.so
7f19eaccc000-7f19eacce000 r--p 00026000 08:11 6451440                    /usr/lib/kde4/digikamimageplugin_fxfilters.so
7f19eacce000-7f19eaccf000 rw-p 00028000 08:11 6451440                    /usr/lib/kde4/digikamimageplugin_fxfilters.so
7f19eaccf000-7f19ead16000 r-xp 00000000 08:11 6451436                    /usr/lib/kde4/digikamimageplugin_enhance.so
7f19ead16000-7f19eaf15000 ---p 00047000 08:11 6451436                    /usr/lib/kde4/digikamimageplugin_enhance.so
7f19eaf15000-7f19eaf18000 r--p 00046000 08:11 6451436                    /usr/lib/kde4/digikamimageplugin_enhance.so
7f19eaf18000-7f19eaf19000 rw-p 00049000 08:11 6451436                    /usr/lib/kde4/digikamimageplugin_enhance.so
7f19eaf19000-7f19eaf1a000 rw-p 00000000 00:00 0 
7f19eaf1a000-7f19eaf1b000 r-xp 00000000 08:11 6425152                    /usr/lib/libutempter.so.1.1.5
7f19eaf1b000-7f19eb11b000 ---p 00001000 08:11 6425152                    /usr/lib/libutempter.so.1.1.5
7f19eb11b000-7f19eb11c000 r--p 00001000 08:11 6425152                    /usr/lib/libutempter.so.1.1.5
7f19eb11c000-7f19eb11d000 rw-p 00002000 08:11 6425152                    /usr/lib/libutempter.so.1.1.5
7f19eb11d000-7f19eb11f000 r-xp 00000000 08:11 262776                     /lib/libutil-2.12.1.so
7f19eb11f000-7f19eb31e000 ---p 00002000 08:11 262776                     /lib/libutil-2.12.1.so
7f19eb31e000-7f19eb31f000 r--p 00001000 08:11 262776                     /lib/libutil-2.12.1.so
7f19eb31f000-7f19eb320000 rw-p 00002000 08:11 262776                     /lib/libutil-2.12.1.so
7f19eb320000-7f19eb329000 r-xp 00000000 08:11 6438403                    /usr/lib/libkpty.so.4.6.0KCrash: Application 'digikam' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/user/.kde/socket-linuxfront/kdeinit4__0
QSocketNotifier: Invalid socket 22 and type 'Read', disabling...
QSocketNotifier: Invalid socket 17 and type 'Read', disabling...
[7]   Exit 253                ./digikam

[8]+  Stopped                 ./digikam

------------------------------------------------------------------

Application: digiKam (digikam), signal: Aborted
[Current thread is 1 (Thread 0x7f1a2cea49a0 (LWP 11934))]

Thread 6 (Thread 0x7f1a09851700 (LWP 11935)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f1a24f0be3b in wait (this=<value optimized out>, mutex=0x130f9f8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x130f9f8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005ff87b in Digikam::ScanController::run (this=0x1385690) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/digikam/database/scancontroller.cpp:602
#4  0x00007f1a24f0b27e in QThreadPrivate::start (arg=0x1385690) at thread/qthread_unix.cpp:266
#5  0x00007f1a2094e971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f1a23ee692d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f1a09050700 (LWP 11936)):
#0  0x00007f1a20951c9d in __pthread_mutex_unlock_usercnt (mutex=0x7f1a040009a8) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x7f1a040009a8) at pthread_mutex_unlock.c:290
#2  0x00007f1a1f385b02 in g_main_context_query () from /lib/libglib-2.0.so.0
#3  0x00007f1a1f38aefc in ?? () from /lib/libglib-2.0.so.0
#4  0x00007f1a1f38b45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x00007f1a2502b1e6 in QEventDispatcherGlib::processEvents (this=0x7f1a040008b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#6  0x00007f1a24ffda02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#7  0x00007f1a24ffddec in QEventLoop::exec (this=0x7f1a0904fb70, flags=) at kernel/qeventloop.cpp:201
#8  0x00007f1a24f082fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#9  0x00007f1a24fdd5f8 in QInotifyFileSystemWatcherEngine::run (this=0x1390b50) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f1a24f0b27e in QThreadPrivate::start (arg=0x1390b50) at thread/qthread_unix.cpp:266
#11 0x00007f1a2094e971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#12 0x00007f1a23ee692d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f1a0884f700 (LWP 11939)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f1a24f0be3b in wait (this=<value optimized out>, mutex=0x14f5f38, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x14f5f38, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f1a2992ba92 in Digikam::ParkingThread::run (this=0x14f5f20) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/libs/threads/threadmanager.cpp:119
#4  0x00007f1a24f0b27e in QThreadPrivate::start (arg=0x14f5f20) at thread/qthread_unix.cpp:266
#5  0x00007f1a2094e971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f1a23ee692d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f1a01754700 (LWP 11940)):
#0  0x00007f1a23eda203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f1a1f38b009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f1a1f38b45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f1a2502b1e6 in QEventDispatcherGlib::processEvents (this=0x7f1a04012d60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f1a24ffda02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f1a24ffddec in QEventLoop::exec (this=0x7f1a01753b70, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f1a24f082fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f1a24fdd5f8 in QInotifyFileSystemWatcherEngine::run (this=0x1786560) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f1a24f0b27e in QThreadPrivate::start (arg=0x1786560) at thread/qthread_unix.cpp:266
#9  0x00007f1a2094e971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f1a23ee692d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f19f13dc700 (LWP 11947)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f1a24f0bda2 in wait (this=<value optimized out>, mutex=0x24f4ab0, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x24f4ab0, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f1a24f00da2 in QThreadPoolThread::run (this=0x24f36b0) at concurrent/qthreadpool.cpp:140
#4  0x00007f1a24f0b27e in QThreadPrivate::start (arg=0x24f36b0) at thread/qthread_unix.cpp:266
#5  0x00007f1a2094e971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f1a23ee692d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1a2cea49a0 (LWP 11934)):
[KCrash Handler]
#6  0x00007f1a23e33ba5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f1a23e376b0 in abort () at abort.c:92
#8  0x00007f1a23e6d43b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f1a23e774b6 in malloc_printerr (action=3, str=0x7f1a23f47f8b "realloc(): invalid pointer", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007f1a23e7e112 in __libc_realloc (oldmem=0x0, bytes=34801728) at malloc.c:3778
#11 0x00007f1a1799b553 in register_platform () from /usr/lib/libdc1394.so.22
#12 0x00007f19e9341e88 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#13 0x00007f1a28fe0388 in ?? () from /usr/lib/libgphoto2_port.so.0
#14 0x00007f1a1ed1108e in ?? () from /usr/lib/libltdl.so.7
#15 0x00007f1a1ed10c66 in ?? () from /usr/lib/libltdl.so.7
#16 0x00007f1a1ed10d11 in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#17 0x00007f1a28fe028d in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
#18 0x00000000007b8d10 in Digikam::GPCamera::findConnectedUsbCamera (vendorId=<value optimized out>, productId=12740, model=<value optimized out>, port=<value optimized out>) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/utilities/cameragui/devices/gpcamera.cpp:1761
#19 0x00000000005a346c in Digikam::DigikamApp::openSolidCamera (this=0x13318f0, udi=..., cameraLabel=...) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/digikam/main/digikamapp.cpp:1833
#20 0x00000000005a3d6c in Digikam::DigikamApp::slotOpenSolidCamera (this=0x13318f0, action=0x2138f60) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/digikam/main/digikamapp.cpp:1780
#21 0x00000000005b9e84 in Digikam::DigikamApp::qt_metacall (this=0x13318f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd076b570) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/builddir/core/digikam/digikamapp.moc:232
#22 0x00007f1a25016b27 in QMetaObject::activate (sender=0x21a5870, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#23 0x00007f1a25c3a74f in QActionGroup::triggered (this=0x2e9e, _t1=0x2138f60) at .moc/release-shared/moc_qactiongroup.cpp:146
#24 0x00007f1a25c3ab37 in QActionGroupPrivate::_q_actionTriggered (this=<value optimized out>) at kernel/qactiongroup.cpp:93
#25 0x00007f1a25c3ae71 in QActionGroup::qt_metacall (this=0x21a5870, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd076b6d0) at .moc/release-shared/moc_qactiongroup.cpp:101
#26 0x00007f1a25016b27 in QMetaObject::activate (sender=0x2138f60, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#27 0x00007f1a25c35852 in QAction::triggered (this=0x2e9e, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#28 0x00007f1a25c36f5b in QAction::activate (this=0x2138f60, event=<value optimized out>) at kernel/qaction.cpp:1256
#29 0x00007f1a2609ddc1 in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x2138f60, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#30 0x00007f1a260a3782 in QMenuPrivate::activateAction (this=0x2432ac0, action=0x2138f60, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#31 0x00007f1a26aa57be in KMenu::mouseReleaseEvent (this=0x242f3a0, e=0x2e9e) at ../../kdeui/widgets/kmenu.cpp:458
#32 0x00007f1a25c9304e in QWidget::event (this=0x242f3a0, event=0x7fffd076c320) at kernel/qwidget.cpp:8187
#33 0x00007f1a260a590b in QMenu::event (this=0x242f3a0, e=0x7fffd076c320) at widgets/qmenu.cpp:2410
#34 0x00007f1a25c3cfdc in QApplicationPrivate::notify_helper (this=0x11d2550, receiver=0x242f3a0, e=0x7fffd076c320) at kernel/qapplication.cpp:4396
#35 0x00007f1a25c4330e in QApplication::notify (this=0x7fffd076d110, receiver=0x242f3a0, e=0x7fffd076c320) at kernel/qapplication.cpp:3959
#36 0x00007f1a269cd2c6 in KApplication::notify (this=0x7fffd076d110, receiver=0x242f3a0, event=0x7fffd076c320) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007f1a24ffecdc in QCoreApplication::notifyInternal (this=0x7fffd076d110, receiver=0x242f3a0, event=0x7fffd076c320) at kernel/qcoreapplication.cpp:732
#38 0x00007f1a25c41dbe in sendEvent (receiver=0x242f3a0, event=0x7fffd076c320, alienWidget=0x0, nativeWidget=0x242f3a0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#39 QApplicationPrivate::sendMouseEvent (receiver=0x242f3a0, event=0x7fffd076c320, alienWidget=0x0, nativeWidget=0x242f3a0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:3058
#40 0x00007f1a25cc57bd in QETWidget::translateMouseEvent (this=0x242f3a0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4337
#41 0x00007f1a25cc3c5c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffd076cc40) at kernel/qapplication_x11.cpp:3536
#42 0x00007f1a25cf00e2 in x11EventSourceDispatch (s=0x11d6320, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#43 0x00007f1a1f387342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#44 0x00007f1a1f38b2a8 in ?? () from /lib/libglib-2.0.so.0
#45 0x00007f1a1f38b45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#46 0x00007f1a2502b193 in QEventDispatcherGlib::processEvents (this=0x1161fd0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#47 0x00007f1a25cefa4e in QGuiEventDispatcherGlib::processEvents (this=0x2e9e, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#48 0x00007f1a24ffda02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#49 0x00007f1a24ffddec in QEventLoop::exec (this=0x7fffd076cf70, flags=) at kernel/qeventloop.cpp:201
#50 0x00007f1a25001ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#51 0x00000000006edb1d in main (argc=<value optimized out>, argv=<value optimized out>) at /media/sdd2/backup/download/source/done/digikam/digikam2/digikam-2.0.0-beta4/core/digikam/main/main.cpp:232
Comment 8 Philip Johnsson 2011-04-01 16:54:36 UTC
Exactly the same thing happens with Digikam 2.0 beta 4 when built on the Kubuntu 11.04 (natty) so it looks like the problem might be *ubuntu specific?!?!

On Kubuntu 11.04 the system components are these (newer version of QT4 from previous bug reporting in this thread):

digiKam version 2.0.0-beta4
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibClapack: internal library
LibExiv2: 0.21.1
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.6.1 (4.6.1)
LibKExiv2: 2.0.0
LibKMap: 2.0.0
LibKdcraw: 2.0.0
LibLCMS: 118
LibPGF: 6.09.44 - internal library
LibPNG: 1.2.44
LibQt: 4.7.2
LibRaw: 0.13.2
LibTIFF: LIBTIFF, Version 3.9.4 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.11.0 (Stable Release)
Parallelized demosaicing: Yes
Database backend: QSQLITE
LibGphoto2: 2.4.10.1
LibKface: 2.0.0
LibKipi: 1.2.0
LibOpenCV: 2.1.0
Libface: 0.2
Comment 9 Philip Johnsson 2011-04-01 17:08:27 UTC
Created attachment 58503 [details]
Buildlogs from building Digikam 2.0.0 beta4 on kubuntu 10.04

Upload buildlogs in a tar.gz-tarball from building Digikam 2.0.0 beta4 on kubuntu 10.04 using cmake without any packaging tools.
Comment 10 caulier.gilles 2011-04-11 10:18:33 UTC
*** Bug 270654 has been marked as a duplicate of this bug. ***
Comment 11 caulier.gilles 2011-04-15 19:42:28 UTC
*** Bug 271046 has been marked as a duplicate of this bug. ***
Comment 12 Thomas Caswell 2011-04-26 05:50:39 UTC
Created attachment 59317 [details]
New crash information added by DrKonqi

digikam (2.0.0-beta5) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:
Plugin in camera.

From the drop down menu of the device notifier widget and select 'Download photos with digikam'

Digikam opened as expected and then crashed.  Happen with both a cannon powershot sd750 and a nikon d5000.  This log is for the cannon, I can provide the back trace for the nikon if you want it.

Also crashes trying to access the camera from with in digikam rather than launching from the notifier.

- Custom settings of the application:
digikam is compiled from git.  I can provide the exact configuration if requested.  I have pulled all the dependencies from the ubuntu repositories (10.10)


digiKam version 2.0.0-beta5
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibClapack: internal library
LibExiv2: 0.21.1
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.5.1 (KDE 4.5.1)
LibKExiv2: 2.0.0
LibKMap: 2.0.0
LibKdcraw: 2.0.0
LibLCMS: 118
LibPGF: 6.09.44 - internal library
LibPNG: 1.2.44
LibQt: 4.7.0
LibRaw: 0.13.4
LibTIFF: LIBTIFF, Version 3.9.4 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.10.1
Parallelized demosaicing: Yes
Database backend: QSQLITE
LibGphoto2: 2.4.8
LibKface: 2.0.0
LibKipi: 1.2.0
LibOpenCV: 2.1.0
Libface: 0.2

-- Backtrace (Reduced):
#8  0x00007f6ea122043b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f6ea122a4b6 in malloc_printerr (action=3, str=0x7f6ea12faf8b "realloc(): invalid pointer", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007f6ea1231112 in __libc_realloc (oldmem=0x0, bytes=4672) at malloc.c:3778
#11 0x00007f6e94a52553 in register_platform (d=0x4d50318, dispatch=0x7f6e94c7d660, name=<value optimized out>) at control.c:2015
#12 0x00007f6e5f7b3fd2 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
Comment 13 Thomas Caswell 2011-05-03 05:06:59 UTC
This problem also exists with the rc code compiled on arch linux so this is not a ubuntu specific issue.

per the suggestion in the mailing list from Pierre Hanser (http://mail.kde.org/pipermail/digikam-devel/2011-April/050653.html) starting digikam from the command line as:

[tcaswell@inara ~]$ LD_PRELOAD=/usr/lib/libusb.so digikam
libdc1394 error: Failed to initialize libdc1394

The error relating to libdc1394 is not generated without the LD_PRELOAD.
Comment 14 caulier.gilles 2011-05-03 07:41:31 UTC
*** Bug 268773 has been marked as a duplicate of this bug. ***
Comment 15 caulier.gilles 2011-05-03 07:43:53 UTC
It's definitively a problem from Gphoto2. digiKam do no use libdc1394... It's perhaps a packaging problem...

Gilles Caulier
Comment 16 Philip Johnsson 2011-05-03 17:32:09 UTC
I think this is a very strange problem as I have built Digikam 2.0 beta4 on
Ubuntu 10.10 and 11.04 and get this crash in libgphoto2/usb but it works
fine if I build it in Fedora 14. Digikam 1.9 on the other hand builds and
works just fine on all these three distros (including Ubuntu). So if it's a
packaging issue it's something that only happens when Digikam 2.0 (and not
Digikam 1.9) calls to initiate usb over libgphoto2 on Ubuntu but doesn't
happen in Digikam 1.9. It looks like cameragui(?) or something that backends
it is changed in Digikam 2. Maybe some obscure or tiny change that anyway
make this happen on at least Ubuntu. I haven't tried to build it on Debian
though.

This problem have nothing to do with my Digikam 2.0 packages as it happens
on Ubuntu even when it's not built as packages but use the cmake build and
install system. Not sure where to start looking either... :(

/Philip


On Tue, May 3, 2011 at 7:43 AM, Gilles Caulier <caulier.gilles@gmail.com>wrote:

> https://bugs.kde.org/show_bug.cgi?id=268267
>
>
>
>
>
> --- Comment #15 from Gilles Caulier <caulier gilles gmail com>  2011-05-03
> 07:43:53 ---
> It's definitively a problem from Gphoto2. digiKam do no use libdc1394...
> It's
> perhaps a packaging problem...
>
> Gilles Caulier
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
>
Comment 17 caulier.gilles 2011-05-03 18:06:31 UTC
I'm sure : GPhoto2 backend from digiKam 2.0 CameraGUI is not changed with this release. It's the same code between 1.9 and 2.0

Gilles Caulier
Comment 18 Pierre Hanser 2011-05-04 08:47:21 UTC
I think the problem may come through the following path

    libkface -> libopencv -> gstreamer -> libdc1394

libopencv may be linked with gstreamer which calls 1394 functions.

the problem exist because there are public definitions duplicated between
libusb and libdc1394

$ nm -D /usr/lib/libusb.so|grep usb_init
00001180 T usb_init

$ nm -D /usr/lib/libdc1394.so.22.1.4|grep usb_init
         U libusb_init
0001f8d0 T usb_init

ubuntu uses an version 1 of libdc1394 where a version 2 exists



if you look at libkface included libraries, there are a large list which includes everything
to do audio and video

$ ldd build-11.04/lib/libkface.so
	linux-gate.so.1 =>  (0xb77aa000)
	libkdecore.so.5 => /usr/lib/libkdecore.so.5 (0xb74e8000)
	libkdeui.so.5 => /usr/lib/libkdeui.so.5 (0xb713e000)
	libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb66bf000)
	libcxcore.so.2.1 => /usr/lib/libcxcore.so.2.1 (0xb64fe000)
	libcv.so.2.1 => /usr/lib/libcv.so.2.1 (0xb6226000)
	libml.so.2.1 => /usr/lib/libml.so.2.1 (0xb61c5000)
	libhighgui.so.2.1 => /usr/lib/libhighgui.so.2.1 (0xb6188000)
	libcvaux.so.2.1 => /usr/lib/libcvaux.so.2.1 (0xb605d000)
	libQtDBus.so.4 => /usr/lib/libQtDBus.so.4 (0xb5fe6000)
	libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb5d54000)
	libQtSvg.so.4 => /usr/lib/libQtSvg.so.4 (0xb5d00000)
	libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb5c15000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb5bef000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb5a8d000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb5a71000)
	libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xb5947000)
	libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb5932000)
	libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb5921000)
	liblzma.so.2 => /usr/lib/liblzma.so.2 (0xb58fe000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb58e5000)
	libSM.so.6 => /usr/lib/i386-linux-gnu/libSM.so.6 (0xb58dd000)
	libICE.so.6 => /usr/lib/i386-linux-gnu/libICE.so.6 (0xb58c5000)
	libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb57aa000)
	libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb5768000)
	libattica.so.0 => /usr/lib/libattica.so.0 (0xb56c5000)
	libdbusmenu-qt.so.2 => /usr/lib/libdbusmenu-qt.so.2 (0xb5693000)
	libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xb5689000)
	libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xb565a000)
	libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb5642000)
	libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xb556b000)
	libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb5546000)
	libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xb54c0000)
	libgobject-2.0.so.0 => /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 (0xb5479000)
	libXi.so.6 => /usr/lib/i386-linux-gnu/libXi.so.6 (0xb5469000)
	libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb545a000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb5456000)
	librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb544d000)
	liblapack.so.3gf => /usr/lib/liblapack.so.3gf (0xb4c80000)
	libjpeg.so.62 => /usr/lib/i386-linux-gnu/libjpeg.so.62 (0xb4c5f000)
	libtiff.so.4 => /usr/lib/i386-linux-gnu/libtiff.so.4 (0xb4c04000)
	libjasper.so.1 => /usr/lib/i386-linux-gnu/libjasper.so.1 (0xb4bb8000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb47df000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb4746000)
	libatk-1.0.so.0 => /usr/lib/i386-linux-gnu/libatk-1.0.so.0 (0xb4729000)
	libgio-2.0.so.0 => /usr/lib/i386-linux-gnu/libgio-2.0.so.0 (0xb4626000)
	libpangoft2-1.0.so.0 => /usr/lib/i386-linux-gnu/libpangoft2-1.0.so.0 (0xb45fe000)
	libpangocairo-1.0.so.0 => /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0 (0xb45f2000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb45d5000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb4521000)
	libpango-1.0.so.0 => /usr/lib/i386-linux-gnu/libpango-1.0.so.0 (0xb44e1000)
	libgmodule-2.0.so.0 => /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0 (0xb44dd000)
	libgthread-2.0.so.0 => /usr/lib/i386-linux-gnu/libgthread-2.0.so.0 (0xb44d8000)
	libavcodec.so.52 => /usr/lib/i686/cmov/libavcodec.so.52 (0xb3b32000)
	libavformat.so.52 => /usr/lib/i686/cmov/libavformat.so.52 (0xb3a5f000)
	libavutil.so.50 => /usr/lib/i686/cmov/libavutil.so.50 (0xb3a4b000)
	libswscale.so.0 => /usr/lib/i686/cmov/libswscale.so.0 (0xb39ef000)
	libdc1394.so.22 => /usr/lib/libdc1394.so.22 (0xb397e000)
	libdbus-1.so.3 => /lib/i386-linux-gnu/libdbus-1.so.3 (0xb3941000)
	/lib/ld-linux.so.2 (0xb77ab000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xb393b000)
	libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb3922000)
	libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb38f8000)
	libXt.so.6 => /usr/lib/i386-linux-gnu/libXt.so.6 (0xb38a6000)
	libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb38a1000)
	libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb3862000)
	libblas.so.3gf => /usr/lib/libblas.so.3gf (0xb3562000)
	libgfortran.so.3 => /usr/lib/i386-linux-gnu/libgfortran.so.3 (0xb34a7000)
	libXcomposite.so.1 => /usr/lib/i386-linux-gnu/libXcomposite.so.1 (0xb34a3000)
	libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xb349e000)
	libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xb3498000)
	libXinerama.so.1 => /usr/lib/i386-linux-gnu/libXinerama.so.1 (0xb3494000)
	libXrandr.so.2 => /usr/lib/i386-linux-gnu/libXrandr.so.2 (0xb348c000)
	libXcursor.so.1 => /usr/lib/i386-linux-gnu/libXcursor.so.1 (0xb3482000)
	libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xb346c000)
	libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0xb3451000)
	libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb33e5000)
	libxcb-shm.so.0 => /usr/lib/i386-linux-gnu/libxcb-shm.so.0 (0xb33e1000)
	libxcb-render.so.0 => /usr/lib/i386-linux-gnu/libxcb-render.so.0 (0xb33d9000)
	libva.so.1 => /usr/lib/libva.so.1 (0xb33b0000)
	libdirac_encoder.so.0 => /usr/lib/libdirac_encoder.so.0 (0xb3326000)
	libfaad.so.2 => /usr/lib/libfaad.so.2 (0xb32e7000)
	libgsm.so.1 => /usr/lib/libgsm.so.1 (0xb32d9000)
	libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0xb3264000)
	libopenjpeg.so.2 => /usr/lib/libopenjpeg.so.2 (0xb3244000)
	libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0 (0xb31a2000)
	libspeex.so.1 => /usr/lib/sse2/libspeex.so.1 (0xb3185000)
	libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1 (0xb3141000)
	libtheoradec.so.1 => /usr/lib/libtheoradec.so.1 (0xb3127000)
	libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb2fae000)
	libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb2f87000)
	libvpx.so.0 => /usr/lib/libvpx.so.0 (0xb2eed000)
	libx264.so.106 => /usr/lib/i686/sse2/libx264.so.106 (0xb2e09000)
	libxvidcore.so.4 => /usr/lib/libxvidcore.so.4 (0xb2cfb000)
	libraw1394.so.11 => /usr/lib/libraw1394.so.11 (0xb2cec000)
	libusb-1.0.so.0 => /lib/libusb-1.0.so.0 (0xb2cdf000)
	libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb2cd9000)
	liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0xb2c62000)
	libogg.so.0 => /usr/lib/libogg.so.0 (0xb2c5a000)
Comment 19 Philip Johnsson 2011-05-04 23:23:43 UTC
Yes this is the core of the problem. I'm not sure if it is possible to have
some kind of check in digikam if usb is initiated or not as this is the only
application that have this problem that i know of.

The problem happens if opencv is built with libdc1394 support. If opencv is
built without libdc1394 then libgphoto2 works with digikam and doesn't
crash. So it's the combination opencv with libdc1394, libgphoto2 and digikam
or maybe opencv and libgphoto2 that gives crashes with usb initiation. I
guess that opencv is built without libdc1394 support/dependency on fedora
and mandriva?!

So my question is: is this a upstream problem for opencv, libgphoto2 or
digikam or a packaging problem that must turn off libdc1394 support in
opencv for all possible application to use it?

/Philip


On Wed, May 4, 2011 at 8:47 AM, Pierre Hanser <hanser@club-internet.fr>wrote:

> https://bugs.kde.org/show_bug.cgi?id=268267
>
>
> Pierre Hanser <hanser@club-internet.fr> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                 CC|                            |hanser@club-internet.fr
>
>
>
>
> --- Comment #18 from Pierre Hanser <hanser club-internet fr>  2011-05-04
> 08:47:21 ---
> I think the problem may come through the following path
>
>    libkface -> libopencv -> gstreamer -> libdc1394
>
> libopencv may be linked with gstreamer which calls 1394 functions.
>
> the problem exist because there are public definitions duplicated between
> libusb and libdc1394
>
> $ nm -D /usr/lib/libusb.so|grep usb_init
> 00001180 T usb_init
>
> $ nm -D /usr/lib/libdc1394.so.22.1.4|grep usb_init
>         U libusb_init
> 0001f8d0 T usb_init
>
> ubuntu uses an version 1 of libdc1394 where a version 2 exists
>
>
>
> if you look at libkface included libraries, there are a large list which
> includes everything
> to do audio and video
>
> $ ldd build-11.04/lib/libkface.so
>    linux-gate.so.1 =>  (0xb77aa000)
>    libkdecore.so.5 => /usr/lib/libkdecore.so.5 (0xb74e8000)
>    libkdeui.so.5 => /usr/lib/libkdeui.so.5 (0xb713e000)
>    libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb66bf000)
>    libcxcore.so.2.1 => /usr/lib/libcxcore.so.2.1 (0xb64fe000)
>    libcv.so.2.1 => /usr/lib/libcv.so.2.1 (0xb6226000)
>    libml.so.2.1 => /usr/lib/libml.so.2.1 (0xb61c5000)
>    libhighgui.so.2.1 => /usr/lib/libhighgui.so.2.1 (0xb6188000)
>    libcvaux.so.2.1 => /usr/lib/libcvaux.so.2.1 (0xb605d000)
>    libQtDBus.so.4 => /usr/lib/libQtDBus.so.4 (0xb5fe6000)
>    libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb5d54000)
>    libQtSvg.so.4 => /usr/lib/libQtSvg.so.4 (0xb5d00000)
>    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb5c15000)
>    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb5bef000)
>    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb5a8d000)
>    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb5a71000)
>    libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xb5947000)
>    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb5932000)
>    libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb5921000)
>    liblzma.so.2 => /usr/lib/liblzma.so.2 (0xb58fe000)
>    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb58e5000)
>    libSM.so.6 => /usr/lib/i386-linux-gnu/libSM.so.6 (0xb58dd000)
>    libICE.so.6 => /usr/lib/i386-linux-gnu/libICE.so.6 (0xb58c5000)
>    libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb57aa000)
>    libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb5768000)
>    libattica.so.0 => /usr/lib/libattica.so.0 (0xb56c5000)
>    libdbusmenu-qt.so.2 => /usr/lib/libdbusmenu-qt.so.2 (0xb5693000)
>    libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xb5689000)
>    libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1
> (0xb565a000)
>    libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb5642000)
>    libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xb556b000)
>    libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb5546000)
>    libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6
> (0xb54c0000)
>    libgobject-2.0.so.0 => /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
> (0xb5479000)
>    libXi.so.6 => /usr/lib/i386-linux-gnu/libXi.so.6 (0xb5469000)
>    libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb545a000)
>    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb5456000)
>    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb544d000)
>    liblapack.so.3gf => /usr/lib/liblapack.so.3gf (0xb4c80000)
>    libjpeg.so.62 => /usr/lib/i386-linux-gnu/libjpeg.so.62 (0xb4c5f000)
>    libtiff.so.4 => /usr/lib/i386-linux-gnu/libtiff.so.4 (0xb4c04000)
>    libjasper.so.1 => /usr/lib/i386-linux-gnu/libjasper.so.1 (0xb4bb8000)
>    libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb47df000)
>    libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb4746000)
>    libatk-1.0.so.0 => /usr/lib/i386-linux-gnu/libatk-1.0.so.0 (0xb4729000)
>    libgio-2.0.so.0 => /usr/lib/i386-linux-gnu/libgio-2.0.so.0 (0xb4626000)
>    libpangoft2-1.0.so.0 => /usr/lib/i386-linux-gnu/libpangoft2-1.0.so.0
> (0xb45fe000)
>    libpangocairo-1.0.so.0 => /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0
> (0xb45f2000)
>    libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb45d5000)
>    libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb4521000)
>    libpango-1.0.so.0 => /usr/lib/i386-linux-gnu/libpango-1.0.so.0
> (0xb44e1000)
>    libgmodule-2.0.so.0 => /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0
> (0xb44dd000)
>    libgthread-2.0.so.0 => /usr/lib/i386-linux-gnu/libgthread-2.0.so.0
> (0xb44d8000)
>    libavcodec.so.52 => /usr/lib/i686/cmov/libavcodec.so.52 (0xb3b32000)
>    libavformat.so.52 => /usr/lib/i686/cmov/libavformat.so.52 (0xb3a5f000)
>    libavutil.so.50 => /usr/lib/i686/cmov/libavutil.so.50 (0xb3a4b000)
>    libswscale.so.0 => /usr/lib/i686/cmov/libswscale.so.0 (0xb39ef000)
>    libdc1394.so.22 => /usr/lib/libdc1394.so.22 (0xb397e000)
>    libdbus-1.so.3 => /lib/i386-linux-gnu/libdbus-1.so.3 (0xb3941000)
>    /lib/ld-linux.so.2 (0xb77ab000)
>    libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xb393b000)
>    libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb3922000)
>    libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb38f8000)
>    libXt.so.6 => /usr/lib/i386-linux-gnu/libXt.so.6 (0xb38a6000)
>    libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb38a1000)
>    libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb3862000)
>    libblas.so.3gf => /usr/lib/libblas.so.3gf (0xb3562000)
>    libgfortran.so.3 => /usr/lib/i386-linux-gnu/libgfortran.so.3
> (0xb34a7000)
>    libXcomposite.so.1 => /usr/lib/i386-linux-gnu/libXcomposite.so.1
> (0xb34a3000)
>    libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xb349e000)
>    libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xb3498000)
>    libXinerama.so.1 => /usr/lib/i386-linux-gnu/libXinerama.so.1
> (0xb3494000)
>    libXrandr.so.2 => /usr/lib/i386-linux-gnu/libXrandr.so.2 (0xb348c000)
>    libXcursor.so.1 => /usr/lib/i386-linux-gnu/libXcursor.so.1 (0xb3482000)
>    libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xb346c000)
>    libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0xb3451000)
>    libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb33e5000)
>    libxcb-shm.so.0 => /usr/lib/i386-linux-gnu/libxcb-shm.so.0 (0xb33e1000)
>    libxcb-render.so.0 => /usr/lib/i386-linux-gnu/libxcb-render.so.0
> (0xb33d9000)
>    libva.so.1 => /usr/lib/libva.so.1 (0xb33b0000)
>    libdirac_encoder.so.0 => /usr/lib/libdirac_encoder.so.0 (0xb3326000)
>    libfaad.so.2 => /usr/lib/libfaad.so.2 (0xb32e7000)
>    libgsm.so.1 => /usr/lib/libgsm.so.1 (0xb32d9000)
>    libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0xb3264000)
>    libopenjpeg.so.2 => /usr/lib/libopenjpeg.so.2 (0xb3244000)
>    libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0
> (0xb31a2000)
>    libspeex.so.1 => /usr/lib/sse2/libspeex.so.1 (0xb3185000)
>    libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1 (0xb3141000)
>    libtheoradec.so.1 => /usr/lib/libtheoradec.so.1 (0xb3127000)
>    libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb2fae000)
>    libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb2f87000)
>    libvpx.so.0 => /usr/lib/libvpx.so.0 (0xb2eed000)
>    libx264.so.106 => /usr/lib/i686/sse2/libx264.so.106 (0xb2e09000)
>    libxvidcore.so.4 => /usr/lib/libxvidcore.so.4 (0xb2cfb000)
>    libraw1394.so.11 => /usr/lib/libraw1394.so.11 (0xb2cec000)
>    libusb-1.0.so.0 => /lib/libusb-1.0.so.0 (0xb2cdf000)
>    libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb2cd9000)
>    liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0xb2c62000)
>    libogg.so.0 => /usr/lib/libogg.so.0 (0xb2c5a000)
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug.
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel@kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
Comment 20 Pierre Hanser 2011-05-05 06:53:05 UTC
I think the core of the problem is in libdc1394: looking at the code,
it looks like it can use various internal backends, one of which being
usb. So the symbol usb_init is not intended to be public! The library
leaks internal symbol...

There are various solutions, one which which is not a real solution
but which involves only digikam would be to have libusb early on
the link line; as libraries are guaranteed to be searched from left 
to right. basically it's what the LD_PRELOAD trick does, but at run
time.

It would imply modifying the link of digikam, but also of showfoto
and may be other binaries I am not aware of.
Comment 21 Jacob R 2011-05-26 11:37:13 UTC
I have the same problem using digikam 2.0 beta5 on openSUSE with the packages in http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/openSUSE_11.4/

Downgraded to 1.9 as supplied in KDE core and it works.
Comment 22 caulier.gilles 2011-05-26 11:41:45 UTC
To Philip #19 : Mandriva crash too when i try to open my Samsung phone by PTP Gphoto driver. Same backtrace.

Gilles Caulier
Comment 23 caulier.gilles 2011-05-26 11:45:50 UTC
To Pierre #20 : Perhaps we can solve this issue to fix the linking parts from OpenCV used in libkface.

The openCV part which use libdc1394 is not used in libkface. Currently, if i understand fine libkface OpenCV linking rules, all OpenCV parts are linked with libkface.

This can be a solution to limit to wanted openCV parts in libkface linking rules ?

Gilles Caulier
Comment 24 caulier.gilles 2011-06-07 14:53:08 UTC
I can reproduce now the problem on my computer. It very simple to reproduce, outside cameragui: Go to digiKam setup, camera section and try to add a new camera manually, or to perform an auto detection.
Comment 25 caulier.gilles 2011-06-07 14:56:30 UTC
I make investiguations around libkface/openCV linking. Currently libkface is linked to OpenCV using CV, CVCORE, CVAUX, and HIGHGUI components. It can be linked using only CVAUX alone.

Compilation is under progress. I will see if this will remove libdc1394 depency to libkface and prevent crash with gphoto2.

Gilles Caulier
Comment 26 caulier.gilles 2011-06-07 15:08:44 UTC
Same problem if libkface is linked only with CVAUX opencv component :

#0  0xb4d29a96 in mem2chunk_check () from /lib/i686/libc.so.6
#1  0xb4d2f61d in realloc_check () from /lib/i686/libc.so.6
#2  0xb4d2f0b6 in realloc () from /lib/i686/libc.so.6
#3  0xb24fc46e in register_platform () from /usr/lib/libdc1394.so.22
#4  0xb251629f in usb_init () from /usr/lib/libdc1394.so.22
#5  0xa68a8047 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#6  0xb7265e44 in ?? () from /usr/lib/libgphoto2_port.so.0
#7  0xb3d63d28 in ?? () from /usr/lib/libltdl.so.7
#8  0xb3d638ea in ?? () from /usr/lib/libltdl.so.7
#9  0xb3d639a6 in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#10 0xb7265d12 in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
#11 0x083b0bdd in Digikam::GPCamera::getSupportedPorts (plist=...)
    at /mnt/data/Devel/GIT/2.x/core/utilities/cameragui/devices/gpcamera.cpp:1553
#12 0x08133148 in Digikam::CameraSelection::getSerialPortList (this=0xac00e98)
    at /mnt/data/Devel/GIT/2.x/core/utilities/setup/cameraselection.cpp:406
#13 0x081327e4 in Digikam::CameraSelection::CameraSelection (this=0xac00e98, parent=0x0)
    at /mnt/data/Devel/GIT/2.x/core/utilities/setup/cameraselection.cpp:285
#14 0x0812d825 in Digikam::SetupCamera::slotAddCamera (this=0xa9f2080)
    at /mnt/data/Devel/GIT/2.x/core/utilities/setup/setupcamera.cpp:320
#15 0x0812a9ff in Digikam::SetupCamera::qt_metacall (this=0xa9f2080, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfffc908)
    at /mnt/data/Devel/GIT/2.x/core/digikam/setupcamera.moc:87

This is an indeep incompatibility between opencv and libgphoto2, through libdc1394. This cannot be fixed into digiKam or libkface (excepted if i import only relevant opencv code myself in libkface, which i will never do of course)

This problem must be _URGENTLY_ reported to libdc1394 and opencv (and perhaps gphoto2) projects to find the right solution.

Gilles Caulier
Comment 27 caulier.gilles 2011-06-08 09:02:22 UTC
@Pierre #20 :

How to specify in cmake to preload libusb on the right way for digiKam, using LD_PRELOAD ?

Gilles Caulier
Comment 28 caulier.gilles 2011-06-08 12:32:02 UTC
To Philip, #19 : I can confirm that if i compile myself opencv with libdc1394 support, Gphoto2 do not crash into digiKam.

My system is Mandriva 2012.0

Gilles Caulier
Comment 29 caulier.gilles 2011-06-08 12:33:54 UTC
Nicolas,

If it's possible, make OpenCV for Mandriva without libdc1394 support, until we found a better way to fix this problem. There is just an option to turn off in cmake configuration...

Gilles Caulier
Comment 30 Pierre Hanser 2011-06-08 16:40:43 UTC
Le 08/06/2011 09:02, Gilles Caulier a écrit :
> 
> https://bugs.kde.org/show_bug.cgi?id=268267
> 
> 
> 
> 
> 
> --- Comment #27 from Gilles Caulier <caulier gilles gmail com>  2011-06-08 09:02:22 ---
> @Pierre #20 :
> 
> How to specify in cmake to preload libusb on the right way for digiKam, using
> LD_PRELOAD ?
> 
> Gilles Caulier
> 

i would like to help but does not know cmake.
i will have a look but do not expect too much on my side
sorry
Comment 31 Pierre Hanser 2011-06-08 17:52:21 UTC
a quick and dirty solution is to modify   core/digikam/CMakeLists.txt

if you add explicitly libusb in the list of libs in libdigikamcore you solve the problem
for all programs using it (digikam and showfoto)

around line 72

ADD_DEPENDENCIES(digikamcore digikam-gitversion)

TARGET_LINK_LIBRARIES(digikamcore
        /usr/lib/libusb.so
        ${QT_QT3SUPPORT_LIBRARY}
        ${QT_QTSQL_LIBRARY}

        ${KDE4_KDECORE_LIBS}
 
works on Ubuntu 11.04

At least modification is in the right file I think...
Comment 32 caulier.gilles 2011-06-08 19:04:20 UTC
Pierre,

Thanks for the informations. I will test on my computer and use the right cmake way to link digiKam & co with libusb.

Gilles Caulier
Comment 33 Marcel Wiesweg 2011-06-11 16:20:34 UTC
*** Bug 274807 has been marked as a duplicate of this bug. ***
Comment 34 caulier.gilles 2011-06-15 19:05:05 UTC
*** Bug 275750 has been marked as a duplicate of this bug. ***
Comment 35 caulier.gilles 2011-06-16 17:41:39 UTC
Git commit 5c8ae642eb0443b68a14716d3c27d66b3e71b705 by Gilles Caulier.
Committed on 16/06/2011 at 17:40.
Pushed by cgilles into branch 'master'.

add libusb as linking dependency for gphoto2 library to prevent crash at libgphoto2 init when OpenCV library is linked against libdc1394.
BUGS: 268267

M  +11   -6    CMakeLists.txt     
M  +8    -7    README     
M  +6    -0    digikam/CMakeLists.txt     

http://commits.kde.org/digikam/5c8ae642eb0443b68a14716d3c27d66b3e71b705
Comment 36 onigino 2011-06-18 03:49:03 UTC
Created attachment 61103 [details]
New crash information added by DrKonqi

digikam (2.0.0-rc) on KDE Platform 4.6.4 (4.6.4) using Qt 4.7.0

- What I was doing when the application crashed:

Well, still has a bug... i just compiled from git today... with libkdcraw and kipi-plugins from git as well..

-- Backtrace (Reduced):
#6  tre_free (preg=0x7f7dfbc73b80) at /home/grey/Downloads/digikam/libs/3rdparty/regex/tre-compile.c:2232
#7  0x00007f7e32645966 in gp_port_info_list_lookup_path () from /usr/lib64/libgphoto2_port.so.0
#8  0x000000000073fc57 in Digikam::GPCamera::doConnect (this=0x3614e40) at /home/grey/Downloads/digikam/utilities/cameragui/devices/gpcamera.cpp:209
#9  0x00000000007724df in Digikam::CameraController::executeCommand (this=0x36b95d0, cmd=<value optimized out>) at /home/grey/Downloads/digikam/utilities/cameragui/controller/cameracontroller.cpp:407
#10 0x000000000077c1f9 in Digikam::CameraController::run (this=0x36b95d0) at /home/grey/Downloads/digikam/utilities/cameragui/controller/cameracontroller.cpp:392
Comment 37 caulier.gilles 2011-06-18 09:38:07 UTC
I cannot reproduce the crash here, under Linux and MACOSX. Take a care to make a fresh checkout of source code without any compilation cache.

Gilles Caulier
Comment 38 onigino 2011-06-18 10:03:57 UTC
Thanks for all your help Gilles..

Do you see any reason I should suspect packages outside of digikam? should i recompile gphoto2 or anything else??

I recompiled, but still getting this error.. I also see this in the console output.. i'll try recompiling gstreamer as well..
QPainter::fontMetrics: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::fontMetrics: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
KCrash: Application 'digikam' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/grey/.kde/socket-greyblue/kdeinit4__0
QSocketNotifier: Invalid socket 18 and type 'Read', disabling...
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
digikam: Fatal IO error: client killed

(<unknown>:17003): GStreamer-WARNING **: gstsystemclock: write control failed in wakeup_async, trying again : 9:Bad file descriptor
Comment 39 caulier.gilles 2011-06-18 10:13:07 UTC
GreyBones,

I don't recompile OpenCV and Gphoto2 to kill this crash. I just apply my previous patch, used offical OpenCV and Gphoto2 from Mandriva repository (OpenCV compiled with libdc1394 support), and now digiKam do not crash when Gphoto2 API is called.

Note : at startup, i can see that digiKam try to init libdc1394 now, which prevent conflict between OpenCV and Gphoto2 :


[gilles@localhost 2.x]$ digikam
libdc1394 error: Failed to initialize libdc1394
digikam(468)/digikam (core) Digikam::AlbumManager::setDatabase: DatabaseParameters: [ Type "QSQLITE", Name "/media/win_d/Photos/digikam4.db" (Thumbnails Name "/media/win_d/Photos/thumbnails-digikam.db"); ]
QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is still in use, all queries will cease to work.
digikam(468)/digikam (core) Digikam::DatabaseConfigElementLoader::readConfig: Loading SQL code from config file "/usr/share/apps/digikam/database/dbconfig.xml"
digikam(468)/digikam (core) Digikam::DatabaseConfigElementLoader::readConfig: false "1" 1 1
digikam(468)/digikam (core) Digikam::SchemaUpdater::update: SchemaUpdater update
digikam(468)/digikam (core) Digikam::SchemaUpdater::startUpdates: Have a database structure version  6
digikam(468)/digikam (core) Digikam::SchemaUpdater::makeUpdates: makeUpdates  6  to  6
digikam(468)/digikam (core) Digikam::AlbumRootLocation::AlbumRootLocation: Creating new Location  "/Photos"  uuid  "volumeid:?uuid=f4900df5900dbf5c"
digikam(468)/digikam (core) Digikam::CollectionManager::updateLocations: location for  "/media/win_d/Photos"  is available  true
digikam(468)/digikam (core) Digikam::LoadingCache::setCacheSize: Allowing a cache size of 144 MB
digikam(468)/digikam (core) Digikam::ThumbnailSchemaUpdater::startUpdates: Have a database structure version  "2"
digikam(468)/digikam (core) Digikam::ThumbnailLoadThread::initializeThumbnailDatabase: Thumbnail db ready for use
digikam(468)/digikam (core) Digikam::AlbumManager::checkNepomukService: digikamnepomukservice is not available in NepomukServer
digikam(468)/digikam (core) Digikam::CollectionScanner::completeHistoryScanning: items to tag ()
digikam(468)/digikam (core) Digikam::CollectionScanner::completeScan: Complete scan took: 6154 msecs.
digikam(468)/digikam (core) Digikam::IccSettings::IccSettingsPriv::scanDirectories: ("/usr/share/color/icc")
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: (Digikam::AlbumFolderViewSideBarWidget(0x94bde50, name = "AlbumFolderView Sidebar") ,  Digikam::TagViewSideBarWidget(0x95186a0, name = "TagView Sidebar") ,  Digikam::DateFolderViewSideBarWidget(0x952cf40, name = "DateFolderView Sidebar") ,  Digikam::TimelineSideBarWidget(0x953a218, name = "TimeLine Sidebar") ,  Digikam::SearchSideBarWidget(0x9518600, name = "Search Sidebar") ,  Digikam::FuzzySearchSideBarWidget(0x9561228, name = "Fuzzy Search Sidebar") ,  Digikam::GPSSearchSideBarWidget(0x95bf7c0, name = "GPS Search Sidebar") ,  Digikam::PeopleSideBarWidget(0x9600558, name = "People Sidebar") )
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: "browse_album" "AlbumFolderView Sidebar"
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: "browse_tag" "TagView Sidebar"
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: "browse_date" "DateFolderView Sidebar"
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: "browse_timeline" "TimeLine Sidebar"
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: "browse_search" "Search Sidebar"
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: "browse_fuzzysearch" "Fuzzy Search Sidebar"
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: "browse_gpssearch" "GPS Search Sidebar"
digikam(468)/digikam (core) Digikam::DigikamApp::setupActions: "browse_people" "People Sidebar"
digikam(468)/digikam (core) Digikam::ThemeManager::slotChangePalette: ""
digikam(468)/digikam (core) Digikam::ThemeManager::slotChangePalette: ""
digikam(468)/digikam (core) Digikam::ThemeManager::slotChangePalette: ""

... look the first line at startup. You must see the same. My patch just link digiKam with libusb when Gphoto2 support is enabled. OpenCV is always used with digiKam 2.0.0, for face detection support (it's not optional)

Gilles Caulier
Comment 40 Marcel Wiesweg 2011-07-26 18:32:54 UTC
*** Bug 278336 has been marked as a duplicate of this bug. ***
Comment 41 caulier.gilles 2011-08-05 15:16:44 UTC
*** Bug 279458 has been marked as a duplicate of this bug. ***
Comment 42 Anders Lund 2011-08-05 15:48:45 UTC
Is there a fix for this on the way? I will report to archlinux packagers, maybe they can disable libdc1394 support in OpenCV.

for now, downloading in cli with gphoto2 does not exacely feel professional ;)
Comment 43 Anders Lund 2011-08-05 16:07:02 UTC
Uhm, what is required to make this work? This is marked as fixed, but where lies the fix?
Comment 44 onigino 2011-08-05 16:08:59 UTC
The most current git is supposed to be fixed, but mine still crashed
too.. I think it's an opencv and 1394 issue, but no release of either
I have tried seems to resolve the issue..



On Aug 5, 2011, at 9:07 AM, Anders Lund <anders@alweb.dk> wrote:

> https://bugs.kde.org/show_bug.cgi?id=268267
>
>
>
>
>
> --- Comment #43 from Anders Lund <anders alweb dk>  2011-08-05 16:07:02 ---
> Uhm, what is required to make this work? This is marked as fixed, but where
> lies the fix?
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
Comment 45 Pierre Hanser 2011-08-05 20:19:49 UTC
fix is in the link commands where the order of the libraries has been modified to garantee than libusb is linked before libdc1394.

This should avoid that the function usb_init from libusb si called instead of the one from libdc1394.

please use ldd command on the binary to see if this is really the case.

if libusb is before libdc1394 there is an other problem.

if it is after, this problem should be solved first
Comment 46 caulier.gilles 2011-08-05 22:34:21 UTC
*** Bug 279111 has been marked as a duplicate of this bug. ***
Comment 47 Anders Lund 2011-08-06 08:15:18 UTC
As can be seen below, the linking order seems to be the problem.

[anders@katja ~]$ ldd /usr/lib/libopencv_contrib.so 
        linux-gate.so.1 =>  (0xb77cb000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb774c000)
        libopencv_core.so.2.3 => /usr/lib/libopencv_core.so.2.3 (0xb7569000)
        libopencv_imgproc.so.2.3 => /usr/lib/libopencv_imgproc.so.2.3 (0xb7309000)
        libopencv_calib3d.so.2.3 => /usr/lib/libopencv_calib3d.so.2.3 (0xb7258000)
        libopencv_highgui.so.2.3 => /usr/lib/libopencv_highgui.so.2.3 (0xb720e000)
        libm.so.6 => /lib/libm.so.6 (0xb71e4000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb70f6000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb70d9000)
        libc.so.6 => /lib/libc.so.6 (0xb6f71000)
        /lib/ld-linux.so.2 (0xb77cc000)
        librt.so.1 => /lib/librt.so.1 (0xb6f68000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb6f52000)
        libopencv_features2d.so.2.3 => /usr/lib/libopencv_features2d.so.2.3 (0xb6e5f000)
        libopencv_flann.so.2.3 => /usr/lib/libopencv_flann.so.2.3 (0xb6e58000)
        libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0xb6e07000)
        libpng14.so.14 => /usr/lib/libpng14.so.14 (0xb6ddb000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb6d80000)
        libjasper.so.1 => /usr/lib/libjasper.so.1 (0xb6d34000)
        libIlmImf.so.6 => /usr/lib/libIlmImf.so.6 (0xb6c6e000)
        libHalf.so.6 => /usr/lib/libHalf.so.6 (0xb6c2b000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb67d0000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb6721000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb66d3000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb66ce000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb65e0000)
        libgstreamer-0.10.so.0 => /usr/lib/libgstreamer-0.10.so.0 (0xb64f9000)
        libgstapp-0.10.so.0 => /usr/lib/libgstapp-0.10.so.0 (0xb64ed000)
        libgstvideo-0.10.so.0 => /usr/lib/libgstvideo-0.10.so.0 (0xb64e0000)
        libavcodec.so.52 => /usr/lib/libavcodec.so.52 (0xb5963000)
        libavformat.so.52 => /usr/lib/libavformat.so.52 (0xb585f000)
        libavutil.so.50 => /usr/lib/libavutil.so.50 (0xb583d000)
        libswscale.so.0 => /usr/lib/libswscale.so.0 (0xb57fc000)
        libdc1394.so.22 => /usr/lib/libdc1394.so.22 (0xb578a000)
        libxine.so.1 => /usr/lib/libxine.so.1 (0xb5734000)
        libv4l1.so.0 => /usr/lib/libv4l1.so.0 (0xb572e000)
        libImath.so.6 => /usr/lib/libImath.so.6 (0xb5728000)
        libIex.so.6 => /usr/lib/libIex.so.6 (0xb5710000)
        libIlmThread.so.6 => /usr/lib/libIlmThread.so.6 (0xb5709000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb56fd000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb55c7000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb55c2000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb55a3000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb5502000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb54e0000)
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb53b4000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb5388000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb533f000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb5310000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb530c000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb52fa000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb52f2000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb52ef000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb52df000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb52d7000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb52cd000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb52ca000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb52c7000)
        libpcre.so.0 => /lib/libpcre.so.0 (0xb5289000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb5162000)
        libdl.so.2 => /lib/libdl.so.2 (0xb515d000)
        libgstbase-0.10.so.0 => /usr/lib/libgstbase-0.10.so.0 (0xb5105000)
        libva.so.1 => /usr/lib/libva.so.1 (0xb50da000)
        libxvidcore.so.4 => /usr/lib/libxvidcore.so.4 (0xb4fba000)
        libx264.so.115 => /usr/lib/libx264.so.115 (0xb4ee3000)
        libvpx.so.0 => /usr/lib/libvpx.so.0 (0xb4e3e000)
        libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb4cc8000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb4ca2000)
        libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1 (0xb4c5e000)
        libtheoradec.so.1 => /usr/lib/libtheoradec.so.1 (0xb4c45000)
        libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0 (0xb4b91000)
        libopenjpeg.so.2 => /usr/lib/libopenjpeg.so.2 (0xb4b74000)
        libopencore-amrwb.so.0 => /usr/lib/libopencore-amrwb.so.0 (0xb4b5f000)
        libopencore-amrnb.so.0 => /usr/lib/libopencore-amrnb.so.0 (0xb4b33000)
        libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0xb4abf000)
        librtmp.so.0 => /usr/lib/librtmp.so.0 (0xb4aa6000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb4a96000)
        libraw1394.so.11 => /usr/lib/libraw1394.so.11 (0xb4a89000)
        libusb-1.0.so.0 => /usr/lib/libusb-1.0.so.0 (0xb4a7d000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb4a65000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb4a4c000)
        libv4l2.so.0 => /usr/lib/libv4l2.so.0 (0xb4a41000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb49a8000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb498a000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb4907000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb48df000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0xb48d9000)
        liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0xb484e000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb47fd000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb4683000)
        libv4lconvert.so.0 => /usr/lib/libv4lconvert.so.0 (0xb460c000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb4609000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb4604000)
[anders@katja ~]$ 

I will make the archlinux digikam packager aware of this bug, is there anything more I can do?
Comment 48 caulier.gilles 2011-08-06 08:41:35 UTC
To solve this issue on my computer in the past, i forced libusb to be initialized at startup of digiKam. Yes, linking order is important here.

When you start digiKam from a console, do you see this line :


[gilles@localhost build]$ digikam
libdc1394 error: Failed to initialize libdc1394                    <==========
digikam(27438)/digikam (core) Digikam::AlbumManager::setDatabase: DatabaseParameters: [ Type "QSQLITE", Name "/media/win_d/Photos/digikam4.db" (Thumbnails Name "/media/win_d/Photos/thumbnails-digikam.db"); ]
QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is still in use, all queries will cease to work.
digikam(27438)/digikam (core) Digikam::DatabaseConfigElementLoader::readConfig: Loading SQL code from config file "/usr/share/apps/digikam/database/dbconfig.xml"
digikam(27438)/digikam (core) Digikam::DatabaseConfigElementLoader::readConfig: false "1" 1 1
digikam(27438)/digikam (core) Digikam::SchemaUpdater::update: SchemaUpdater update
digikam(27438)/digikam (core) Digikam::SchemaUpdater::startUpdates: Have a database structure version  6
digikam(27438)/digikam (core) Digikam::SchemaUpdater::makeUpdates: makeUpdates  6  to  6
^C

Do you have a dc1394 device on your computer. I don't have one, and digiKam do not crash.

Gilles Caulier
Comment 50 Marcel Wiesweg 2011-08-08 09:31:27 UTC
*** Bug 279616 has been marked as a duplicate of this bug. ***
Comment 51 caulier.gilles 2011-08-08 10:02:16 UTC
*** Bug 279646 has been marked as a duplicate of this bug. ***
Comment 52 Robet Piasek 2011-08-12 09:33:02 UTC
Created attachment 62770 [details]
New crash information added by DrKonqi

digikam (2.0.0) on KDE Platform 4.7.00 (4.7.0) using Qt 4.7.3

- What I was doing when the application crashed:

Selected Import and clicked on my camera.

-- Backtrace (Reduced):
#7  0x00007f69df655101 in register_platform () from /usr/lib64/libdc1394.so.22
#8  0x00007f6981db8895 in gp_port_library_list (list=0x7f69c4051820) at libusb.c:94
#9  0x00007f69ee9ec788 in foreach_func (filename=0x7f69c4062935 "/usr/lib64/libgphoto2_port/0.8.0/usb", data=0x7f69c4051820) at gphoto2-port-info-list.c:243
#10 0x00007f69ea5691c1 in foreachfile_callback () from /usr/lib64/libltdl.so.7
#11 0x00007f69ea5687cf in foreach_dirinpath () from /usr/lib64/libltdl.so.7
Comment 53 hamelg 2011-08-18 18:45:42 UTC
(In reply to comment #45)
> if it is after, this problem should be solved first

launching digikam like that still crashing :

LD_PRELOAD=/usr/lib/libusb-1.0.so digikam --download-from-udi /org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.4

-- Backtrace (Reduced):
#7  0xb47fca36 in realloc () from /lib/libc.so.6
#8  0xb1654041 in register_platform () from /usr/lib/libdc1394.so.22
#9  0xb1667691 in usb_init () from /usr/lib/libdc1394.so.22
#10 0xa5abbe5c in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#11 0xb4782872 in ?? () from /usr/lib/libgphoto2_port.so.0
#12 0xb37015b0 in ?? () from /usr/lib/libltdl.so.7
Comment 54 hamelg 2011-08-18 19:01:23 UTC
(In reply to comment #53)
> (In reply to comment #45)
> > if it is after, this problem should be solved first
> 
> launching digikam like that still crashing :
> 
> LD_PRELOAD=/usr/lib/libusb-1.0.so digikam --download-from-udi
> /org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.4
> 

However, if I preload the libusb v0.1, it fixes the crash :
LD_PRELOAD=/usr/lib/libusb-0.1.so.4 digikam --download-from-udi /org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.4
Comment 55 caulier.gilles 2011-08-19 07:56:29 UTC
*** Bug 280396 has been marked as a duplicate of this bug. ***
Comment 56 caulier.gilles 2011-08-19 15:35:02 UTC
*** Bug 269626 has been marked as a duplicate of this bug. ***
Comment 57 caulier.gilles 2011-08-22 07:28:40 UTC
*** Bug 280557 has been marked as a duplicate of this bug. ***
Comment 58 caulier.gilles 2011-08-23 07:19:30 UTC
*** Bug 280604 has been marked as a duplicate of this bug. ***
Comment 59 caulier.gilles 2011-08-26 10:00:50 UTC
Git commit 772f592f639f52d0c1a991265098b46672fecb6e by Gilles Caulier.
Committed on 26/08/2011 at 11:58.
Pushed by cgilles into branch 'master'.

Fix order to link gphoto2 library with digiKam shared lib. This must be the last on linker command line...
CCBUGS: 258931
CCBUGS: 268267

M  +3    -1    digikam/CMakeLists.txt

http://commits.kde.org/digikam/772f592f639f52d0c1a991265098b46672fecb6e
Comment 60 caulier.gilles 2011-08-26 10:03:59 UTC
Someby in this room who can reproduce the crash due to uncompatibility between gphoto2 and openCV can check if my last commit (see #59) fix the problem ?

I cannot reproduce since a long time now this crash. So i cannot hack better...

Thanks in advance

Gilles Caulier
Comment 61 Andreas K. Huettel 2011-08-26 11:33:03 UTC
Gilles, Robert,
I'll backport the commit to Gentoo digikam-2.0.0 tonight. We'll hopefully see then...
Comment 62 Andreas K. Huettel 2011-08-26 19:48:19 UTC
(In reply to comment #61)
> Gilles, Robert,
> I'll backport the commit to Gentoo digikam-2.0.0 tonight. We'll hopefully see
> then...

and is in Gentoo media-gfx/digikam-2.0.0-r1. please test!
Comment 63 Thomas Caswell 2011-08-27 02:21:09 UTC
> --- Comment #60 from Gilles Caulier <caulier gilles gmail com>  2011-08-26
> 10:03:59 --- Someby in this room who can reproduce the crash due to
> uncompatibility between gphoto2 and openCV can check if my last commit (see
> #59) fix the problem ?
> 

It still crashes on gphoto init, and LD_PRELOAD still fixes it.

Even moving the libusb linking command to be the first link command that cmake 
sees does not seem to help.  Poking at it a bit, the highgui library from 
opencv links to libraw1394 and libusb, in that order. 

I tried to prevent linking to highgui, but libface uses it.

I also tried linking libusb in to kface and redeye_plugin before they link to 
opencv, but it does not seem to make any difference.

I suspect what is going on is that because libusb is already linked into 
highgui.so, even though libusb is on the list, it doesn't get re-linked. 

If I have time tomorrow I am going to compile opencv and change the link order 
there.
Comment 64 hamelg 2011-08-27 14:28:31 UTC
(In reply to comment #63)
> I suspect what is going on is that because libusb is already linked into 
> highgui.so, even though libusb is on the list, it doesn't get re-linked. 

Hello,

You can check where usb_init() comes from by setting this environment variable :
LD_DEBUG=bindings
Comment 65 hamelg 2011-08-27 14:45:23 UTC
is it possible to change the resolution state to REOPEN ?
This issue is not fixed ...
Comment 66 caulier.gilles 2011-08-27 15:49:23 UTC
If you read the story, you will see that i have been able to reproduce the problem on my Mageia Linux computer. I FIXED that.

Now, i cannot reproduce it.

The question why the problem still exist with some other distro...

Gilles Caulier
Comment 67 Thomas Caswell 2011-08-27 16:05:03 UTC
re #64

Here are the relevant lines with and with out LD_PRELOAD

with (works properly): 
     21105:     binding file /usr/lib/libgphoto2_port/0.8.0/usb.so [0] to 
/usr/lib/libusb.so [0]: normal symbol `usb_init'


with out (crashes):
     21068:     binding file /usr/lib/libgphoto2_port/0.8.0/usb.so [0] to 
/usr/lib/libdc1394.so.22 [0]: normal symbol `usb_init'


The full dumps are at http://jfi.uchicago.edu/~tcaswell/binding_dump/

sorry if this shows up twice

This is on Ubuntu oneiric (development branch)
Comment 68 hamelg 2011-08-27 21:01:09 UTC
(In reply to comment #66)
> The question why the problem still exist with some other distro...
> 

Somebody has already fixed this issue which comes from libdc1394 :
http://sourceforge.net/tracker/?func=detail&atid=308157&aid=3361405&group_id=8157

I applied the attached patch, then recompiled libdc1394.
The proposed patch definitively fixes the crash :)
Comment 69 caulier.gilles 2011-08-27 21:58:48 UTC
So, it's an UPSTREAM fix...

Gilles Caulier
Comment 70 caulier.gilles 2011-08-28 18:06:35 UTC
*** Bug 280927 has been marked as a duplicate of this bug. ***
Comment 71 jpi 2011-09-12 15:07:34 UTC
Created attachment 63587 [details]
New crash information added by DrKonqi

digikam (2.1.0) on KDE Platform 4.7.1 (4.7.1) using Qt 4.7.4

Crasshing when using "import --> camera"

-- Backtrace (Reduced):
#9  0x00007f5eb5e6f187 in register_platform (d=0x7f5ea413c6e0, dispatch=0x7f5eb6094b80, name=<value optimized out>) at control.c:2015
#10 0x00007f5e9099fec6 in gp_port_library_list (list=0x7f5ea40579b0) at libusb.c:94
#11 0x00007f5ec4cb0568 in foreach_func (filename=0x7f5ea400b365 "/usr/lib64/libgphoto2_port/0.8.0/usb", data=0x7f5ea40579b0) at gphoto2-port-info-list.c:243
#12 0x00007f5ebc596a41 in foreachfile_callback (dirname=0x7f5ea4083ad0 "/usr/lib64/libgphoto2_port/0.8.0", data1=<value optimized out>, data2=0x7f5ea40579b0) at libltdl/ltdl.c:1836
#13 0x00007f5ebc596697 in foreach_dirinpath (search_path=<value optimized out>, base_name=0x0, func=0x7f5ebc596770 <foreachfile_callback>, data1=0x7f5e9e7a0ca8, data2=0x7f5ea40579b0) at libltdl/ltdl.c:710
Comment 72 caulier.gilles 2011-09-19 10:36:44 UTC
*** Bug 282330 has been marked as a duplicate of this bug. ***
Comment 73 caulier.gilles 2011-09-21 10:08:54 UTC
*** Bug 282420 has been marked as a duplicate of this bug. ***
Comment 74 udo.wolfgramm 2011-09-21 16:16:41 UTC
Created attachment 63823 [details]
New crash information added by DrKonqi

digikam (2.1.0) on KDE Platform 4.7.1 (4.7.1) "release 8" using Qt 4.7.4

- What I was doing when the application crashed:

When I was trying to import pictures wit an usb Camera Digikam 2.1 crashes.

-- Backtrace (Reduced):
#9  0x00007f5582fd0187 in register_platform () from /usr/lib64/libdc1394.so.22
#10 0x00007f555a3f9ec6 in gp_port_library_list (list=0xbc0ea0) at libusb.c:94
#11 0x00007f5591e58568 in foreach_func (filename=0x5750d15 "/usr/lib64/libgphoto2_port/0.8.0/usb", data=0xbc0ea0) at gphoto2-port-info-list.c:243
#12 0x00007f5589713a41 in foreachfile_callback (dirname=0x52caa60 "/usr/lib64/libgphoto2_port/0.8.0", data1=<value optimized out>, data2=0xbc0ea0) at libltdl/ltdl.c:1836
#13 0x00007f5589713697 in foreach_dirinpath (search_path=<value optimized out>, base_name=0x0, func=0x7f5589713770 <foreachfile_callback>, data1=0x7fff618b19b8, data2=0xbc0ea0) at libltdl/ltdl.c:710
Comment 75 Marcel Wiesweg 2011-09-24 12:19:23 UTC
*** Bug 271047 has been marked as a duplicate of this bug. ***
Comment 76 caulier.gilles 2011-10-05 17:26:42 UTC
*** Bug 283403 has been marked as a duplicate of this bug. ***
Comment 77 caulier.gilles 2011-10-19 11:03:51 UTC
*** Bug 284447 has been marked as a duplicate of this bug. ***
Comment 78 caulier.gilles 2011-10-22 09:01:20 UTC
*** Bug 284626 has been marked as a duplicate of this bug. ***
Comment 79 engineering 2011-11-20 17:16:23 UTC
I still have this problem in Version 2.2.0 on openSUSE 12.1
Using KDE Development Platform 4.7.2 (4.7.2) "release 5". In what version of digikam is it fixed.
Comment 80 engineering 2011-11-25 07:54:55 UTC
I have found on openSUSE 12.1 that the crash only occurs when there are pictures on the camera opened in ptp mode. If the pictures are all deleted, the camera opens without a crash to show an empty directory.
Comment 81 caulier.gilles 2011-11-25 09:50:20 UTC
It's normal. PTP mode use Gphoto2 drivers, which play with libdc1394, as OpenCV do. This is why it crash...

Gilles Caulier
Comment 82 engineering 2011-11-25 20:17:17 UTC
Does this mean there is no fixed version of digiKam yet for ptp import. 
Using Gwenview works reasonably well.
Comment 83 Philip Johnsson 2011-11-26 11:13:20 UTC
I think what he meant is that the problem isn't in Digikam itself but in libdc1394 especially in combination with OpenCV that conflict how they initiate the USB connection. There is a patch for libdc1394 that fix this problem but I don't know how many dists that use the patch as the problem isn't that common in programs or use OpenCV in this way.


(In reply to comment #82)
> Does this mean there is no fixed version of digiKam yet for ptp import. 
> Using Gwenview works reasonably well.
Comment 84 caulier.gilles 2011-12-06 06:20:56 UTC
*** Bug 288310 has been marked as a duplicate of this bug. ***
Comment 85 Rodney Baker 2011-12-06 06:42:37 UTC
Updating libdc1394 fixed the problem.
Comment 86 caulier.gilles 2011-12-11 15:56:07 UTC
*** Bug 288735 has been marked as a duplicate of this bug. ***
Comment 87 caulier.gilles 2011-12-11 22:25:41 UTC
*** Bug 288763 has been marked as a duplicate of this bug. ***
Comment 88 S. Burmeister 2011-12-14 12:47:50 UTC
(In reply to comment #80)
> I have found on openSUSE 12.1 that the crash only occurs when there are
> pictures on the camera opened in ptp mode. If the pictures are all deleted, the
> camera opens without a crash to show an empty directory.

If you can reproduce the crash with openSUSE could you please open a bug at bugzilla.novell.com and refer to this bug and http://sourceforge.net/tracker/?func=detail&atid=308157&aid=3361405&group_id=8157 in order to get an updated libdc1394.
Comment 89 S. Burmeister 2011-12-14 14:17:06 UTC
According to https://build.opensuse.org/package/view_file?file=libdc1394-visibility.patch&package=libdc1394&project=openSUSE%3A12.1&rev=b46f15167efa14dffde3074a9c5abdc1 the patch is already in libdc, so it must be something different.
Comment 90 caulier.gilles 2011-12-25 20:52:52 UTC
*** Bug 289806 has been marked as a duplicate of this bug. ***
Comment 91 Maurizio Serra 2012-01-27 00:45:49 UTC
I use Digikam 2.5 and still get this error when importing photo fro my camera.

Here the bgtrack:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0xaef838c0 (LWP 9928))]

Thread 5 (Thread 0xadf95b70 (LWP 9929)):
#0  0xb77fc424 in __kernel_vsyscall ()
#1  0xb3727a5c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb48fbcfc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb4bb1cc0 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#4  0x082025e5 in ?? ()
#5  0xb4bb17b3 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6  0xb3723d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#7  0xb48ee0ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 4 (Thread 0xad794b70 (LWP 9930)):
#0  0xb33bd6d0 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0xb33be637 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0xb33bec2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb4cdab37 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#4  0xb4cab1dd in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#5  0xb4cab421 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6  0xb4bae90b in QThread::exec() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#7  0xb4c8be2d in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#8  0xb4bb17b3 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0xb3723d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#10 0xb48ee0ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 3 (Thread 0xacdffb70 (LWP 9932)):
#0  0xb77fc424 in __kernel_vsyscall ()
#1  0xb3727a5c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb48fbcfc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb4bb1cc0 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#4  0xb6b0d744 in ?? () from /usr/lib/libdigikamcore.so.2
#5  0xb4bb17b3 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6  0xb3723d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#7  0xb48ee0ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xaaf7cb70 (LWP 9933)):
#0  0xb77fc424 in __kernel_vsyscall ()
#1  0xb48df40e in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb33cd34b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb33be896 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb33bec2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb4cdab37 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6  0xb4cab1dd in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#7  0xb4cab421 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#8  0xb4bae90b in QThread::exec() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0xb4c8be2d in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#10 0xb4bb17b3 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#11 0xb3723d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb48ee0ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xaef838c0 (LWP 9928)):
[KCrash Handler]
#7  0xb488ea06 in realloc () from /lib/i386-linux-gnu/libc.so.6
#8  0xb1a5324e in register_platform () from /usr/lib/libdc1394.so.22
#9  0xb1a6689f in usb_init () from /usr/lib/libdc1394.so.22
#10 0xac5af832 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#11 0xb65e781c in ?? () from /usr/lib/libgphoto2_port.so.0
#12 0xb36e8340 in ?? () from /usr/lib/libltdl.so.7
#13 0xb36e7857 in ?? () from /usr/lib/libltdl.so.7
#14 0xb36e8ae6 in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#15 0xb65e7ca0 in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
#16 0x083a9b65 in ?? ()
#17 0x081afaf8 in ?? ()
#18 0x081b10f5 in ?? ()
#19 0x081b6d16 in ?? ()
#20 0xb4cb2b7d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#21 0xb4cbd685 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#22 0xb4cc4b52 in QObject::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#23 0xb5261c92 in QWidget::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#24 0xb568451c in QMainWindow::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#25 0xb5e395a4 in KMainWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#26 0xb5e81a02 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#27 0xb5207d84 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#28 0xb520d1d8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#29 0xb5d5d971 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#30 0xb4cac19e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#31 0xb4caff93 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#32 0xb4cb00ec in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#33 0xb4cda6a4 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#34 0xb33be25f in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#35 0xb33be990 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#36 0xb33bec2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#37 0xb4cdaada in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#38 0xb52bfe7a in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#39 0xb4cab1dd in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#40 0xb4cab421 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#41 0xb4cb019d in QCoreApplication::exec() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#42 0xb5205924 in QApplication::exec() () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#43 0x080b6984 in ?? ()
#44 0xb4835113 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#45 0x080b82f1 in _start ()
Comment 92 Steve 2012-02-01 00:31:55 UTC
I have just installed openSUSE 12.1 on another machine. I can access the images via ptp on my camera on the new machine but not the old. Both machines just updated with software update.
-rwxr-xr-x 1 root root 213856 Oct 30 16:32 /usr/lib64/libdc1394.so.22.1.5
digikam-2.2.0-3.3.2.x86_64
same on both machines. Different motherboards, all other hardware the same.
Comment 93 Philip Johnsson 2012-02-01 06:49:22 UTC
apt-get install digikam works fine for install digikam but it will not
update the kdelibs automatically as needed. The problem lies in that
some kdelib package is not updated.

What does "apt-get update && apt-get upgrade" say?

The important packages to check are libkipi8, libkdcraw20 and
libkexiv2-10 they should all (at the moment of writing this) have
package versionname as follow: 4:4.7.2-oneiric~ppa2

Check those and see if you find what is missing.

/Philip

On Wed, Feb 1, 2012 at 1:31 AM, Steve <engineering@pt-global.com> wrote:
> https://bugs.kde.org/show_bug.cgi?id=268267
>
>
> Steve <engineering@pt-global.com> changed:
>
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                 CC|                            |engineering@pt-global.com
>
>
>
>
> --- Comment #92 from Steve <engineering pt-global com>  2012-02-01 00:31:55 ---
> I have just installed openSUSE 12.1 on another machine. I can access the images
> via ptp on my camera on the new machine but not the old. Both machines just
> updated with software update.
> -rwxr-xr-x 1 root root 213856 Oct 30 16:32 /usr/lib64/libdc1394.so.22.1.5
> digikam-2.2.0-3.3.2.x86_64
> same on both machines. Different motherboards, all other hardware the same.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug.
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel@kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
Comment 94 Philip Johnsson 2012-02-01 06:53:49 UTC
Sorry, there are differences in version names

libkipi8 = 4:4.7.4-oneiric~ppa2
libkexiv2-10 = 4:4.7.2-oneiric~ppa2
libkdcraw20 = 4:4.7.2-oneiric~ppa2

That is what you should have installed right now

/Philip

On Wed, Feb 1, 2012 at 7:49 AM, Philip Johnsson
<philip.johnsson@gmail.com> wrote:
> apt-get install digikam works fine for install digikam but it will not
> update the kdelibs automatically as needed. The problem lies in that
> some kdelib package is not updated.
>
> What does "apt-get update && apt-get upgrade" say?
>
> The important packages to check are libkipi8, libkdcraw20 and
> libkexiv2-10 they should all (at the moment of writing this) have
> package versionname as follow: 4:4.7.2-oneiric~ppa2
>
> Check those and see if you find what is missing.
>
> /Philip
>
> On Wed, Feb 1, 2012 at 1:31 AM, Steve <engineering@pt-global.com> wrote:
>> https://bugs.kde.org/show_bug.cgi?id=268267
>>
>>
>> Steve <engineering@pt-global.com> changed:
>>
>>           What    |Removed                     |Added
>> ----------------------------------------------------------------------------
>>                 CC|                            |engineering@pt-global.com
>>
>>
>>
>>
>> --- Comment #92 from Steve <engineering pt-global com>  2012-02-01 00:31:55 ---
>> I have just installed openSUSE 12.1 on another machine. I can access the images
>> via ptp on my camera on the new machine but not the old. Both machines just
>> updated with software update.
>> -rwxr-xr-x 1 root root 213856 Oct 30 16:32 /usr/lib64/libdc1394.so.22.1.5
>> digikam-2.2.0-3.3.2.x86_64
>> same on both machines. Different motherboards, all other hardware the same.
>>
>> --
>> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
>> ------- You are receiving this mail because: -------
>> You are the assignee for the bug.
>> _______________________________________________
>> Digikam-devel mailing list
>> Digikam-devel@kde.org
>> https://mail.kde.org/mailman/listinfo/digikam-devel
Comment 95 Philip Johnsson 2012-02-01 07:01:31 UTC
Sorry, disregard from post #93 and #94. I answered in the wrong thread for the wrong post via the mailinglist. The answers have nothing to do with this problem. Don't know how to delete the postings here.

Sorry about that.

/Philip
Comment 96 engineering 2012-02-01 20:18:40 UTC
On the machine with 12.1 where digikam crashes, I removed digikam and
digikamrc.
I rebooted and reinstalled digikam (from yast) and now digikam accesses my ptp
camera.
Comment 97 caulier.gilles 2012-02-04 11:06:38 UTC
*** Bug 293248 has been marked as a duplicate of this bug. ***
Comment 98 Jack 2012-03-05 16:50:08 UTC
Digikam 2.5.0
Kubuntu 12.04
Linux 3.2.0-18-generic-pae
KDE 4.8.00

-- Information about the crash:
When attempting to upload pitures vis the menu Import-Camera, Digikam crashes as soon as the camera is selected.  This occurs on every attempt and with different cameras.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb513a8c0 (LWP 5552))]

Thread 5 (Thread 0xb3301b40 (LWP 5553)):
#0  0x00649416 in __kernel_vsyscall ()
#1  0x00a3196b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x022c007c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0x02ae0350 in wait (time=4294967295, this=0x991bf78) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=0x991bee4, mutex=0x991bee0, time=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0x0820345e in Digikam::ScanController::run (this=0x9915610) at /build/buildd/digikam-2.5.0/core/digikam/database/scancontroller.cpp:647
#6  0x02adfde0 in QThreadPrivate::start (arg=0x9915610) at thread/qthread_unix.cpp:298
#7  0x00a2dd4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0x022b276e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 4 (Thread 0xb29ffb40 (LWP 5554)):
#0  do_gettime (frac=0xb29fee30, sec=0xb29fee28) at tools/qelapsedtimer_unix.cpp:121
#1  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#2  0x02c27956 in QTimerInfoList::updateCurrentTime (this=0xb2002074) at kernel/qeventdispatcher_unix.cpp:343
#3  0x02c27caa in QTimerInfoList::timerWait (this=0xb2002074, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#4  0x02c26553 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb29fef3c) at kernel/qeventdispatcher_glib.cpp:136
#5  0x02c265ed in timerSourcePrepare (source=0xb2002040, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#6  0x072f4812 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0x072f501f in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0x072f5271 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0x02c27017 in QEventDispatcherGlib::processEvents (this=0xb2000468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#10 0x02bf2c3d in QEventLoop::processEvents (this=0xb29ff0c0, flags=...) at kernel/qeventloop.cpp:149
#11 0x02bf2ed9 in QEventLoop::exec (this=0xb29ff0c0, flags=...) at kernel/qeventloop.cpp:204
#12 0x02adc94c in QThread::exec (this=0x991cc90) at thread/qthread.cpp:501
#13 0x02bd02dd in QInotifyFileSystemWatcherEngine::run (this=0x991cc90) at io/qfilesystemwatcher_inotify.cpp:248
#14 0x02adfde0 in QThreadPrivate::start (arg=0x991cc90) at thread/qthread_unix.cpp:298
#15 0x00a2dd4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#16 0x022b276e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xb1fffb40 (LWP 5556)):
#0  0x00649416 in __kernel_vsyscall ()
#1  0x00a3196b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x022c007c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0x02ae0350 in wait (time=4294967295, this=0x9b893f8) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=0x9b89238, mutex=0x9b89234, time=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0x088e2b2c in Digikam::ParkingThread::run (this=0x9b89228) at /build/buildd/digikam-2.5.0/core/libs/threads/threadmanager.cpp:119
#6  0x02adfde0 in QThreadPrivate::start (arg=0x9b89228) at thread/qthread_unix.cpp:298
#7  0x00a2dd4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0x022b276e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xb13ffb40 (LWP 5557)):
#0  0x03761dcd in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0x02b3dda5 in do_gettime (frac=0xb13fee30, sec=0xb13fee28) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x02c27956 in QTimerInfoList::updateCurrentTime (this=0x9cb90b4) at kernel/qeventdispatcher_unix.cpp:343
#4  0x02c27caa in QTimerInfoList::timerWait (this=0x9cb90b4, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0x02c26553 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb13fef3c) at kernel/qeventdispatcher_glib.cpp:136
#6  0x02c265ed in timerSourcePrepare (source=0x9cb9080, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x072f4812 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0x072f501f in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0x072f5271 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0x02c27017 in QEventDispatcherGlib::processEvents (this=0x9cb8970, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0x02bf2c3d in QEventLoop::processEvents (this=0xb13ff0c0, flags=...) at kernel/qeventloop.cpp:149
#12 0x02bf2ed9 in QEventLoop::exec (this=0xb13ff0c0, flags=...) at kernel/qeventloop.cpp:204
#13 0x02adc94c in QThread::exec (this=0x9cb8600) at thread/qthread.cpp:501
#14 0x02bd02dd in QInotifyFileSystemWatcherEngine::run (this=0x9cb8600) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x02adfde0 in QThreadPrivate::start (arg=0x9cb8600) at thread/qthread_unix.cpp:298
#16 0x00a2dd4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#17 0x022b276e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb513a8c0 (LWP 5552)):
[KCrash Handler]
#7  0x0223ff46 in realloc () from /lib/i386-linux-gnu/libc.so.6
#8  0x03d3c24e in register_platform (d=0xb0806b8, dispatch=0x3d65380, name=0x3d5c726 "usb") at control.c:2015
#9  0x03d4f89f in usb_init (d=0xb0806b8) at control.c:383
#10 0x05a90832 in gp_port_library_list () from /usr/lib/i386-linux-gnu/libgphoto2_port/0.8.0/usb.so
#11 0x001c484c in ?? () from /usr/lib/i386-linux-gnu/libgphoto2_port.so.0
#12 0x02a33340 in ?? () from /usr/lib/i386-linux-gnu/libltdl.so.7
#13 0x02a32857 in ?? () from /usr/lib/i386-linux-gnu/libltdl.so.7
#14 0x02a33ad6 in lt_dlforeachfile () from /usr/lib/i386-linux-gnu/libltdl.so.7
#15 0x001c4cd0 in gp_port_info_list_load () from /usr/lib/i386-linux-gnu/libgphoto2_port.so.0
#16 0x083ab715 in Digikam::GPCamera::findConnectedUsbCamera (vendorId=1034, productId=1498, model=..., port=...) at /build/buildd/digikam-2.5.0/core/utilities/cameragui/devices/gpcamera.cpp:1772
#17 0x081aff88 in Digikam::DigikamApp::openSolidCamera (this=0x99a6480, udi=..., cameraLabel=...) at /build/buildd/digikam-2.5.0/core/digikam/main/digikamapp.cpp:1967
#18 0x081b1585 in Digikam::DigikamApp::slotOpenSolidDevice (this=0x99a6480, udi=...) at /build/buildd/digikam-2.5.0/core/digikam/main/digikamapp.cpp:1907
#19 0x081b71a6 in Digikam::DigikamApp::qt_static_metacall (_o=0x99a6480, _c=QMetaObject::InvokeMetaMethod, _id=46, _a=0xb17cc88) at /build/buildd/digikam-2.5.0/obj-i686-linux-gnu/core/digikam/digikamapp.moc:240
#20 0x02c06331 in QMetaCallEvent::placeMetaCall (this=0xb95ae40, object=0x99a6480) at kernel/qobject.cpp:525
#21 0x02c0f3ab in QObject::event (this=0x99a6480, e=0xb95ae40) at kernel/qobject.cpp:1195
#22 0x0188ccb2 in QWidget::event (this=0x99a6480, event=0xb95ae40) at kernel/qwidget.cpp:8820
#23 0x01cc76ac in QMainWindow::event (this=0x99a6480, event=0xb95ae40) at widgets/qmainwindow.cpp:1478
#24 0x07e3da24 in KMainWindow::event (this=0x99a6480, ev=0xb95ae40) at ../../kdeui/widgets/kmainwindow.cpp:1084
#25 0x07e865d2 in KXmlGuiWindow::event (this=0x99a6480, ev=0xb95ae40) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#26 0x01832d24 in notify_helper (e=0xb95ae40, receiver=0x99a6480, this=0x97ddc40) at kernel/qapplication.cpp:4555
#27 QApplicationPrivate::notify_helper (this=0x97ddc40, receiver=0x99a6480, e=0xb95ae40) at kernel/qapplication.cpp:4527
#28 0x018381f2 in QApplication::notify (this=0x97ddc40, receiver=0x99a6480, e=0xb95ae40) at kernel/qapplication.cpp:4520
#29 0x07d627b1 in KApplication::notify (this=0xbfff9440, receiver=0x99a6480, event=0xb95ae40) at ../../kdeui/kernel/kapplication.cpp:311
#30 0x02bf40ae in QCoreApplication::notifyInternal (this=0xbfff9440, receiver=0x99a6480, event=0xb95ae40) at kernel/qcoreapplication.cpp:876
#31 0x02bf8208 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9799388) at kernel/qcoreapplication.cpp:1500
#33 0x02bf853c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#34 0x02c26bc4 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#35 postEventSourceDispatch (s=0x97e47c8) at kernel/qeventdispatcher_glib.cpp:279
#36 0x072f4d8a in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#37 0x072f5195 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#38 0x072f5271 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#39 0x02c26fb7 in QEventDispatcherGlib::processEvents (this=0x979a100, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#40 0x018eb80a in QGuiEventDispatcherGlib::processEvents (this=0x979a100, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x02bf2c3d in QEventLoop::processEvents (this=0xbfff9324, flags=...) at kernel/qeventloop.cpp:149
#42 0x02bf2ed9 in QEventLoop::exec (this=0xbfff9324, flags=...) at kernel/qeventloop.cpp:204
#43 0x02bf85ea in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#44 0x018308c4 in QApplication::exec () at kernel/qapplication.cpp:3816
#45 0x080b69d4 in main (argc=136598667, argv=0x424448b) at /build/buildd/digikam-2.5.0/core/digikam/main/main.cpp:232
Comment 99 Kåre Särs 2013-02-11 20:31:02 UTC
*** Bug 287773 has been marked as a duplicate of this bug. ***
Comment 100 nucleo 2013-09-06 17:34:09 UTC
digiKam still needs libusb after switching libgphoto2 to libusbx?
https://bugzilla.redhat.com/show_bug.cgi?id=997880