<?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>517798</bug_id>
          
          <creation_ts>2026-03-18 20:52:40 +0000</creation_ts>
          <short_desc>Digikam crashes immediately even after reinstall</short_desc>
          <delta_ts>2026-03-19 02:04:38 +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>Bundle-Snap</component>
          <version>8.2.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>magnus.amann</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>9.1.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2504519</commentid>
    <comment_count>0</comment_count>
    <who name="">magnus.amann</who>
    <bug_when>2026-03-18 20:52:40 +0000</bug_when>
    <thetext>SUMMARY
I moved and renamed some folders containing images in the folder where digikam manages my gallery. Digikam wasn&apos;t open and I understand (now) that this isn&apos;t supposed to be done.
When digikam was opened it crashed immediately.
I removed the database files and tried again, same.
I reinstalled and removed the database files and tried again, same.
I did the above step and removed the digikamrc file in .config, same.
I tried to set up a different folder with different pictures for the digikam gallery but same.

STEPS TO REPRODUCE
1. Move and/or rename subfolders in Digikam managed folder externally (without digikam being open).
2. Open Digikam

OBSERVED RESULT
Whenever digikam opens the UI appears but is not interactive and digikam crashes after a moment.
Below is the terminal output from starting digikam.

$ digikam
ALSA lib pcm_dsnoop.c:567:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_a52.c:1001:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card &apos;card&apos;
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card &apos;card&apos;
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp
Segmentation fault (core dumped)

EXPECTED RESULT
No crash, or no crash after reinstalling Digikam

SOFTWARE/OS VERSIONS
Ubuntu 24.04.4 LTS
Gnome Version 46
X11
Linux 6.17.0-19-generic

ADDITIONAL INFORMATION
Here is the backtrace (I tried to install all packages for debug symbols, but some seem to be missing):

Thread 7 &quot;Digikam::ScanCo&quot; received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7d3432dfe6c0 (LWP 15192)]
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007d3465930c7d in Digikam::MetaEngine::load (this=this@entry=0x7d341c056b90, filePath=..., backend=backend@entry=0x0)
    at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/metadataengine/engine/metaengine_fileio.cpp:164
#2  0x00007d34659652e3 in Digikam::DMetadata::load (this=this@entry=0x7d341c056b90, filePath=..., backend=backend@entry=0x0)
    at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/metadataengine/dmetadata/dmetadata_fileio.cpp:59
#3  0x00007d346654eeb7 in Digikam::ItemScanner::loadFromDisk (this=this@entry=0x7d3432dfc0d8) at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/database/item/scanner/itemscanner.cpp:122
#4  0x00007d3466552ab6 in Digikam::ItemScanner::newFile (this=this@entry=0x7d3432dfc0d8, albumId=albumId@entry=1)
    at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/database/item/scanner/itemscanner_database.cpp:109
#5  0x00007d3466486cd1 in Digikam::CollectionScanner::scanNewFile (this=this@entry=0x7d3432dfc4c0, info=..., albumId=1)
    at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/database/collection/collectionscanner_scan.cpp:1061
#6  0x00007d3466488ade in Digikam::CollectionScanner::scanAlbum (this=this@entry=0x7d3432dfc4c0, location=..., album=..., checkDate=checkDate@entry=false)
    at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/database/collection/collectionscanner_scan.cpp:792
#7  0x00007d3466489404 in Digikam::CollectionScanner::scanAlbumRoot (this=this@entry=0x7d3432dfc4c0, location=...)
    at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/database/collection/collectionscanner_scan.cpp:467
#8  0x00007d346648a45b in Digikam::CollectionScanner::completeScan (this=this@entry=0x7d3432dfc4c0)
    at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/database/collection/collectionscanner_scan.cpp:87
#9  0x00007d3466b11598 in Digikam::ScanController::run (this=0x7d3467071c20 &lt;Digikam::(anonymous namespace)::Q_QGS_creator::innerFunction()::holder&gt;)
    at /usr/src/digikam-4:8.2.0-0ubuntu6.2/core/libs/database/utils/scan/scancontroller.cpp:241
#10 0x00007d3463edb674 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007d346369caa4 in start_thread (arg=&lt;optimized out&gt;) at ./nptl/pthread_create.c:447
#12 0x00007d3463729c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2504591</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2026-03-19 02:04:38 +0000</bug_when>
    <thetext>Problem already reported and fixed with bug 517766. It&apos;s a binary incompatibility issue with the Exiv2 package. The Snap bundle must be recompiled.

See also bug 517733 : digiKam is not alone to be affected.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>