<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>271473</bug_id>
          
          <creation_ts>2011-04-22 10:28:14 +0000</creation_ts>
          <short_desc>Digicam crashes reproducably when scanning collection afte re-organising underlying picture folders</short_desc>
          <delta_ts>2017-12-16 11:09:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Metadata-Engine</component>
          <version>1.4.0</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>alwin.mueller2</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>ahuggel</cc>
    
    <cc>caulier.gilles</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>5.8.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1110260</commentid>
    <comment_count>0</comment_count>
    <who name="">alwin.mueller2</who>
    <bug_when>2011-04-22 10:28:14 +0000</bug_when>
    <thetext>Application: digikam (1.4.0)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-28-generic x86_64
Distribution: Ubuntu 10.10

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

Re-organised underlying folder structure of my picture folder, i.e. I had many folders named after year-month-date in one main folder, which I moved to yearly sub-folders.

Digicam started to re-scan the collection when starting but always crashed before showing the main window.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
[Current thread is 1 (Thread 0x7fe4ac4957c0 (LWP 2847))]

Thread 3 (Thread 0x7fe497e1b700 (LWP 2848)):
#0  0x00007fe4a3ce1203 in __poll (fds=&lt;value optimized out&gt;, nfds=&lt;value optimized out&gt;, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe4a0b6c009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fe4a0b6c7b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007fe4985523c4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007fe4a0b917e4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007fe4a521a971 in start_thread (arg=&lt;value optimized out&gt;) at pthread_create.c:304
#6  0x00007fe4a3ced92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe4874d4700 (LWP 2849)):
[KCrash Handler]
#6  0x00007fe4a1c4c857 in Exiv2::Exifdatum::~Exifdatum() () from /usr/lib/libexiv2.so.6
#7  0x00007fe4aa93ab60 in _Destroy&lt;Exiv2::Exifdatum&gt; (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at /usr/include/c++/4.4/bits/stl_construct.h:83
#8  __destroy&lt;Exiv2::Exifdatum*&gt; (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at /usr/include/c++/4.4/bits/stl_construct.h:93
#9  _Destroy&lt;Exiv2::Exifdatum*&gt; (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at /usr/include/c++/4.4/bits/stl_construct.h:116
#10 _Destroy&lt;Exiv2::Exifdatum*, Exiv2::Exifdatum&gt; (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at /usr/include/c++/4.4/bits/stl_construct.h:142
#11 ~vector (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at /usr/include/c++/4.4/bits/stl_vector.h:313
#12 ~ExifData (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at //usr/include/exiv2/exif.hpp:440
#13 ~KExiv2DataPriv (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at ../../../../libs/libkexiv2/libkexiv2/kexiv2_p.h:128
#14 ~QSharedDataPointer (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at /usr/include/qt4/QtCore/qshareddata.h:90
#15 KExiv2Iface::KExiv2Priv::~KExiv2Priv (this=0x1929510, __in_chrg=&lt;value optimized out&gt;) at ../../../../libs/libkexiv2/libkexiv2/kexiv2_p.cpp:50
#16 0x00007fe4aa935130 in KExiv2Iface::KExiv2::~KExiv2 (this=0x7fe4874d3000, __in_chrg=&lt;value optimized out&gt;) at ../../../../libs/libkexiv2/libkexiv2/kexiv2.cpp:90
#17 0x00007fe4a8f28dcc in ~ImageScanner (this=0x7fe4874d3d40, info=..., albumId=860) at /build/buildd/digikam-1.4.0/libs/database/imagescanner.h:42
#18 Digikam::CollectionScanner::scanNewFile (this=0x7fe4874d3d40, info=..., albumId=860) at /build/buildd/digikam-1.4.0/libs/database/collectionscanner.cpp:771
#19 0x00007fe4a8f29afe in Digikam::CollectionScanner::scanAlbum (this=&lt;value optimized out&gt;, location=&lt;value optimized out&gt;, album=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/libs/database/collectionscanner.cpp:673
#20 0x00007fe4a8f29a13 in Digikam::CollectionScanner::scanAlbum (this=&lt;value optimized out&gt;, location=&lt;value optimized out&gt;, album=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/libs/database/collectionscanner.cpp:691
#21 0x00007fe4a8f29a13 in Digikam::CollectionScanner::scanAlbum (this=&lt;value optimized out&gt;, location=&lt;value optimized out&gt;, album=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/libs/database/collectionscanner.cpp:691
#22 0x00007fe4a8f29a13 in Digikam::CollectionScanner::scanAlbum (this=&lt;value optimized out&gt;, location=&lt;value optimized out&gt;, album=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/libs/database/collectionscanner.cpp:691
#23 0x00007fe4a8f2a4f7 in Digikam::CollectionScanner::scanAlbumRoot (this=0x7fe4874d3d40, location=...) at /build/buildd/digikam-1.4.0/libs/database/collectionscanner.cpp:485
#24 0x00007fe4a8f2a87b in Digikam::CollectionScanner::completeScan (this=0x7fe4874d3d40) at /build/buildd/digikam-1.4.0/libs/database/collectionscanner.cpp:254
#25 0x00000000006ee935 in Digikam::ScanController::run (this=0x137c580) at /build/buildd/digikam-1.4.0/digikam/scancontroller.cpp:540
#26 0x00007fe4a54a527e in QThreadPrivate::start (arg=0x137c580) at thread/qthread_unix.cpp:266
#27 0x00007fe4a521a971 in start_thread (arg=&lt;value optimized out&gt;) at pthread_create.c:304
#28 0x00007fe4a3ced92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#29 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe4ac4957c0 (LWP 2847)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe4a54a5e3b in wait (this=&lt;value optimized out&gt;, mutex=0x137c640, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=&lt;value optimized out&gt;, mutex=0x137c640, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fe4a54a4edc in QThread::wait (this=&lt;value optimized out&gt;, time=18446744073709551615) at thread/qthread_unix.cpp:652
#4  0x00000000006ee3bf in Digikam::ScanController::shutDown (this=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/digikam/scancontroller.cpp:290
#5  0x00000000006f2e1b in Digikam::ScanController::~ScanController (this=0x137c72c, __in_chrg=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/digikam/scancontroller.cpp:273
#6  0x00000000006f2fd7 in ~ScanControllerCreator () at /build/buildd/digikam-1.4.0/digikam/scancontroller.cpp:221
#7  destroy () at /build/buildd/digikam-1.4.0/digikam/scancontroller.cpp:222
#8  0x00007fe4a3c404f2 in __run_exit_handlers (status=1) at exit.c:78
#9  exit (status=1) at exit.c:100
#10 0x00007fe496791746 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#11 0x00007fe4a6efba68 in KApplication::xioErrhandler (this=0x7fff07687930, dpy=0x113f110) at ../../kdeui/kernel/kapplication.cpp:416
#12 0x00007fe4a25fc86e in _XIOError () from /usr/lib/libX11.so.6
#13 0x00007fe4a2604415 in ?? () from /usr/lib/libX11.so.6
#14 0x00007fe4a2604d07 in _XEventsQueued () from /usr/lib/libX11.so.6
#15 0x00007fe4a25ed47f in XEventsQueued () from /usr/lib/libX11.so.6
#16 0x00007fe4a625cc0c in x11EventSourceCheck (s=0x1121100) at kernel/qguieventdispatcher_glib.cpp:87
#17 0x00007fe4a0b6b66a in g_main_context_check () from /lib/libglib-2.0.so.0
#18 0x00007fe4a0b6c023 in ?? () from /lib/libglib-2.0.so.0
#19 0x00007fe4a0b6c45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#20 0x00007fe4a55c5193 in QEventDispatcherGlib::processEvents (this=0x10de280, flags=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:415
#21 0x00007fe4a625ca4e in QGuiEventDispatcherGlib::processEvents (this=0x137c72c, flags=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:204
#22 0x00007fe4a5597a02 in QEventLoop::processEvents (this=&lt;value optimized out&gt;, flags=) at kernel/qeventloop.cpp:149
#23 0x00007fe4a5597dec in QEventLoop::exec (this=0x137f000, flags=) at kernel/qeventloop.cpp:201
#24 0x00000000006f2015 in Digikam::ScanController::completeCollectionScan (this=0x137c580, splash=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/digikam/scancontroller.cpp:377
#25 0x000000000069b7c3 in Digikam::DigikamApp::DigikamApp (this=0x14888d0, __in_chrg=&lt;value optimized out&gt;, __vtt_parm=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/digikam/digikamapp.cpp:197
#26 0x000000000077c955 in main (argc=&lt;value optimized out&gt;, argv=&lt;value optimized out&gt;) at /build/buildd/digikam-1.4.0/digikam/main.cpp:172

