Bug 458690 - Crash after the digikam splash screen
Summary: Crash after the digikam splash screen
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-HEIF (show other bugs)
Version: 7.8.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-09-04 07:51 UTC by Kyle
Modified: 2022-09-04 13:31 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle 2022-09-04 07:51:13 UTC
Application: digikam (7.8.0)

Qt Version: 5.15.5
Frameworks Version: 5.97.0
Operating System: Linux 5.19.6-arch1-1 x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 5.25.4 [KCrashBackend]

-- Information about the crash:
Running arch linux with kde. Digikam crashes upon startup just after the splash screen.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Aborted

[KCrash Handler]
#4  0x00007f0cf0ea14dc in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0e51998 in raise () at /usr/lib/libc.so.6
#6  0x00007f0cf0e3b53d in abort () at /usr/lib/libc.so.6
#7  0x00007f0cf0e3b45c in  () at /usr/lib/libc.so.6
#8  0x00007f0cf0e4a4c6 in  () at /usr/lib/libc.so.6
#9  0x00007f0ced3e11df in  () at /usr/lib/libheif.so.1
#10 0x00007f0ced3ab2fb in  () at /usr/lib/libheif.so.1
#11 0x00007f0ced3bd1ae in  () at /usr/lib/libheif.so.1
#12 0x00007f0ced3b02d0 in heif_context_read_from_reader () at /usr/lib/libheif.so.1
#13 0x00007f0c762e1bf4 in  () at /usr/lib/qt/plugins/digikam/dimg/DImg_HEIF_Plugin.so
#14 0x00007f0cf2dd367e in Digikam::DImg::load(QString const&, int, Digikam::DImgLoaderObserver*, Digikam::DRawDecoding const&) () at /usr/lib/libdigikamcore.so.7.8.0
#15 0x00007f0cf2dd3d44 in Digikam::DImg::loadItemInfo(QString const&, bool, bool, bool, bool) () at /usr/lib/libdigikamcore.so.7.8.0
#16 0x00007f0cf38858a7 in Digikam::ItemScanner::loadFromDisk() () at /usr/lib/libdigikamdatabase.so.7.8.0
#17 0x00007f0cf3885f45 in Digikam::ItemScanner::newFile(int) () at /usr/lib/libdigikamdatabase.so.7.8.0
#18 0x00007f0cf37f3929 in Digikam::CollectionScanner::scanNewFile(QFileInfo const&, int) () at /usr/lib/libdigikamdatabase.so.7.8.0
#19 0x00007f0cf37f5ef1 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&, bool) () at /usr/lib/libdigikamdatabase.so.7.8.0
#20 0x00007f0cf37f5e09 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&, bool) () at /usr/lib/libdigikamdatabase.so.7.8.0
#21 0x00007f0cf37f5e09 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&, bool) () at /usr/lib/libdigikamdatabase.so.7.8.0
#22 0x00007f0cf37f5e09 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&, bool) () at /usr/lib/libdigikamdatabase.so.7.8.0
#23 0x00007f0cf37f68c0 in Digikam::CollectionScanner::scanAlbumRoot(Digikam::CollectionLocation const&) () at /usr/lib/libdigikamdatabase.so.7.8.0
#24 0x00007f0cf37f6e84 in Digikam::CollectionScanner::completeScan() () at /usr/lib/libdigikamdatabase.so.7.8.0
#25 0x00007f0cf3c9e2df in Digikam::ScanController::run() () at /usr/lib/libdigikamgui.so.7.8.0
#26 0x00007f0cf14e42ea in  () at /usr/lib/libQt5Core.so.5
#27 0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#28 0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 11 (Thread 0x7f0cb5ffb6c0 (LWP 31816) "QDBusConnection"):
#1  0x00007f0ce0d1afc2 in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#2  0x00007f0ce0d70cd8 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007f0ce0d18252 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007f0cf16d827f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f0cf168611c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007f0cf14e74bf in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007f0ceeba3cba in  () at /usr/lib/libQt5DBus.so.5
#8  0x00007f0cf14e42ea in  () at /usr/lib/libQt5Core.so.5
#9  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#10 0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 10 (Thread 0x7f0cb67fc6c0 (LWP 31813) "digikam:gdrv0"):
#1  0x00007f0cf0e9eb60 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007f0cca0b2c5c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007f0cca0ac35c in  () at /usr/lib/dri/iris_dri.so
#4  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 9 (Thread 0x7f0cb6ffd6c0 (LWP 31812) "digikam:sh5"):
#1  0x00007f0cf0e9eb60 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007f0cca0b2c5c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007f0cca0ac35c in  () at /usr/lib/dri/iris_dri.so
#4  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 8 (Thread 0x7f0cb77fe6c0 (LWP 31811) "digikam:sh4"):
#1  0x00007f0cf0e9eb60 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007f0cca0b2c5c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007f0cca0ac35c in  () at /usr/lib/dri/iris_dri.so
#4  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7f0cb7fff6c0 (LWP 31810) "digikam:sh3"):
#1  0x00007f0cf0e9eb60 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007f0cca0b2c5c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007f0cca0ac35c in  () at /usr/lib/dri/iris_dri.so
#4  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7f0cbcdff6c0 (LWP 31809) "digikam:sh2"):
#1  0x00007f0cf0e9eb60 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007f0cca0b2c5c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007f0cca0ac35c in  () at /usr/lib/dri/iris_dri.so
#4  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f0cc8e486c0 (LWP 31808) "digikam:sh1"):
#1  0x00007f0cf0e9eb60 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007f0cca0b2c5c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007f0cca0ac35c in  () at /usr/lib/dri/iris_dri.so
#4  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f0cc96496c0 (LWP 31807) "digikam:sh0"):
#1  0x00007f0cf0e9eb60 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007f0cca0b2c5c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007f0cca0ac35c in  () at /usr/lib/dri/iris_dri.so
#4  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f0cc9e4a6c0 (LWP 31806) "digikam:disk$0"):
#1  0x00007f0cf0e9eb60 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007f0cca0b2c5c in  () at /usr/lib/dri/iris_dri.so
#3  0x00007f0cca0ac35c in  () at /usr/lib/dri/iris_dri.so
#4  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#5  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f0ccc7966c0 (LWP 31803) "QXcbEventQueue"):
#1  0x00007f0cdfe7c20b in  () at /usr/lib/libxcb.so.1
#2  0x00007f0cdfe7dccd in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007f0cccb88472 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f0cf14e42ea in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f0cf0e9f78d in  () at /usr/lib/libc.so.6
#6  0x00007f0cf0f208e4 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f0cccce2180 (LWP 31789) "digikam"):
#1  0x00007f0cdfe7c20b in  () at /usr/lib/libxcb.so.1
#2  0x00007f0cdfe7c540 in  () at /usr/lib/libxcb.so.1
#3  0x00007f0cdfe7c7a7 in  () at /usr/lib/libxcb.so.1
#4  0x00007f0cdfe7d851 in xcb_flush () at /usr/lib/libxcb.so.1
#5  0x00007f0cccb7927b in QXcbWindow::hide() () at /usr/lib/libQt5XcbQpa.so.5
#6  0x00007f0cf1b4c9da in QWindowPrivate::setVisible(bool) () at /usr/lib/libQt5Gui.so.5
#7  0x00007f0cf23ad153 in QWidgetPrivate::hide_helper() () at /usr/lib/libQt5Widgets.so.5
#8  0x00007f0cf23ae949 in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#9  0x00007f0cf16be280 in  () at /usr/lib/libQt5Core.so.5
#10 0x00007f0cf16c062f in QTimer::timeout(QTimer::QPrivateSignal) () at /usr/lib/libQt5Core.so.5
#11 0x00007f0cf16b1296 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#12 0x00007f0cf2378b3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f0cf168d978 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#14 0x00007f0cf16d7aa3 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#15 0x00007f0cf16d80e2 in  () at /usr/lib/libQt5Core.so.5
#16 0x00007f0ce0d1ab2b in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#17 0x00007f0ce0d70e79 in  () at /usr/lib/libglib-2.0.so.0
#18 0x00007f0ce0d18252 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#19 0x00007f0cf16d825c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#20 0x00007f0cf168611c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#21 0x00007f0cf3c96724 in Digikam::ScanController::completeCollectionScanCore(bool, bool, bool) () at /usr/lib/libdigikamgui.so.7.8.0
#22 0x00007f0cf3dc2c7c in Digikam::NewItemsFinder::slotStart() () at /usr/lib/libdigikamgui.so.7.8.0
#23 0x00007f0cf16b12f0 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#24 0x00007f0cf2378b3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007f0cf168d978 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#26 0x00007f0cf168e483 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#27 0x00007f0cf16d4478 in  () at /usr/lib/libQt5Core.so.5
#28 0x00007f0ce0d1ab2b in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#29 0x00007f0ce0d70e79 in  () at /usr/lib/libglib-2.0.so.0
#30 0x00007f0ce0d18252 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#31 0x00007f0cf16d825c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#32 0x00007f0cf168611c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#33 0x00007f0cf257354b in QDialog::exec() () at /usr/lib/libQt5Widgets.so.5
#34 0x00007f0cf316d87e in Digikam::FilesDownloader::startDownload() () at /usr/lib/libdigikamcore.so.7.8.0
#35 0x000055ccd49d70c2 in  ()
#36 0x00007f0cf0e3c2d0 in  () at /usr/lib/libc.so.6
#37 0x00007f0cf0e3c38a in __libc_start_main () at /usr/lib/libc.so.6
#38 0x000055ccd49d8325 in  ()
[Inferior 1 (process 31789) detached]

