How to compile Digikam?
Patrick Gerlier
page74010-dgkm at yahoo.com
Sat Oct 24 16:20:56 BST 2026
Breaking news! Don't bother to answer my previous message, it is not
relevant.
A - Line about slot Digikam::SurveyWindow::slotDeleteFinalItem()is
probably a minor bug
It is not related to my problem and should be reported.
B - I end up in a segfault
After adding a few debugging prints to stderr like "I was here XXX", I
spotted the issue in a loop of AlbumManager::scanPAlbums() of
albummanager_palbum.cpp. The loop start ~line 110 and is preceded by
comment // create all new albums. I was fortunate enough that the
segfault occurred on first iteration. It was caused by invalid album
relativePath "-r" (without initial "/"). I changed the dash for a slash
and segfault disappeared.
I have really no idea when and why the path was corrupted. I am happy to
have recovered my DB.
Good day all!
Patrick
Le 24/10/2026 à 15:28, Patrick Gerlier a écrit :
>
> Thanks Gilles,
>
> I have compiled digikam and I can proceed with my faulty DB.
>
> However, it apparently went through a schema upgrade and this changed
> the error. I no longer segfault; instead, digikam aborts with:
>
> qt.core.qobject.connect: QObject::connect: No such slot
> Digikam::SurveyWindow::slotDeleteFinalItem() in
> /builddir/build/BUILD/digikam-9.1.0-build/digikam-9.1.0/core/utilities/survey/surveywindow_setup.cpp:68
> qt.core.qobject.connect: QObject::connect: (receiver name: 'Survey')
> kf.xmlgui: Unhandled container to remove : Digikam::DigikamApp
>
> Same error with the distro-package version.
>
> To make sure, I checked against another DB (which also gets a schema
> upgrade) and this opens like a charm.
>
> Which track should I follow to guess how I land in
> SurveyWindow::setupActions() ? A "Find in all files" did not find
> slotDeleteFinalItem but it may be an implictly generated name.
> However, there is a similar slot in LightTableWindow; but it is
> definitively not a SurveyWindow::… and I find no declaration for it.
>
> Since the faulty database was created many releases before the Survey
> tool was added, there is no reason for it to try and open in the
> Survey tool.
>
> I have narrowed down the problem to execution of
> AlbumManager::instance()->startScan(). So, what's next?
>
> Patrick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20261024/49d8cefd/attachment.htm>
More information about the Digikam-users
mailing list