Possible duplicates by query: bug 263892, bug 238623.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110261</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2011-04-22 10:31:27 +0000</bug_when>
    <thetext>It&apos;s an Exiv library crash.

Which version you use. Go to Help/Components info for details.

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1113105</commentid>
    <comment_count>2</comment_count>
    <who name="">alwin.mueller2</who>
    <bug_when>2011-04-30 15:21:48 +0000</bug_when>
    <thetext>Hi Gilles,

Attached you find the requested information:

digiKam version 1.9.0
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.2 (4.6.2)
LibKExiv2: 1.2.0
LibKdcraw: 1.2.0
LibLCMS: 118
LibLensFun: external shared library
LibLqr: internal library
LibPGF: 6.09.44 - internal library
LibPNG: 1.2.44
LibQt: 4.7.2
LibRaw: 0.11.3
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)
Parallelised demosaicing: Yes
Database backend: QSQLITE
LibGphoto2: 2.4.10.1
LibKipi: 1.2.0

Best regards,
Alwin

-------- Original-Nachricht --------
&gt; Datum: Fri, 22 Apr 2011 10:31:28 +0200 (CEST)
&gt; Von: Gilles Caulier &lt;caulier.gilles@gmail.com&gt;
&gt; An: alwin.mueller2@gmx.de
&gt; Betreff: [Bug 271473] Digicam crashes reproducably when scanning collection afte re-organising underlying picture folders

