Bug 474205 - DigiKam crashes while it scans video albums
Summary: DigiKam crashes while it scans video albums
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (show other bugs)
Version: 8.1.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-09-06 04:56 UTC by PVU
Modified: 2023-09-06 05:55 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PVU 2023-09-06 04:56:06 UTC
Application: digikam (8.1.0)

Qt Version: 5.15.10
Frameworks Version: 5.109.0
Operating System: Linux 6.2.0-32-generic x86_64
Windowing System: Wayland
Distribution: KDE neon 5.27
DrKonqi: 5.27.7 [KCrashBackend]

-- Information about the crash:
When digiKam was opened, it ran as usual.
When I go to duplicates, or whatever that refreshes the albums, like just adding a new album, it crashes.
I had added the winehq-repo a few hrs ago  before the crash, and installed winehq-staging.
It had dependency problems that had to be resolved. DigiKam got uninstalled in that process, idk why.
When I was installing digiKam back, there were issues with the same dependencies, again.
I ran 'apt --fix-broken install', and the problems got fixed. I still had to manually install some dependencies, and then digikam got installed.
Then this problem.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Bus error

[KCrash Handler]
#4  0x00007f037e4d02aa in QReadWriteLock::tryLockForRead(int) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f03811581f1 in Digikam::Album::childAtRow(int) const () at /lib/x86_64-linux-gnu/libdigikamgui.so.8.1.0
#6  0x00007f03811494a9 in Digikam::AbstractAlbumModel::index(int, int, QModelIndex const&) const () at /lib/x86_64-linux-gnu/libdigikamgui.so.8.1.0
#7  0x00007f038117d2a8 in  () at /lib/x86_64-linux-gnu/libdigikamgui.so.8.1.0
#8  0x00007f037e6f4958 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f037e655af2 in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f037e65e462 in QAbstractItemModel::endInsertRows() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f037e68ae85 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f037e68e591 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f037e6926d6 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f037e6f4958 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f037e655af2 in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f037e65e462 in QAbstractItemModel::endInsertRows() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f03811486c5 in Digikam::AbstractAlbumModel::slotAlbumAdded(Digikam::Album*) () at /lib/x86_64-linux-gnu/libdigikamgui.so.8.1.0
#18 0x00007f037e6f4924 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f03811538e6 in Digikam::AlbumManager::signalAlbumAdded(Digikam::Album*) () at /lib/x86_64-linux-gnu/libdigikamgui.so.8.1.0
#20 0x00007f0381196ec2 in Digikam::AlbumManager::scanPAlbums() () at /lib/x86_64-linux-gnu/libdigikamgui.so.8.1.0
#21 0x00007f037e6f4958 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f037e6f89ae in QTimer::timeout(QTimer::QPrivateSignal) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f037e6ea2ef in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f037f36c763 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f037e6bce7a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f037e71569b in QTimerInfoList::activateTimers() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f037e715f9c in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f036f7c7d3b in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f036f81d258 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f036f7c53e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f037e716368 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f037e6bb79b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f03810eca30 in Digikam::ScanController::completeCollectionScanCore(bool, bool, bool) () at /lib/x86_64-linux-gnu/libdigikamgui.so.8.1.0
#34 0x00007f0381294eeb in Digikam::NewItemsFinder::slotStart() () at /lib/x86_64-linux-gnu/libdigikamgui.so.8.1.0
#35 0x00007f037e6ea3ce in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f037f36c763 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007f037e6bce7a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007f037e6bff77 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007f037e716d17 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007f036f7c7d3b in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f036f81d258 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f036f7c53e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f037e716368 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x00007f037e6bb79b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007f037e6c3d44 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#46 0x0000556875d359b4 in  ()
#47 0x00007f037dc29d90 in __libc_start_call_main (main=main@entry=0x556875d34850, argc=argc@entry=3, argv=argv@entry=0x7ffdda5d42e8) at ../sysdeps/nptl/libc_start_call_main.h:58
#48 0x00007f037dc29e40 in __libc_start_main_impl (main=0x556875d34850, argc=3, argv=0x7ffdda5d42e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdda5d42d8) at ../csu/libc-start.c:392
#49 0x0000556875d36775 in  ()
[Inferior 1 (process 41209) detached]

The reporter indicates this bug may be a duplicate of or related to bug 466259, bug 473913.

Reported using DrKonqi
Comment 1 caulier.gilles 2023-09-06 05:44:39 UTC
There is no relation-ship between digiKam and winehq stuff... At all...

digiKam do not use the Windows emulator, it's a pure Qt/Linux application. So i suspect a wrong packaging in your system.

Your backtrace do not indicate where the crash is located. We can see the scanning process from the database and that all...

To double check, you can try to run the official digiKam 8.1.0 AppImage bundle that we provide for Linux.

Best

Gilles Caulier
Comment 2 Maik Qualmann 2023-09-06 05:55:15 UTC
Fixed with Bug 473801

Your Qt library is built with debugging assertions or you have set an appropriate environment variable.

Maik