Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when closing second darkroom image window #18314

Open
stnKrisna opened this issue Jan 28, 2025 · 1 comment
Open

Segfault when closing second darkroom image window #18314

stnKrisna opened this issue Jan 28, 2025 · 1 comment
Labels
scope: macos support macos related issues and PR

Comments

@stnKrisna
Copy link
Contributor

Describe the bug

Darktable crashes (seg fault) when I closing external preview window on second monitor in darkroom

Steps to reproduce

  1. Load raw file
  2. Click "display second darkroom image window"
  3. Make sure second window is in external screen
  4. Switch between photos in darkroom (do this multiple times)
  5. 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 > 

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?

  • 1.4 GHz Quad-Core Intel Core i5
  • Intel Iris Plus Graphics 645 1536 MB
  • 16 GB 2133 MHz LPDDR3
  • 13-inch, 2020, Two Thunderbolt 3 ports

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

MacOS built-in

@dterrahe dterrahe added the scope: macos support macos related issues and PR label Jan 29, 2025
@stnKrisna
Copy link
Contributor Author

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.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: macos support macos related issues and PR
Projects
None yet
Development

No branches or pull requests

2 participants