darktable 4.6 Mac 14.2.1 crashes at every start

I have been working with 4.6 on my MacBook Pro (M1) since release and it worked flawlessly. Yesterday it crashed once and since then I am not able to start it. I deleted the app, reinstalled it but no chance. I don’t know if the report will help but this is what I get:
Translated Report (Full Report Below)

Process: darktable [1356]
Path: /Applications/darktable.app/Contents/MacOS/darktable
Identifier: org.darktable
Version: 4.6.0 (4.6.0.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2024-01-05 11:25:04.2020 +0100
OS Version: macOS 14.2.1 (23C71)
Report Version: 12
Anonymous UUID: 589638FD-78CE-E294-83DF-5F256AF9309B

Time Awake Since Boot: 1300 seconds

System Integrity Protection: enabled

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

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

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

VM Region Info: 0 is not in any region. Bytes before following region: 4370448384
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
—>
__TEXT 1047fc000-10480c000 [ 64K] r-x/r-x SM=COW …cOS/darktable

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_pthread.dylib 0x18823c600 pthread_mutex_lock + 12
1 libdarktable.dylib 0x10525f0cc dt_pthread_mutex_lock + 8 (dtpthread.h:309) [inlined]
2 libdarktable.dylib 0x10525f0cc dt_cache_get_with_caller + 132 (cache.c:168)
3 libdarktable.dylib 0x1052efb4c dt_image_cache_get + 32 (image_cache.c:232)
4 libdarktable.dylib 0x1052e9570 dt_image_set_raw_aspect_ratio + 36 (image.c:1054)
5 libdarktable.dylib 0x105260bf8 _collection_update_aspect_ratio + 268 (collection.c:582) [inlined]
6 libdarktable.dylib 0x105260bf8 dt_collection_update + 1780 (collection.c:401)
7 libdarktable.dylib 0x105261a80 dt_collection_update_query + 1252 (collection.c:2449)
8 libdarktable.dylib 0x10525fd2c dt_collection_reset + 68 (collection.c:418) [inlined]
9 libdarktable.dylib 0x10525fd2c dt_collection_new + 272 (collection.c:93)
10 libdarktable.dylib 0x1052a15d4 dt_init + 6700 (darktable.c:1448)
11 darktable 0x10480bf64 main + 48 (main.c:93)
12 dyld 0x187ec10e0 start + 2360

I’m having similar boot problems for DT 4.6 as well, but it’s all related to OpenCL, freezing the entire system here and there.
I’m using it on Linux, but try deleting the config file for DT or disabling OpenCL

do you know where I can find this config file on my Mac? Library?

Unfortunately I’m not familiar with Macs, but I’m sure someone will hop here to help.

In Linux it’s in the .config folder of the user dir. You can try google it for Macs.

It’s in a hidden folder in your user home: /Users/your_user/.config/darktable

You should first start with creating a log via datktable -d common. Deleting stuff does not help to understand what’s going on.

1 Like

Hi, g-man -
I get this info if I try to start in Terminal:
… Console.app % darktable -d common

zsh: command not found: darktable

I can share the crash report if this could help.

I just moved the complete darktable folder into my documents and deleted it in .config folder. Darktable startet with no problem thus the problem definitely lies in this folder. The question is how can I get it back without the problems.
Any idea?

Without a -d common log, I dont think we will have any idea.

The 3 main files in that folder are the darktablerc, the data.db, and library.db. Move the darktablerc one back into the original location to see if the problem returns, if not, then move the data.db and lastly the library.db.

thanks. I tried to get all 3 back at the same time and ran into the same troubles as before. I will now try one after one. Thanks
Worst case - new library :cold_sweat:

unfortunately it is the library.db which causes the crash. Is there any possibility to repair/rebuild the lib?

The snp are automatic backups of the library. You have one from 05Jan24 that you can use. Rename the Library.db to Libraty.old and then rename the snp to Library.db

thanks!!

unfortunately none of the last 4 libs did work. I finally gave up. At least the edited files are still here.
I don’t know but somehow 4.6 seems to have some problems. At importing with recursive folders the import doesn’t work at all. I see the files and DT says the are imported but nothing happens.
Anyway thanks Ernst

You need to provide the path to the binary:

/Applications/darktable.app/Contents/MacOS/darktable -d common

And to disable opencl temporarily:
/Applications/darktable.app/Contents/MacOS/darktable --disable-opencl -d common

thanks

Maybe one of the images in your last accessed folder causes the trouble? If you remember which folder it was, you could temporarily try to block access by renaming it.
I had a similar problem with an earlier version, and ultimately deleting one specific sidecar helped.

Speculating isn‘t helpful - it needs the infos of the debug log because there might be several reasons.