Bug 505669

Summary: Crash on startup
Product: [Applications] digikam Reporter: Mike <mailto.mikes>
Component: Plugin-DImg-JPEGAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: crash CC: amantia, caulier.gilles
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.7.0
Sentry Crash Report:

Description Mike 2025-06-16 20:52:52 UTC
***
Suddenly digikam crashes on startup - nothing is shown from the GUI. I assume that crash was introduced through an update of the system ?  However backing up the configfile lets digikam startup but then after configuring the (old) database file the same happens. Its not starting.
***

SUMMARY


STEPS TO REPRODUCE
1.  Start Digikam
2. 
3. 

OBSERVED RESULT
Nothing is visible - no gui 

EXPECTED RESULT
digikam should startup and run as bevore

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:  Manjaro 
KDE Plasma Version: 6.3.5
KDE Frameworks Version:  6.14.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2025-06-17 05:22:54 UTC
It's probably a broken dependency in your system. digiKam need to be recompiled after the update.

Just to be sure :

1/ try to run digiKam in GDB following instructions here : 

https://www.digikam.org/contribute/#linux-host-1

2/ try to run the AppImage linux bundle instead the native version from your system. You can use the current 8.7.0 pre-release available here :

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

Best regards

Gilles Caulier
Comment 2 András Manţia 2025-06-17 15:09:08 UTC
I don't know if it is the same crash or not, after updating to latest KDE/Digikam on opensuse 15.6, I get a startup crash too. 
0x00007ffff304f7ba in jpeg_save_markers (cinfo=0x7ffd87fee570, marker_code=226, length_limit=65535) at /usr/src/debug/libjpeg-turbo-2.1.5.1-150600.22.5.x86_64/jdmarker.c:1349
1349        marker->process_APPn[marker_code - (int)M_APP0] = processor;
(gdb) bt
#0  0x00007ffff304f7ba in jpeg_save_markers (cinfo=0x7ffd87fee570, marker_code=226, length_limit=65535) at /usr/src/debug/libjpeg-turbo-2.1.5.1-150600.22.5.x86_64/jdmarker.c:1349
#1  0x00007fffd163ceb8 in DigikamJPEGDImgPlugin::DImgJPEGLoader::load (this=0x7ffd7c035340, filePath=<optimized out>, observer=0x55555db59b00)
    at /usr/src/packages/BUILD/digikam-8.6.0/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:176
#2  0x00007ffff609c1ce in Digikam::DImg::load(QString const&, int, Digikam::DImgLoaderObserver*, Digikam::DRawDecoding const&) () at /usr/lib64/libdigikamcore.so.8.6.0
#3  0x00007ffff61accc1 in Digikam::ThumbnailCreator::loadWithDImgScaled(QString const&, Digikam::IccProfile*) const () at /usr/lib64/libdigikamcore.so.8.6.0
#4  0x00007ffff61ae7fa in Digikam::ThumbnailCreator::createThumbnail(Digikam::ThumbnailInfo const&, QRect const&) const () at /usr/lib64/libdigikamcore.so.8.6.0
#5  0x00007ffff61a8c87 in Digikam::ThumbnailCreator::load(Digikam::ThumbnailIdentifier const&, QRect const&, bool, bool) const () at /usr/lib64/libdigikamcore.so.8.6.0
#6  0x00007ffff61a9050 in Digikam::ThumbnailCreator::pregenerate(Digikam::ThumbnailIdentifier const&) const () at /usr/lib64/libdigikamcore.so.8.6.0
#7  0x00007ffff61bd5be in ??? () at /usr/lib64/libdigikamcore.so.8.6.0
#8  0x00007ffff61bf3be in Digikam::LoadSaveThread::run() () at /usr/lib64/libdigikamcore.so.8.6.0
#9  0x00007ffff6206aba in ??? () at /usr/lib64/libdigikamcore.so.8.6.0
#10 0x00007ffff410d48d in QThreadPoolThread::run (this=0x55555952e8d0) at /usr/src/debug/qt6-base-6.9.1-lp156.154.2.x86_64/src/corelib/thread/qthreadpool.cpp:71
#11 0x00007ffff410c5e6 in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base-6.9.1-lp156.154.2.x86_64/src/corelib/thread/qthread_unix.cpp:434
#12 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/qt6-base-6.9.1-lp156.154.2.x86_64/src/corelib/thread/qthread_unix.cpp:366
#13 QThreadPrivate::start (arg=0x55555952e8d0) at /usr/src/debug/qt6-base-6.9.1-lp156.154.2.x86_64/src/corelib/thread/qthread_unix.cpp:394
#14 0x00007ffff36a6f6c in start_thread () at /lib64/libc.so.6
#15 0x00007ffff372e338 in clone3 () at /lib64/libc.so.6


The appimage doesn't start either, with another issue:
digikam: symbol lookup error: /tmp/.mount_digiKamWssO5/usr/lib/libQt6WebEngineCore.so.6: undefined symbol: FT_Get_Color_Glyph_Paint
Comment 3 caulier.gilles 2025-06-17 17:32:26 UTC
It crash in libjpeg-turbo. It's probably a binary compatibility issue.

Gilles Caulier
Comment 4 Mike 2025-06-18 21:33:18 UTC
Thanks for your reply and help ! 

I tried step 1 and run with gdb and at least I got some lines of info that may help or lead to some clues but I'm not sure what of that to provide ?  Should I paste all the lines here ? 

2nd option to try appimage: 
That works..aDigikam as appimage starts and all pictures and categories are displayed. Seems to be fine with it. But...of course :  statrup is much slower propably because of the container package of an appimage. 

Thanks and best regards,
 Mike


(In reply to caulier.gilles from comment #1)
> It's probably a broken dependency in your system. digiKam need to be
> recompiled after the update.
> 
> Just to be sure :
> 
> 1/ try to run digiKam in GDB following instructions here : 
> 
> https://www.digikam.org/contribute/#linux-host-1



> 
> 2/ try to run the AppImage linux bundle instead the native version from your
> system. You can use the current 8.7.0 pre-release available here :
> 
> https://files.kde.org/digikam/
> 
> Best regards
> 
> Gilles Caulier
Comment 5 caulier.gilles 2025-06-19 02:57:52 UTC
As the AppImage works properly, It's definitively an issue with the native Manjaro digiKam package : a broken binary compatibility with libjpeg. This must be reported as Dowstream to Manjaro bugzilla.