Crash on macOS in lighttable with focus peeking enabled
Is there an existing issue for this?
- [x] I checked and did not find my issue in the already reported ones
Describe the bug
I was going through photos in full screen mode (Shift + F) and darktable suddenly crashed. Focus peeking (Shift + Cmd + F) was enabled.
The only settings option I changed before was "enable disk backend for full preview cache".
Steps to reproduce
- Open full screen mode (Shift + F)
- Enable peeking (Shift + Cmd + F)
- Go through photos
- It might crash any moment NOW
Expected behavior
No response
Logfile | Screenshot | Screencast
Some parts of the crash report:
Process: darktable [55537]
Path: /Applications/darktable.app/Contents/MacOS/darktable
Identifier: org.darktable
Version: 5.2.0 (5.2.0.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
...
Crashed Thread: 36
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000031f480000
Exception Codes: 0x0000000000000002, 0x000000031f480000
Termination Reason: Namespace SIGNAL, Code 10 Bus error: 10
Terminating Process: exc handler [55537]
VM Region Info: 0x31f480000 is in 0x31f480000-0x31f484000; bytes after start: 0 bytes before end: 16383
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_LARGE_REUSABLE 31cf00000-31f480000 [ 37.5M] rw-/rwx SM=PRV
---> STACK GUARD 31f480000-31f484000 [ 16K] ---/rwx SM=NUL stack guard for thread 46
Stack 31f484000-31fc88000 [ 8208K] rw-/rwx SM=PRV thread 46
...
Thread 36 Crashed:
0 libdarktable.dylib 0x100cb0a14 _laplacian + 16 (focus_peaking.h:42) [inlined]
1 libdarktable.dylib 0x100cb0a14 dt_focuspeaking.omp_outlined_debug__.62 + 380 (focus_peaking.h:126) [inlined]
2 libdarktable.dylib 0x100cb0a14 dt_focuspeaking.omp_outlined.63 + 412 (focus_peaking.h:104)
3 libomp.dylib 0x100414d5c __kmp_invoke_microtask + 156
4 ??? 0x13 ???
5 ??? 0x390 ???
6 ??? 0x200 ???
7 ??? 0x726854207265 ???
Commit
No response
Where did you obtain darktable from?
darktable.org / GitHub release
darktable version
5.2.0
What OS are you using?
Mac
What is the version of your OS?
macOS Sequoia 15.5
Describe your system
No response
Are you using OpenCL GPU in darktable?
I dont know
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
Same problem on Sonoma 14.5
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.
This happens on MacOS Tahoe 26.1 also. As I'm culling my photos, the moment I toggle focus-peaking mode to be on, the app crashes. If I don't have a collection open, I can toggle this setting multiple times with no issue. But if I open a collection and then toggle it on, the app crashes 100% of the time.