&gt; https://bugs.kde.org/show_bug.cgi?id=271473
&gt; 
&gt; 
&gt; Gilles Caulier &lt;caulier.gilles@gmail.com&gt; changed:
&gt; 
&gt;            What    |Removed                     |Added
&gt; ----------------------------------------------------------------------------
&gt;                  CC|                            |caulier.gilles@gmail.com
&gt;           Component|general                     |libkexiv2
&gt; 
&gt; 
&gt; 
&gt; 
&gt; --- Comment #1 from Gilles Caulier &lt;caulier gilles gmail com&gt;  2011-04-22
&gt; 10:31:27 ---
&gt; It&apos;s an Exiv library crash.
&gt; 
&gt; Which version you use. Go to Help/Components info for details.
&gt; 
&gt; Gilles Caulier
&gt; 
&gt; -- 
&gt; Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
&gt; ------- You are receiving this mail because: -------
&gt; You reported the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1138802</commentid>
    <comment_count>3</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2011-07-06 11:10:12 +0000</bug_when>
    <thetext>We need feedback using a recent version. 2.0.0 RC is out, please test...

Thanks in advance

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1166814</commentid>
    <comment_count>4</comment_count>
    <who name="Marcel Wiesweg">marcel.wiesweg</who>
    <bug_when>2011-09-25 13:45:21 +0000</bug_when>
    <thetext>Feel free to reopen if still applicable with a recent 2.x version</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1717078</commentid>
    <comment_count>5</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2017-12-16 11:09:59 +0000</bug_when>
    <thetext>This crash is not reproducible use current 5.8.0 pre-release bundle available
here :

https://files.kde.org/digikam/

I close this file now. Re-open it if necessary.

Gilles Caulier</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>