Bug 500834 - digiKam crashes automatically after 1m 50 s
Summary: digiKam crashes automatically after 1m 50 s
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (show other bugs)
Version: 8.5.0
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-27 20:14 UTC by gillesfabre34
Modified: 2025-03-08 03:48 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gillesfabre34 2025-02-27 20:14:10 UTC
SUMMARY : Digikam crashes after 1m 50 s 


STEPS TO REPRODUCE
1. Open Digikam
2. Wait 1m 50 s
3. That's it

OBSERVED RESULT

Crash

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: Sequoïa 15.3.1 (Intel Core i9)
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Digikam crashed for the first time yesterday. Maybe an update of MacOS ?

 Apple logs :

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               digikam [1352]
Path:                  /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam
Identifier:            org.digiKam
Version:               8.5.0 (8.5.0)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2025-02-27 20:58:51.3112 +0100
OS Version:            macOS 15.3.1 (24D70)
Report Version:        12
Bridge OS Version:     9.3 (22P3051)
Anonymous UUID:        9BC7DBEE-F79A-CCC4-8536-5A8E7575B871


Time Awake Since Boot: 1300 seconds

System Integrity Protection: enabled

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000100000001
Exception Codes:       0x0000000000000001, 0x0000000100000001

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [1352]

VM Region Info: 0x100000001 is not in any region.  Bytes before following region: 118206463
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      1070bb000-1070cb000    [   64K] r-x/r-x SM=COW  /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0   QtCore                        	       0x10b1ac731 QMutex::lock() + 43
1   QtCore                        	       0x10b1ad346 0x10b190000 + 119622
2   libdigikamgui.8.5.0.dylib     	       0x107bbc304 0x107997000 + 2249476
3   libdigikamgui.8.5.0.dylib     	       0x107bbc2ad 0x107997000 + 2249389
4   libdigikamgui.8.5.0.dylib     	       0x107bb85fd 0x107997000 + 2233853
5   libdigikamgui.8.5.0.dylib     	       0x107bb8944 Digikam::Album::childAtRow(int) const + 36
6   libdigikamgui.8.5.0.dylib     	       0x107ba4297 Digikam::AbstractAlbumModel::index(int, int, QModelIndex const&) const + 119
7   libdigikamgui.8.5.0.dylib     	       0x107beeff7 0x107997000 + 2457591
8   QtCore                        	       0x10b2e42bc 0x10b190000 + 1393340
9   QtCore                        	       0x10b297061 QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) + 77
10  QtCore                        	       0x10b296fbc QAbstractItemModel::endInsertRows() + 70
11  QtCore                        	       0x10b2ac163 0x10b190000 + 1163619
12  QtCore                        	       0x10b2ac547 0x10b190000 + 1164615
13  QtCore                        	       0x10b2ae3e7 0x10b190000 + 1172455
14  QtCore                        	       0x10b2e42bc 0x10b190000 + 1393340
15  QtCore                        	       0x10b297061 QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) + 77
16  QtCore                        	       0x10b296fbc QAbstractItemModel::endInsertRows() + 70
17  libdigikamgui.8.5.0.dylib     	       0x107ba3596 Digikam::AbstractAlbumModel::slotAlbumAdded(Digikam::Album*) + 86
18  libdigikamgui.8.5.0.dylib     	       0x107ba6866 0x107997000 + 2160742
19  libdigikamgui.8.5.0.dylib     	       0x107ba67ad 0x107997000 + 2160557
20  libdigikamgui.8.5.0.dylib     	       0x107ba66e2 0x107997000 + 2160354
21  QtCore                        	       0x10b2e4239 0x10b190000 + 1393209
22  libdigikamgui.8.5.0.dylib     	       0x107c05824 Digikam::AlbumManager::signalAlbumAdded(Digikam::Album*) + 84
23  libdigikamgui.8.5.0.dylib     	       0x107c1508e Digikam::AlbumManager::insertPAlbum(Digikam::PAlbum*, Digikam::PAlbum*) + 302
24  libdigikamgui.8.5.0.dylib     	       0x107c14276 Digikam::AlbumManager::scanPAlbums() + 3542
25  libdigikamgui.8.5.0.dylib     	       0x107c06b11 0x107997000 + 2554641
26  QtCore                        	       0x10b2e42bc 0x10b190000 + 1393340
27  QtCore                        	       0x10b2ea756 QTimer::timeout(QTimer::QPrivateSignal) + 52
28  QtCore                        	       0x10b2df6f8 QObject::event(QEvent*) + 90
29  QtWidgets                     	       0x1091e2b32 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 212
30  QtWidgets                     	       0x1091e396c QApplication::notify(QObject*, QEvent*) + 476
31  QtCore                        	       0x10b2c5632 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 138
32  QtCore                        	       0x10b303643 QTimerInfoList::activateTimers() + 439
33  libqcocoa.dylib               	       0x11fa8b6db 0x11fa5b000 + 198363
34  libqcocoa.dylib               	       0x11fa8b6ba 0x11fa5b000 + 198330
35  CoreFoundation                	    0x7ff80f401ca9 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
36  CoreFoundation                	    0x7ff80f401c4b __CFRunLoopDoSource0 + 157
37  CoreFoundation                	    0x7ff80f401a1e __CFRunLoopDoSources0 + 203
38  CoreFoundation                	    0x7ff80f40065e __CFRunLoopRun + 960
39  CoreFoundation                	    0x7ff80f3ffc6e CFRunLoopRunSpecific + 550
40  HIToolbox                     	    0x7ff81ac07413 RunCurrentEventLoopInMode + 292
41  HIToolbox                     	    0x7ff81ac0cd63 ReceiveNextEventCommon + 501
42  HIToolbox                     	    0x7ff81ac0d029 _BlockUntilNextEventMatchingListInModeWithFilter + 66
43  AppKit                        	    0x7ff812d62b33 _DPSNextEvent + 902
44  AppKit                        	    0x7ff8137b78b8 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1290
45  AppKit                        	    0x7ff812d53aa9 -[NSApplication run] + 610
46  libqcocoa.dylib               	       0x11fa8be9f 0x11fa5b000 + 200351
47  QtCore                        	       0x10b2c34cd QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 279
48  libdigikamgui.8.5.0.dylib     	       0x107b1d468 Digikam::ScanController::completeCollectionScanCore(bool, bool, bool) + 184
49  libdigikamgui.8.5.0.dylib     	       0x107b1d4eb Digikam::ScanController::completeCollectionScanInBackground(bool, bool) + 59
50  libdigikamgui.8.5.0.dylib     	       0x107d9920a Digikam::NewItemsFinder::slotStart() + 714
51  libdigikamgui.8.5.0.dylib     	       0x107d9a047 0x107997000 + 4206663
52  QtCore                        	       0x10b2df8e1 QObject::event(QEvent*) + 579
53  QtWidgets                     	       0x1091e2b32 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 212
54  QtWidgets                     	       0x1091e396c QApplication::notify(QObject*, QEvent*) + 476
55  QtCore                        	       0x10b2c5632 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 138
56  QtCore                        	       0x10b2c61b2 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 408
57  libqcocoa.dylib               	       0x11fa8c6a6 0x11fa5b000 + 202406
58  libqcocoa.dylib               	       0x11fa8cc54 0x11fa5b000 + 203860
59  CoreFoundation                	    0x7ff80f401ca9 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
60  CoreFoundation                	    0x7ff80f401c4b __CFRunLoopDoSource0 + 157
61  CoreFoundation                	    0x7ff80f401a1e __CFRunLoopDoSources0 + 203
62  CoreFoundation                	    0x7ff80f40065e __CFRunLoopRun + 960
63  CoreFoundation                	    0x7ff80f3ffc6e CFRunLoopRunSpecific + 550
64  HIToolbox                     	    0x7ff81ac07413 RunCurrentEventLoopInMode + 292
65  HIToolbox                     	    0x7ff81ac0cd63 ReceiveNextEventCommon + 501
66  HIToolbox                     	    0x7ff81ac0d029 _BlockUntilNextEventMatchingListInModeWithFilter + 66
67  AppKit                        	    0x7ff812d62b33 _DPSNextEvent + 902
68  AppKit                        	    0x7ff8137b78b8 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1290
69  AppKit                        	    0x7ff812d53aa9 -[NSApplication run] + 610
70  libqcocoa.dylib               	       0x11fa8be9f 0x11fa5b000 + 200351
71  QtCore                        	       0x10b2c34cd QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 279
72  QtCore                        	       0x10b2c5a93 QCoreApplication::exec() + 123
73  digikam                       	       0x1070c72df 0x1070bb000 + 49887
74  dyld                          	    0x7ff80ef8c2cd start + 1805
Comment 1 Maik Qualmann 2025-02-27 20:58:19 UTC
Git commit 1267301c164fff12cda1b9aed089d34ad5d2fa62 by Maik Qualmann.
Committed on 27/02/2025 at 20:57.
Pushed by mqualmann into branch 'master'.

