Mac nightly build crash on opening

On iMac OS 13.4.1, x86-64 dt nightly build 4.5.0 +209 crash on opening with message “darktable quit unexpectedly”
Deleting dt .config and .cache folder before opening did not avoid the crash.

Here is the first part of the crash report:


Translated Report (Full Report Below)

Process: darktable [10567]
Path: /Applications/darktable.app/Contents/MacOS/darktable
Identifier: org.darktable
Version: 4.5.0 (4.5.0.209)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-08-02 09:58:08.4331 +0200
OS Version: macOS 13.4.1 (22F82)
Report Version: 12
Bridge OS Version: 7.5 (20P5060)
Anonymous UUID: 71CF248D-4AA3-5B9D-7B9E-4995FD24032B

Sleep/Wake UUID: 126C9255-787F-472B-BEDF-2D1B823188CC

Time Awake Since Boot: 130000 seconds
Time Since Wake: 211 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: @loader_path/…/…/…/…/opt/freetype/lib/libfreetype.6.dylib
Referenced from: <177297C1-F375-3917-A6C3-81A986FD8250> /Applications/darktable.app/Contents/Resources/lib/libharfbuzz.0.dylib
Reason: tried: ‘/Applications/darktable.app/Contents/Resources/lib/…/…/…/…/opt/freetype/lib/libfreetype.6.dylib’ (no such file), ‘/usr/local/lib/libfreetype.6.dylib’ (no such file), ‘/usr/lib/libfreetype.6.dylib’ (no such file, not in dyld cache)
(terminated at launch; ignore backtrace)

Thread 0 Crashed:
0 dyld 0x7ff81c44cc42 __abort_with_payload + 10
1 dyld 0x7ff81c466fd7 abort_with_payload_wrapper_internal + 82
2 dyld 0x7ff81c467009 abort_with_payload + 9
3 dyld 0x7ff81c3eb8f0 dyld4::halt(char const*) + 375
4 dyld 0x7ff81c3e8b71 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 4526
5 dyld 0x7ff81c3e73bd start + 1805

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ff7b498a878 rdx: 0x00007ff7b498ace0
rdi: 0x0000000000000006 rsi: 0x0000000000000001 rbp: 0x00007ff7b498a8c0 rsp: 0x00007ff7b498a878
r8: 0x00007ff7b498a8e0 r9: 0x0000000000000000 r10: 0x0000000000000099 r11: 0x0000000000000246
r12: 0x0000000000000099 r13: 0x00007ff7b498ace0 r14: 0x0000000000000001 r15: 0x0000000000000006
rip: 0x00007ff81c44cc42 rfl: 0x0000000000000246 cr2: 0x000000010b5a2008

Logical CPU: 0
Error Code: 0x02000209
Trap Number: 133

Somehow you are missing the freetype6 library in your package, or the executive can’t find it.

I will have a look

Please tell us where you downloaded this package from

I downloaded from Darktable nightly build 20230802. Releases · darktable-org/darktable · GitHub

libharfbuzz was updated to 8.1.0 yesterday.
The @loader_path does not get updated accordingly in the package, leading to that error.

I will need to investigate that further.

@zurdo: I have now fixed this and provided a pull request: #14998

When this PR is merged and the next nightly build is run can you please check?

Yes, I will check

PR is merged now, so we can see tomorrow.

Sorry to start a weekend like this but the issue is still there with build 4.5.0.263, and the report looks the same as the one before:


Translated Report (Full Report Below)

Process: darktable [904]
Path: /Applications/darktable.app/Contents/MacOS/darktable
Identifier: org.darktable
Version: 4.5.0 (4.5.0.263)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-08-05 08:32:26.3455 +0200
OS Version: macOS 13.4.1 (22F82)
Report Version: 12
Bridge OS Version: 7.5 (20P5060)
Anonymous UUID: 71CF248D-4AA3-5B9D-7B9E-4995FD24032B

Time Awake Since Boot: 420 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: @loader_path/…/Resources/lib/libfreetype.6.dylib
Referenced from: <07B03B30-1437-3451-BA21-71A9F664B841> /Applications/darktable.app/Contents/Resources/lib/libharfbuzz.0.dylib
Reason: tried: ‘/Applications/darktable.app/Contents/Resources/lib/…/Resources/lib/libfreetype.6.dylib’ (no such file), ‘/usr/local/lib/libfreetype.6.dylib’ (no such file), ‘/usr/lib/libfreetype.6.dylib’ (no such file, not in dyld cache)Library not loaded: @loader_path/…/Resources/lib/libImath-3_1.29.dylib
Referenced from: /Applications/darktable.app/Contents/Resources/lib/libOpenEXR-3_1.30.dylib
Reason: tried: ‘/Applications/darktable.app/Contents/Resources/lib/…/Resources/lib/libImath-3_1.29.dylib’ (no such file), ‘/usr/local/lib/libImath-3_1.29.dylib’ (no such file), ‘/usr/lib/libImath-3_1.29.dylib’ (no such file, not in dyld cache)
(terminated at launch; ignore backtrace)

Thread 0 Crashed:
0 dyld 0x7ff81636cc42 __abort_with_payload + 10
1 dyld 0x7ff816386fd7 abort_with_payload_wrapper_internal + 82
2 dyld 0x7ff816387009 abort_with_payload + 9
3 dyld 0x7ff81630b8f0 dyld4::halt(char const*) + 375
4 dyld 0x7ff816308b71 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 4526
5 dyld 0x7ff8163073bd start + 1805

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ff7b66ec868 rdx: 0x00007ff7b66eccd0
rdi: 0x0000000000000006 rsi: 0x0000000000000001 rbp: 0x00007ff7b66ec8b0 rsp: 0x00007ff7b66ec868
r8: 0x00007ff7b66ec8d0 r9: 0x0000000000000000 r10: 0x0000000000000093 r11: 0x0000000000000246
r12: 0x0000000000000093 r13: 0x00007ff7b66eccd0 r14: 0x0000000000000001 r15: 0x0000000000000006
rip: 0x00007ff81636cc42 rfl: 0x0000000000000246 cr2: 0x00007ff816386f85

Logical CPU: 0
Error Code: 0x02000209
Trap Number: 133

Not the same, the library path is different but still not correct.
Thanks for reporting

@zurdo: Before I open a new pull request, can you please download and test: https://zisoft.de/storage/app/media/download/darktable-4.5.0+265~g5e7e175800-x86_64.dmg

Yesss, you got it. Opens well and I will start using it and see if there are any issues

1 Like

@zurdo: Thanks for the report and your tests.

I have just provided pull request #15010 to get the nightly builds working again.

Yes, I can confirm that the nightly builds for Mac (as of today build 4.5.0+290) are working again. Thank you to @zisoft and all the others involved in the solving of the issue

1 Like

The nightly builds for macOS (x86_64) are finally back on stage.

Nightly Builds

Due to several problems in the past, GraphicsMagick was dropped in favour of ImageMagick now.

1 Like