Reported using DrKonqi
Comment 1 Maik Qualmann 2022-09-04 07:59:22 UTC
See last comments in this Bug 456688

Maik
Comment 2 caulier.gilles 2022-09-04 08:01:10 UTC
It crash in libheif to load HEIF images.

Can you reproduce the crash with the last digiKam 7.8.0 AppImage which use the current implementation of libheif (not the last stable 1.12.0 release which has bugs) ?

Gilles Caulier
Comment 3 Antonio Rojas 2022-09-04 09:30:05 UTC
(In reply to caulier.gilles from comment #2)
> It crash in libheif to load HEIF images.
> 
> Can you reproduce the crash with the last digiKam 7.8.0 AppImage which use
> the current implementation of libheif (not the last stable 1.12.0 release
> which has bugs) ?
> 
> Gilles Caulier

Latest libheif is 1.13.0, and this still happens.
Comment 4 Maik Qualmann 2022-09-04 09:45:53 UTC
Git commit 082c4c54c9a57cd3750fcd2f11f8344b19dd4f02 by Maik Qualmann.
Committed on 04/09/2022 at 09:44.
Pushed by mqualmann into branch 'qt5-maintenance'.

fix return from QIODevice::seek() function
The libheif inverted again in bitstream.h.
Related: bug 456688

M  +2    -1    core/dplugins/dimg/heif/dimgheifloader_load.cpp

https://invent.kde.org/graphics/digikam/commit/082c4c54c9a57cd3750fcd2f11f8344b19dd4f02
Comment 5 Antonio Rojas 2022-09-04 10:02:31 UTC
082c4c54c9a57cd3750fcd2f11f8344b19dd4f02 fixes the crash here, patch applied downstream.
Comment 6 caulier.gilles 2022-09-04 10:03:22 UTC
Thanks Antonio for the feedback. We will needs a 7.9.0 release after all (:=))))

Gilles
Comment 7 Maik Qualmann 2022-09-04 10:25:57 UTC
I'm really annoyed by this bug...

Maik
Comment 8 Kyle 2022-09-04 13:31:27 UTC
Thank you to everyone who has managed to sort this out. My computer just pinged for a DigiKam and libheif update, and it's now fixed. I'm always amazed by the open source community. Just tested DigiKam and everything is working perfectly now.