You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darktable crashes (seg fault) when I closing external preview window on second monitor in darkroom
Steps to reproduce
Load raw file
Click "display second darkroom image window"
Make sure second window is in external screen
Switch between photos in darkroom (do this multiple times)
Close second darkroom image window by clicking "display second darkroom image window"
Expected behavior
Should close the window without crashing DT
Logfile | Screenshot | Screencast
$ /Applications/darktable.app/Contents/MacOS/darktable -d common > /Volumes/Backup\ Plus/dtLog.txt
(darktable:29417): Gtk-CRITICAL **: 21:34:13.249: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
2025-01-28 21:34:42.129 darktable[29417:2063270] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
zsh: segmentation fault /Applications/darktable.app/Contents/MacOS/darktable -d common >
Looks like I found the cause of this issue. Looks like the problem is caused by unconsumed fullscreen event that is dispatched after the window is destroyed by gtk_widget_destroy. Since the window has been destroyed when the events is dispatched, when gtk_main() attempts to process the pending events, the accessed memory is no longer valid.
Describe the bug
Darktable crashes (seg fault) when I closing external preview window on second monitor in darkroom
Steps to reproduce
Expected behavior
Should close the window without crashing DT
Logfile | Screenshot | Screencast
Output: dtLog.txt
Where did you obtain darktable from?
Github release
darktable version
5.0.0
What OS are you using?
MacOS
What is the version of your OS?
14.6.1 (23G93)
Describe your system?
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
MacOS built-in
The text was updated successfully, but these errors were encountered: