<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi all,</p>
<p>Using Digikam 8.6.0 under Fedora 42 with KDE Plasma desktop</p>
<p>I revived a photo archive put on sleep several years ago.
Therefore my computer underwent several major upgrades in the mean
time, i.e. last time I opened this archive was done under an older
release. Digikam crashes in segfault after "Loading albums" step.
When launched from the terminal, I get:</p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">digikam.dnnmodelmanager:
Cannot find DNN models path</span><span
style="color:#000000;background-color:#ffffff;">
</span><br>
<span style="color:#000000;background-color:#ffffff;">digikam.dnnmodelmanager:
Cannot find DNN models path</span><span
style="color:#000000;background-color:#ffffff;">
</span><br>
<span style="color:#000000;background-color:#ffffff;">qt.multimedia.ffmpeg:
Using Qt multimedia with FFmpeg version 7.1.1 GPL version </span>3
or later<span style="color:#000000;background-color:#ffffff;">
</span><br>
<span style="color:#000000;background-color:#ffffff;">digikam.dnnmodelmanager:
Cannot find DNN models path</span><span
style="color:#000000;background-color:#ffffff;">
</span><br>
<span style="color:#000000;background-color:#ffffff;">digikam.dnnmodelmanager:
Cannot find DNN models path</span><span
style="color:#000000;background-color:#ffffff;">
</span><br>
<span style="color:#000000;background-color:#ffffff;">digikam.dnnmodelmanager:
Cannot find DNN models path</span><span
style="color:#000000;background-color:#ffffff;">
</span><br>
<span style="color:#000000;background-color:#ffffff;">kf.xmlgui:
Unhandled container to remove : Digikam::DigikamApp</span><span
style="color:#000000;background-color:#ffffff;">
</span><br>
<span style="color:#000000;background-color:#ffffff;">Segmentation
fault (core dumped)</span><br>
<span style="color:#000000;background-color:#ffffff;">
</span><br>
It is very likely that I manipulated the photo directory outside
Digikam, because I reconfigured my computer several times.</span></p>
<p><span style="font-family:monospace">When I peek into the
database, I see many NULL fields in the 'album' column of
'images' table. Some of them correspond to albums I decided to
make an independent collection under a separate database (though
the images should have also disappeared because the files are no
longer present).</span></p>
<p><span style="font-family:monospace">I first suspected an issue
with removable media which were indexed by Digikam, but this
does not seem to be the case. I also questioned the use of UUID
in 'albumroots' table because my disks were reformatted and data
reloaded "as is" without activating Digikam. I change 'uuid=…'
to 'path=…' without effect (I worked on a copy of the DB).<br>
</span></p>
<p><span style="font-family:monospace">Digikam operates as expected
on other databases. I started a separate collection and
everything works fine though there are also NULL 'album' columns
(in relatively low numbers) despite the fact that the photos
where all managed inside Digikam.</span></p>
<p><span style="font-family:monospace">I have written a small
quick'n'dirty Django-based database browser to see the extent of
the damage (within my limited understanding of the DB schema,
ignoring tags presently). Surprisingly, my browser displays
pictures and data without problem. Note that this browser is
purely "passive". It does not try to reconstruct a structure; it
only queries the DB in read-only mode, ignoring NULL columns
(thus ignoring possible duplicates resulting from external
manipulation).</span></p>
<p><span style="font-family:monospace">All data seem to be there.<br>
</span></p>
<p><span style="font-family:monospace">Since the collection holds
10k+ images (and a very sophisticated tree-like tag structure),
I'd like to recover the database because it is quite impossible
to re-enter data, some of them being the result of
time-consuming historical research (XIX century photos) without
backup outside Digikam DBs.</span></p>
<p><span style="font-family:monospace">Since Digikam segfaults, I
can't access the Tools>Maintenance menu command.<br>
</span></p>
<p><span style="font-family:monospace">How can I proceed?<br>
</span></p>
</body>
</html>