use QReadWriteLock::NonRecursive for Album cache

M  +1    -2    core/libs/album/engine/album.cpp

https://invent.kde.org/graphics/digikam/-/commit/1267301c164fff12cda1b9aed089d34ad5d2fa62
Comment 2 gillesfabre34 2025-02-28 19:35:34 UTC
(In reply to Maik Qualmann from comment #1)
> Git commit 1267301c164fff12cda1b9aed089d34ad5d2fa62 by Maik Qualmann.
> Committed on 27/02/2025 at 20:57.
> Pushed by mqualmann into branch 'master'.
> 
> use QReadWriteLock::NonRecursive for Album cache
> 
> M  +1    -2    core/libs/album/engine/album.cpp
> 
> https://invent.kde.org/graphics/digikam/-/commit/
> 1267301c164fff12cda1b9aed089d34ad5d2fa62

Thanks Maik.
What should I do now ?
Comment 3 caulier.gilles 2025-02-28 21:02:55 UTC
Please test the Maik fix using the 8.6.0 pre-release Package available here :

https://files.kde.org/digikam/
Comment 4 Maik Qualmann 2025-03-01 07:23:59 UTC
*** This bug has been marked as a duplicate of bug 492658 ***
Comment 5 gillesfabre34 2025-03-03 17:05:20 UTC
(In reply to caulier.gilles from comment #3)
> Please test the Maik fix using the 8.6.0 pre-release Package available here :
> 
> https://files.kde.org/digikam/

@caulier.gilles @maik sorry, but I have a Mac OS Intel (Sequoïa) and I don't see any package like .pkg or .dmg

Could you tell me where is this package ?

Thanks
Comment 6 caulier.gilles 2025-03-03 19:53:27 UTC
In the legacy sub dir :

https://files.kde.org/digikam/legacy/
Comment 7 gillesfabre34 2025-03-07 19:55:36 UTC
(In reply to caulier.gilles from comment #6)
> In the legacy sub dir :
> 
> https://files.kde.org/digikam/legacy/

Thank you very much Gilles and Maik !
All is ok now