Bug 457605 - On large collections digikam often freezes for seconds with 100% CPU while paging through images
Summary: On large collections digikam often freezes for seconds with 100% CPU while pa...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-ExifTool (show other bugs)
Version: 7.1.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-07 21:35 UTC by Alain Knaff
Modified: 2023-06-19 20:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.1.0
Sentry Crash Report:


Attachments
Debug output with QT_LOGGING_RULES="digikam*=true" (76.60 KB, text/plain)
2022-08-08 19:59 UTC, Alain Knaff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alain Knaff 2022-08-07 21:35:19 UTC
SUMMARY

On large collections digikam often freezes for seconds with 100% CPU while paging through images

STEPS TO REPRODUCE
1. Set up digikam to use a really large collection of photos (I've got 118029)
2. Work in digikam, moving often from photo to photo (doesn't depend on whether this is in Image Editor, or just scrolling through an album view. Doesn't need to be new photos, just switching between 2 photos in ImageEditor is enough to trigger this)

OBSERVED RESULT

Eventually, digikam hangs for a couple of seconds, with 100% CPU (as shown by top). When this happens in ImageEditor, a "Loading" progress bar is shown at bottom left of window, often stuck at 0%, but occasionally also at another percentage such as 73%. Doesn't happen on every new image, but only once in a while.

EXPECTED RESULT
Displaying a new image should always be snappy


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Debian 11
(available in About System)
KDE Plasma Version: 5.20.5-1
KDE Frameworks Version: 5.78.0-2
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This happens on a box with a fast NVME SSD disk.

Only happens on large collections. Indeed, after I included just the albums from my recent trip (1923 photos), everything seems fine.

However, with the larger collection, neither disabling plugins of category "Export", nor unchecking "Monitor the  albums for external changes" helps.
Comment 1 Maik Qualmann 2022-08-07 21:44:53 UTC
Please test it with a more recent version, e.g. with the AppImage from here:

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

However, make a backup of the databases if you want to go back to your old version.

Maik
Comment 2 Maik Qualmann 2022-08-07 21:47:07 UTC
You are working with a 2 year old digiKam version. In the meantime, hundreds of bugs have been fixed and improvements made.

Maik
Comment 3 Alain Knaff 2022-08-08 17:52:04 UTC
(In reply to Maik Qualmann from comment #1)
> Please test it with a more recent version, e.g. with the AppImage from here:
> 
> https://files.kde.org/digikam/
> 
> However, make a backup of the databases if you want to go back to your old
> version.
> 
> Maik

Unfortunately when adding my full collection of photos to the appimage version of digikam, it segfaults during scan, and eventually completes, but then segfaults each time I try to go into configuration. Unfortunately, even the debug version of the app image contains no debug symbols, so I can't post a stacktrace.
Comment 4 Alain Knaff 2022-08-08 17:55:54 UTC
(In reply to Alain Knaff from comment #3)
> (In reply to Maik Qualmann from comment #1)
> > Please test it with a more recent version, e.g. with the AppImage from here:
> > 
> > https://files.kde.org/digikam/
> > 
> > However, make a backup of the databases if you want to go back to your old
> > version.
> > 
> > Maik
> 
> Unfortunately when adding my full collection of photos to the appimage
> version of digikam, it segfaults during scan, and eventually completes, but
> then segfaults each time I try to go into configuration. Unfortunately, even
> the debug version of the app image contains no debug symbols, so I can't
> post a stacktrace.

Here is still stderr output, in case it's useful:

> ./digiKam-7.8.0-20220729T111547-x86-64-debug.appimage                       
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
-- Detected host Linux -64-
-- AppImage mounted directory: /tmp/.mount_digiKaCk0neh
Check library libudev.so.0
Check library libxcb-dri3.so.0
Check library libcrypto.so.1.1
Check library libssl.so.1.1
Check library libnss3.so
Check library libnssutil3.so
Check library libsmime3.so
Check library libpango-1.0.so.0
Check library libpangocairo-1.0.so.0
Check library libgmodule-2.0.so.0
-- Preloading shared libs: :/tmp/.mount_digiKaCk0neh/usr/lib/libavif.so.13:/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libssl.so.1.1:/usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so:/usr/lib/x86_64-linux-gnu/libsmime3.so:/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0:/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0:/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
[0808/195504.061371:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
[0808/195504.186441:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
[0808/195504.186434:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
QtAV 1.13.0(Jul 29 2022, 13:04:38)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai, China Copyright (C) 2012-2019 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
[0808/195506.367219:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
unknown: Unhandled container to remove :  Digikam::DigikamApp
/tmp/.mount_digiKaCk0neh/AppRun: line 197: 329656 Segmentation fault      digikam $@
Comment 5 Alain Knaff 2022-08-08 18:07:10 UTC
(In reply to Alain Knaff from comment #3)
> (In reply to Maik Qualmann from comment #1)
> > Please test it with a more recent version, e.g. with the AppImage from here:
> > 
> > https://files.kde.org/digikam/
> > 
> > However, make a backup of the databases if you want to go back to your old
> > version.
> > 
> > Maik
> 
> Unfortunately when adding my full collection of photos to the appimage
> version of digikam, it segfaults during scan, and eventually completes, but
> then segfaults each time I try to go into configuration. Unfortunately, even
> the debug version of the app image contains no debug symbols, so I can't
> post a stacktrace.

Actually, I just noticed, that segfault when going into configure also happens on my much smaller collection.
Comment 6 Maik Qualmann 2022-08-08 18:18:57 UTC
Debug AppImage has an internal GDB, run the AppImage with the "debug" option.

Maik
Comment 7 Alain Knaff 2022-08-08 18:21:34 UTC
(In reply to Maik Qualmann from comment #6)
> Debug AppImage has an internal GDB, run the AppImage with the "debug" option.
> 
> Maik

Unfortunately, it doesn't have any such option :-( :

> ./digiKam-7.8.0-20220729T111547-x86-64-debug.appimage --debug
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
-- Detected host Linux -64-
-- AppImage mounted directory: /tmp/.mount_digiKapU7M9F
Check library libudev.so.0
Check library libxcb-dri3.so.0
Check library libcrypto.so.1.1
Check library libssl.so.1.1
Check library libnss3.so
Check library libnssutil3.so
Check library libsmime3.so
Check library libpango-1.0.so.0
Check library libpangocairo-1.0.so.0
Check library libgmodule-2.0.so.0
-- Preloading shared libs: :/tmp/.mount_digiKapU7M9F/usr/lib/libavif.so.13:/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libssl.so.1.1:/usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so:/usr/lib/x86_64-linux-gnu/libsmime3.so:/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0:/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0:/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
digikam: Unknown option 'debug'.
Comment 8 Maik Qualmann 2022-08-08 18:24:37 UTC
No "--"

Maik
Comment 9 Alain Knaff 2022-08-08 18:32:13 UTC
(In reply to Maik Qualmann from comment #8)
> No "--"
> 
> Maik

So now I've got a trace: :-)

> ./digiKam-7.8.0-20220729T111547-x86-64-debug.appimage --debug
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
-- Detected host Linux -64-
-- AppImage mounted directory: /tmp/.mount_digiKapU7M9F
Check library libudev.so.0
Check library libxcb-dri3.so.0
Check library libcrypto.so.1.1
Check library libssl.so.1.1
Check library libnss3.so
Check library libnssutil3.so
Check library libsmime3.so
Check library libpango-1.0.so.0
Check library libpangocairo-1.0.so.0
Check library libgmodule-2.0.so.0
-- Preloading shared libs: :/tmp/.mount_digiKapU7M9F/usr/lib/libavif.so.13:/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libssl.so.1.1:/usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so:/usr/lib/x86_64-linux-gnu/libsmime3.so:/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0:/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0:/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
digikam: Unknown option 'debug'.
> ./digiKam-7.8.0-20220729T111547-x86-64-debug.appimage debug  
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
-- Detected host Linux -64-
-- AppImage mounted directory: /tmp/.mount_digiKaZJSEGd
Check library libudev.so.0
Check library libxcb-dri3.so.0
Check library libcrypto.so.1.1
Check library libssl.so.1.1
Check library libnss3.so
Check library libnssutil3.so
Check library libsmime3.so
Check library libpango-1.0.so.0
Check library libpangocairo-1.0.so.0
Check library libgmodule-2.0.so.0
-- Preloading shared libs: :/tmp/.mount_digiKaZJSEGd/usr/lib/libavif.so.13:/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libssl.so.1.1:/usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so:/usr/lib/x86_64-linux-gnu/libsmime3.so:/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0:/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0:/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
Starting digiKam into GDB...
Use 'bt' command on debugger prompt to get a crash backtrace.
Use 'q' command to quit debugger session.
gdb: /tmp/.mount_digiKaZJSEGd/usr/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4)
gdb: /tmp/.mount_digiKaZJSEGd/usr/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2)
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from digikam...
Starting program: /tmp/.mount_digiKaZJSEGd/usr/bin/digikam 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe1a04700 (LWP 331893)]
[New Thread 0x7fffe0fb1700 (LWP 331894)]
[New Thread 0x7fffd42c1700 (LWP 331895)]
[New Thread 0x7fffd3ac0700 (LWP 331896)]
[New Thread 0x7fffd32bf700 (LWP 331897)]
[New Thread 0x7fffd2abe700 (LWP 331898)]
[New Thread 0x7fffd22bd700 (LWP 331899)]
[New Thread 0x7fffd1abc700 (LWP 331900)]
[New Thread 0x7fffd12bb700 (LWP 331901)]
[New Thread 0x7fffd0aba700 (LWP 331902)]
[New Thread 0x7fffabfff700 (LWP 331903)]
[New Thread 0x7fffab7fe700 (LWP 331904)]
[New Thread 0x7fffaaffd700 (LWP 331905)]
[New Thread 0x7fffaa7fc700 (LWP 331906)]
[New Thread 0x7fffa9ffb700 (LWP 331907)]
[New Thread 0x7fffa97fa700 (LWP 331908)]
[New Thread 0x7fffa8ff9700 (LWP 331909)]
[New Thread 0x7fff8bfff700 (LWP 331910)]
[New Thread 0x7fff83fff700 (LWP 331911)]
[New Thread 0x7fff8b7fe700 (LWP 331912)]
[New Thread 0x7fff8affd700 (LWP 331913)]
[New Thread 0x7fff88d85700 (LWP 331914)]
[New Thread 0x7fff829e9700 (LWP 331915)]
[New Thread 0x7fff821e8700 (LWP 331921)]
[Thread 0x7fff821e8700 (LWP 331921) exited]
[New Thread 0x7fff821e8700 (LWP 331922)]
[New Thread 0x7fff819e7700 (LWP 331923)]
[New Thread 0x7fff811e6700 (LWP 331924)]
[New Thread 0x7fff809e5700 (LWP 331925)]
[Thread 0x7fff809e5700 (LWP 331925) exited]
[Thread 0x7fff811e6700 (LWP 331924) exited]
[Thread 0x7fff819e7700 (LWP 331923) exited]
[Thread 0x7fff821e8700 (LWP 331922) exited]
[New Thread 0x7fff811e6700 (LWP 331938)]
Digikam::OpenfacePreprocessor::loadModels: Cannot found faces engine model "shapepredictor.dat"
Digikam::OpenfacePreprocessor::loadModels: Faces recognition feature cannot be used!
Digikam::DNNFaceExtractor::loadModels: Cannot found faces engine DNN model "openface_nn4.small2.v1.t7"
Digikam::DNNFaceExtractor::loadModels: Faces recognition feature cannot be used!
[0808/203018.515563:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
[New Thread 0x7fff819e7700 (LWP 331939)]
[Detaching after fork from child process 331940]
[Detaching after fork from child process 331941]
[0808/203018.644924:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
[0808/203018.644987:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
[New Thread 0x7fff809e5700 (LWP 331942)]
[New Thread 0x7fff821e8700 (LWP 331943)]
[New Thread 0x7fff57a20700 (LWP 331944)]
[New Thread 0x7fff5721f700 (LWP 331945)]
[New Thread 0x7fff56a1e700 (LWP 331946)]
[New Thread 0x7fff5621d700 (LWP 331947)]
[New Thread 0x7fff55a1c700 (LWP 331948)]
[New Thread 0x7fff5521b700 (LWP 331949)]
[New Thread 0x7fff54a1a700 (LWP 331950)]
[New Thread 0x7fff37fff700 (LWP 331951)]
[New Thread 0x7fff377fe700 (LWP 331952)]
QtAV 1.13.0(Jul 29 2022, 13:04:38)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai, China Copyright (C) 2012-2019 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
[New Thread 0x7fff36ffd700 (LWP 331953)]
[New Thread 0x7fff367fc700 (LWP 331954)]
[New Thread 0x7fff35ffb700 (LWP 331955)]
[New Thread 0x7fff357fa700 (LWP 331956)]
[New Thread 0x7fff34ff9700 (LWP 331957)]
[New Thread 0x7fff1ffff700 (LWP 331958)]
[New Thread 0x7fff1f7fe700 (LWP 331959)]
[New Thread 0x7fff1effd700 (LWP 331960)]
[New Thread 0x7fff1e7fc700 (LWP 331961)]
[Detaching after fork from child process 331962]
[0808/203020.932737:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
[New Thread 0x7fff1dffb700 (LWP 331967)]
unknown: Unhandled container to remove :  Digikam::DigikamApp
[New Thread 0x7fff1cdea700 (LWP 331985)]
[New Thread 0x7ffefb7fe700 (LWP 331986)]
[New Thread 0x7ffefbfff700 (LWP 331987)]
[New Thread 0x7ffefaffd700 (LWP 331988)]
[New Thread 0x7ffefa7fc700 (LWP 331989)]
[New Thread 0x7ffef9ffb700 (LWP 331990)]
[Thread 0x7fff1cdea700 (LWP 331985) exited]
[New Thread 0x7ffefb7fe700 (LWP 331991)]
[Thread 0x7ffefb7fe700 (LWP 331986) exited]
[New Thread 0x7fff1cdea700 (LWP 331992)]
[Thread 0x7ffefa7fc700 (LWP 331989) exited]
[Thread 0x7ffefbfff700 (LWP 331987) exited]
[Thread 0x7ffef9ffb700 (LWP 331990) exited]
[Thread 0x7ffefaffd700 (LWP 331988) exited]
[New Thread 0x7ffefaffd700 (LWP 331993)]
[New Thread 0x7ffef9ffb700 (LWP 331994)]
[Detaching after fork from child process 331996]
unknown: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1318, resource id: 21006472, major code: 40 (TranslateCoords), minor code: 0
[Detaching after fork from child process 332002]
[Detaching after fork from child process 332006]
[Detaching after fork from child process 332007]
[Detaching after fork from child process 332008]
[Detaching after fork from child process 332009]
[Detaching after fork from child process 332010]
--Type <RET> for more, q to quit, c to continue without paging--

Thread 1 "digikam" received signal SIGSEGV, Segmentation fault.
QList<QVariant>::operator[] (i=0, this=0x3205fb8) at ././/include/QtCore/qlist.h:579
579     ././/include/QtCore/qlist.h: No such file or directory.
(gdb) bt
#0  QList<QVariant>::operator[](int) (i=0, this=0x3205fb8) at ././/include/QtCore/qlist.h:579
#1  Digikam::ExifToolConfPanel::slotExifToolBinaryFound(bool) (this=0x3155c00, found=<optimized out>)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/libs/widgets/metadata/exiftool/exiftoolconfpanel.cpp:174
#2  0x00007ffff3a872cd in  () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Core.so.5
#3  0x00007ffff642148f in Digikam::DBinarySearch::signalBinariesFound(bool) (this=this@entry=0x3155370, _t1=<optimized out>, _t1@entry=true)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/build/core/libs/widgets/core_digikamwidgets_obj_autogen/LEJT4E6KOJ/moc_dbinarysearch.cpp:165
#4  0x00007ffff64df4cf in Digikam::DBinarySearch::slotAreBinariesFound() (this=0x3155370)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/libs/widgets/files/dbinarysearch.cpp:212
#5  0x00007ffff3a872cd in  () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Core.so.5
#6  0x00007ffff64e29e9 in Digikam::DBinaryIface::checkDirForPath(QString const&) (this=0x3157388, possibleDir=<optimized out>)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/libs/widgets/files/dbinaryiface.cpp:388
#7  0x00007ffff64e1ede in Digikam::DBinaryIface::setup(QString const&) (this=0x3157388, prev=...)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/libs/widgets/files/dbinaryiface.cpp:319
#8  0x00007ffff64ca92d in Digikam::ExifToolConfPanel::setExifToolDirectory(QString const&) (this=<optimized out>, dir=...)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/libs/widgets/metadata/exiftool/exiftoolconfpanel.cpp:154
#9  0x00007ffff75bcf1b in Digikam::SetupMetadata::Private::readSettings() (this=0x7fffdc0094b0)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/utilities/setup/metadata/setupmetadata_p.cpp:135
#10 0x00007ffff75bbcdc in Digikam::SetupMetadata::SetupMetadata(QWidget*) (this=0x3071dd0, parent=<optimized out>)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/utilities/setup/metadata/setupmetadata.cpp:72
#11 0x00007ffff759b2b8 in Digikam::Setup::Setup(QWidget*) (this=0x2f35d10, parent=<optimized out>)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/utilities/setup/setup.cpp:169
#12 0x00007ffff759cea5 in Digikam::Setup::execDialog(QWidget*, Digikam::Setup::Page) (parent=0xc23980, page=Digikam::Setup::LastPageUsed)
    at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/utilities/setup/setup.cpp:342
--Type <RET> for more, q to quit, c to continue without paging--c
#13 0x00007ffff3a872cd in  () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Core.so.5
#14 0x00007ffff49f92c2 in QAction::triggered(bool) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#15 0x00007ffff49fb6a6 in QAction::activate(QAction::ActionEvent) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#16 0x00007ffff4b6797c in  () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#17 0x00007ffff4b6e9d0 in  () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#18 0x00007ffff4b6fa48 in QMenu::mouseReleaseEvent(QMouseEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#19 0x00007ffff4a3cb98 in QWidget::event(QEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#20 0x00007ffff4b71d79 in QMenu::event(QEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#21 0x00007ffff49ff19e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#22 0x00007ffff4a05b48 in QApplication::notify(QObject*, QEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#23 0x00007ffff3a54569 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Core.so.5
#24 0x00007ffff4a0504f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#25 0x00007ffff4a56f80 in  () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#26 0x00007ffff4a59763 in  () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#27 0x00007ffff49ff19e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#28 0x00007ffff4a059a0 in QApplication::notify(QObject*, QEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Widgets.so.5
#29 0x00007ffff3a54569 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Core.so.5
#30 0x00007ffff431b644 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Gui.so.5
#31 0x00007ffff431c935 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Gui.so.5
#32 0x00007ffff42f7eeb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Gui.so.5
#33 0x00007fffe1ad6e3a in  () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5XcbQpa.so.5
#34 0x00007ffff2b63e6b in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007ffff2b64118 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007ffff2b641cf in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007ffff3aa7e74 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Core.so.5
#38 0x00007ffff3a53203 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Core.so.5
#39 0x00007ffff3a5b08c in QCoreApplication::exec() () at /tmp/.mount_digiKaZJSEGd/usr/lib/libQt5Core.so.5
#40 0x0000000000405d5d in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /b/qt5-maintenance/dktemp/digikam-qt5-maintenance/core/app/main/main.cpp:418
Comment 10 Maik Qualmann 2022-08-08 18:42:05 UTC
Hmm, on Debian there was a problem with ExifTool throwing an error message. I can prevent the crash, but I have to look again where the cause was in Debian and ExifTool...

Maik
Comment 11 Maik Qualmann 2022-08-08 18:46:26 UTC
That was this Bug 454656, can you reproduce the locale error message with ExifTool?

Maik
Comment 12 Alain Knaff 2022-08-08 19:08:03 UTC
(In reply to Maik Qualmann from comment #11)
> That was this Bug 454656, can you reproduce the locale error message with
> ExifTool?
> 
> Maik

I'm not sure I understand what I'm supposed to do here.

So I uninstalled libimage-exiftool-perl, and tried to start digikam again, but the segfault still happens as soon as I attempt to open configuration.

Initially, I had my own locales set (crash happened), then I had removed all of them (crash still happened), and then I just set the following (crash still happens):
LANG=en_US.UTF8
LC_ALL=en_US.UTF8

Then I tried:
LANG=en_US
LC_ALL=en_US

but crash still happened
Comment 13 Maik Qualmann 2022-08-08 19:45:44 UTC
Which output do you see with:

exiftool -l -listr

Maik
Comment 14 Alain Knaff 2022-08-08 19:47:05 UTC
(In reply to Maik Qualmann from comment #13)
> Which output do you see with:
> 
> exiftool -l -listr
> 
> Maik

> exiftool -l -listr
Recognized file extensions:
  360         GoPro 360 video
  3FR         Hasselblad RAW format
  3G2         3rd Gen. Partnership Project 2 audio/video
  3GP         3rd Gen. Partnership Project audio/video
  3GP2        3rd Gen. Partnership Project 2 audio/video
  3GPP        3rd Gen. Partnership Project audio/video
  A           Static library
  AA          Audible Audiobook
  AAE         Apple edit information
  AAX         Audible Enhanced Audiobook
  ACFM        Adobe Composite Font Metrics
  ACR         American College of Radiology ACR-NEMA
  AFM         Adobe Font Metrics
  AI          Adobe Illustrator
  AIF         Audio Interchange File Format
  AIFC        Audio Interchange File Format Compressed
  AIFF        Audio Interchange File Format
  AIT         Adobe Illustrator
  ALIAS       MacOS file alias
  AMFM        Adobe Multiple Master Font Metrics
  APE         Monkey's Audio format
  APNG        Animated Portable Network Graphics
  ARQ         Sony Alpha Pixel-Shift RAW format
  ARW         Sony Alpha RAW format
  ASF         Microsoft Advanced Systems Format
  AVC         Advanced Video Connection
  AVI         Audio Video Interleaved
  AVIF        AV1 Image File Format
  AZW         Mobipocket electronic book
  AZW3        Mobipocket electronic book
  BMP         Windows Bitmap
  BPG         Better Portable Graphics
  BTF         Big Tagged Image File Format
  BZ2         BZIP2 archive
  CHM         Microsoft Compiled HTML format
  CIFF        Camera Image File Format
  COS         Capture One Settings
  CR2         Canon RAW 2 format
  CR3         Canon RAW 3 format
  CRM         Canon RAW Movie
  CRW         Canon RAW format
  CS1         Sinar CaptureShop 1-Shot RAW
  CSV         Comma-Separated Values
  CZI         Zeiss Integrated Software RAW
  DC3         Digital Imaging and Communications in Medicine
  DCM         Digital Imaging and Communications in Medicine
  DCP         DNG Camera Profile
  DCR         Kodak Digital Camera RAW
  DCX         Multi-page PC Paintbrush
  DEX         Dalvik Executable format
  DFONT       Macintosh Data fork Font
  DIB         Device Independent Bitmap
  DIC         Digital Imaging and Communications in Medicine
  DICM        Digital Imaging and Communications in Medicine
  DIVX        DivX media format
  DJV         DjVu image
  DJVU        DjVu image
  DLL         Windows Dynamic Link Library
  DNG         Digital Negative
  DOC         Microsoft Word Document
  DOCM        Office Open XML Document Macro-enabled
  DOCX        Office Open XML Document
  DOT         Microsoft Word Template
  DOTM        Office Open XML Document Template Macro-enabled
  DOTX        Office Open XML Document Template
  DPX         Digital Picture Exchange
  DR4         Canon VRD version 4 Recipe
  DS2         Digital Speech Standard 2
  DSS         Digital Speech Standard
  DV          Digital Video
  DVB         Digital Video Broadcasting
  DVR-MS      Microsoft Digital Video recording
  DWF         Autodesk drawing (Design Web Format)
  DWG         AutoCAD Drawing
  DYLIB       Mach-O Dynamic Link Library
  EIP         Capture One Enhanced Image Package
  EPS         Encapsulated PostScript Format
  EPS2        Encapsulated PostScript Format
  EPS3        Encapsulated PostScript Format
  EPSF        Encapsulated PostScript Format
  EPUB        Electronic Publication
  ERF         Epson Raw Format
  EXE         Windows executable file
  EXIF        Exchangable Image File Metadata
  EXR         Open EXR
  EXV         Exiv2 metadata
  F4A         Adobe Flash Player 9+ Audio
  F4B         Adobe Flash Player 9+ audio Book
  F4P         Adobe Flash Player 9+ Protected
  F4V         Adobe Flash Player 9+ Video
  FFF         Hasselblad Flexible File Format
  FIT         Flexible Image Transport System
  FITS        Flexible Image Transport System
  FLA         Macromedia/Adobe Flash project
  FLAC        Free Lossless Audio Codec
  FLIF        Free Lossless Image Format
  FLIR        FLIR File Format
  FLV         Flash Video
  FPF         FLIR Public image Format
  FPX         FlashPix
  GIF         Compuserve Graphics Interchange Format
  GPR         GoPro RAW
  GZ          GNU ZIP compressed archive
  GZIP        GNU ZIP compressed archive
  HDP         Windows HD Photo
  HDR         Radiance RGBE High Dynamic Range
  HEIC        High Efficiency Image Format still image
  HEIF        High Efficiency Image Format
  HIF         High Efficiency Image Format
  HTM         HyperText Markup Language
  HTML        HyperText Markup Language
  ICAL        iCalendar Schedule
  ICC         International Color Consortium
  ICM         International Color Consortium
  ICS         iCalendar Schedule
  IDML        Adobe InDesign Markup Language
  IIQ         Phase One Intelligent Image Quality RAW
  IND         Adobe InDesign
  INDD        Adobe InDesign Document
  INDT        Adobe InDesign Template
  INSP        Insta360 Picture
  INSV        Insta360 Video
  INX         Adobe InDesign Interchange
  ISO         ISO 9660 disk image
  ITC         iTunes Cover Flow
  J2C         JPEG 2000 codestream
  J2K         JPEG 2000 codestream
  JNG         JPG Network Graphics
  JP2         JPEG 2000 file
  JPC         JPEG 2000 codestream
  JPE         Joint Photographic Experts Group
  JPEG        Joint Photographic Experts Group
  JPF         JPEG 2000 file
  JPG         Joint Photographic Experts Group
  JPM         JPEG 2000 compound image
  JPX         JPEG 2000 with extensions
  JSON        JavaScript Object Notation
  JXR         JPEG XR
  K25         Kodak DC25 RAW
  KDC         Kodak Digital Camera RAW
  KEY         Apple Keynote presentation
  KTH         Apple Keynote Theme
  LA          Lossless Audio
  LFP         Lytro Light Field Picture
  LFR         Lytro Light Field Picture
  LNK         Windows shortcut
  LRI         Light RAW
  LRV         Low-Resolution Video
  M2T         MPEG-2 Transport Stream
  M2TS        MPEG-2 Transport Stream
  M2V         MPEG-2 Video
  M4A         MPEG-4 Audio
  M4B         MPEG-4 audio Book
  M4P         MPEG-4 Protected
  M4V         MPEG-4 Video
  MACOS       MacOS ._ sidecar file
  MAX         3D Studio MAX
  MEF         Mamiya (RAW) Electronic Format
  MIE         Meta Information Encapsulation format
  MIF         Magick Image File Format
  MIFF        Magick Image File Format
  MKA         Matroska Audio
  MKS         Matroska Subtitle
  MKV         Matroska Video
  MNG         Multiple-image Network Graphics
  MOBI        Mobipocket electronic book
  MODD        Sony Picture Motion metadata
  MOI         MOD Information file
  MOS         Creo Leaf Mosaic
  MOV         Apple QuickTime movie
  MP3         MPEG-1 Layer 3 audio
  MP4         MPEG-4 video
  MPC         Musepack Audio
  MPEG        MPEG-1 or MPEG-2 audio/video
  MPG         MPEG-1 or MPEG-2 audio/video
  MPO         Extended Multi-Picture format
  MQV         Sony Mobile Quicktime Video
  MRW         Minolta RAW format
  MTS         MPEG-2 Transport Stream
  MXF         Material Exchange Format
  NEF         Nikon (RAW) Electronic Format
  NEWER       Capture One Settings
  NMBTEMPLATE Apple Numbers Template
  NRW         Nikon RAW (2)
  NUMBERS     Apple Numbers spreadsheet
  O           Relocatable Object
  ODB         Open Document Database
  ODC         Open Document Chart
  ODF         Open Document Formula
  ODG         Open Document Graphics
  ODI         Open Document Image
  ODP         Open Document Presentation
  ODS         Open Document Spreadsheet
  ODT         Open Document Text file
  OFR         OptimFROG audio
  OGG         Ogg Vorbis audio file
  OGV         Ogg Video file
  ONP         ON1 Presets
  OPUS        Ogg Opus audio file
  ORF         Olympus RAW format
  OTF         Open Type Font
  PAC         Lossless Predictive Audio Compression
  PAGES       Apple Pages document
  PBM         Portable BitMap
  PCD         Kodak Photo CD Image Pac
  PCT         Apple PICTure
  PCX         PC Paintbrush
  PDB         Palm Database
  PDF         Adobe Portable Document Format
  PEF         Pentax (RAW) Electronic Format
  PFA         PostScript Font ASCII
  PFB         PostScript Font Binary
  PFM         Printer Font Metrics
  PGF         Progressive Graphics File
  PGM         Portable Gray Map
  PHP         PHP Hypertext Preprocessor
  PHP3        PHP Hypertext Preprocessor
  PHP4        PHP Hypertext Preprocessor
  PHP5        PHP Hypertext Preprocessor
  PHPS        PHP Hypertext Preprocessor
  PHTML       PHP Hypertext Preprocessor
  PICT        Apple PICTure
  PLIST       Apple Property List
  PMP         Sony DSC-F1 Cyber-Shot PMP
  PNG         Portable Network Graphics
  POT         Microsoft PowerPoint Template
  POTM        Office Open XML Presentation Template Macro-enabled
  POTX        Office Open XML Presentation Template
  PPAM        Office Open XML Presentation Addin Macro-enabled
  PPAX        Office Open XML Presentation Addin
  PPM         Portable Pixel Map
  PPS         Microsoft PowerPoint Slideshow
  PPSM        Office Open XML Presentation Slideshow Macro-enabled
  PPSX        Office Open XML Presentation Slideshow
  PPT         Microsoft PowerPoint Presentation
  PPTM        Office Open XML Presentation Macro-enabled
  PPTX        Office Open XML Presentation
  PRC         Palm Database
  PS          PostScript
  PS2         PostScript
  PS3         PostScript
  PSB         Photoshop Large Document
  PSD         Photoshop Document
  PSDT        Photoshop Document Template
  PSP         Paint Shop Pro
  PSPFRAME    Paint Shop Pro
  PSPIMAGE    Paint Shop Pro
  PSPSHAPE    Paint Shop Pro
  PSPTUBE     Paint Shop Pro
  QIF         QuickTime Image File
  QT          Apple QuickTime movie
  QTI         QuickTime Image File
  QTIF        QuickTime Image File
  R3D         Redcode RAW Video
  RA          Real Audio
  RAF         FujiFilm RAW Format
  RAM         Real Audio Metafile
  RAR         RAR Archive
  RAW         Kyocera Contax N Digital RAW or Panasonic RAW
  RIF         Resource Interchange File Format
  RIFF        Resource Interchange File Format
  RM          Real Media
  RMVB        Real Media Variable Bitrate
  RPM         Real Media Plug-in Metafile
  RSRC        Mac OS Resource
  RTF         Rich Text Format
  RV          Real Video
  RW2         Panasonic RAW 2
  RWL         Leica RAW
  RWZ         Rawzor compressed image
  SEQ         FLIR image Sequence
  SKETCH      Sketch design file
  SO          Shared Object file
  SR2         Sony RAW Format 2
  SRF         Sony RAW Format
  SRW         Samsung RAW format
  SVG         Scalable Vector Graphics
  SWF         Shockwave Flash
  TAR         TAR archive
  THM         Thumbnail
  THMX        Office Open XML Theme
  TIF         Tagged Image File Format
  TIFF        Tagged Image File Format
  TORRENT     BitTorrent description file
  TS          MPEG-2 Transport Stream
  TTC         True Type Font Collection
  TTF         True Type Font
  TUB         Paint Shop Pro
  TXT         Text file
  VCARD       Virtual Card
  VCF         Virtual Card
  VOB         Video Object
  VRD         Canon VRD Recipe Data
  VSD         Microsoft Visio Drawing
  WAV         WAVeform (Windows digital audio)
  WDP         Windows Media Photo
  WEBM        Google Web Movie
  WEBP        Google Web Picture
  WMA         Windows Media Audio
  WMF         Windows Metafile Format
  WMV         Windows Media Video
  WOFF        Web Open Font Format
  WOFF2       Web Open Font Format2
  WTV         Windows recorded TV show
  WV          WavePack lossless audio
  X3F         Sigma RAW format
  XCF         GIMP native image format
  XHTML       Extensible HyperText Markup Language
  XLA         Microsoft Excel Add-in
  XLAM        Office Open XML Spreadsheet Add-in Macro-enabled
  XLS         Microsoft Excel Spreadsheet
  XLSB        Office Open XML Spreadsheet Binary
  XLSM        Office Open XML Spreadsheet Macro-enabled
  XLSX        Office Open XML Spreadsheet
  XLT         Microsoft Excel Template
  XLTM        Office Open XML Spreadsheet Template Macro-enabled
  XLTX        Office Open XML Spreadsheet Template
  XMP         Extensible Metadata Platform
  ZIP         ZIP archive
Comment 15 Maik Qualmann 2022-08-08 19:50:38 UTC
Please again a GDB backtrace with activated debug output with set environment variable:

export QT_LOGGING_RULES="digikam*=true"

Maik
Comment 16 Alain Knaff 2022-08-08 19:59:09 UTC
Created attachment 151178 [details]
Debug output with QT_LOGGING_RULES="digikam*=true"
Comment 17 Maik Qualmann 2022-08-08 20:26:18 UTC
ExifTool throws an Error 255 here, which indicates an error. The cause is not clear.

Maik
Comment 18 Maik Qualmann 2022-08-08 20:36:51 UTC
Git commit eeb530fdd23b105dfd636ba241b007cb0b23d636 by Maik Qualmann.
Committed on 08/08/2022 at 20:36.
Pushed by mqualmann into branch 'qt5-maintenance'.

prevent crash from when ExifToolParser has empty data

M  +2    -2    core/libs/widgets/metadata/exiftool/exiftoolconfpanel.cpp

https://invent.kde.org/graphics/digikam/commit/eeb530fdd23b105dfd636ba241b007cb0b23d636
Comment 19 Maik Qualmann 2022-08-08 20:52:35 UTC
When you run the ExifTool command, what error code do you get afterwards?

exiftool -l -listr
echo $?

Maik
Comment 20 Alain Knaff 2022-08-08 21:25:33 UTC
(In reply to Maik Qualmann from comment #19)
> When you run the ExifTool command, what error code do you get afterwards?
> 
> exiftool -l -listr
> echo $?
> 
> Maik

I get 0:

> exiftool -l -listr ; echo $?
...
  XMP         Extensible Metadata Platform
  ZIP         ZIP archive
0
Comment 21 caulier.gilles 2023-05-02 07:33:04 UTC
@Alain

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 22 caulier.gilles 2023-05-20 14:17:20 UTC
@Alain Knaff,

digiKam 8.1.0 pre-release AppImage bundle is now ported to Exiv2 0.28 which
come with a huge list of bugfixes :

https://github.com/Exiv2/exiv2/issues/2406#issuecomment-1529139799

AppImage file is available here :

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

How to use AppImage under Linux :

https://docs.digikam.org/en/getting_started/installation.html#digikam-on-linux

Thanks in advance for your feedback

Gilles Caulier
Comment 23 Alain Knaff 2023-06-19 19:40:01 UTC
Problems seems to no longer happen on 7.9.0 as included in Debian 12. Or at least not when just paging through the images, as happened before.
Thanks