Skip to content

segfault on exit in neural restore #20928

@zisoft

Description

@zisoft

Is there an existing issue for this?

  • I checked and did not find my issue in the already reported ones

Describe the bug

darktable crashes on exit in line 4130 of src/libs/neural_restore.c if the module is hidden in the panels.

Steps to reproduce

  1. start darktable
  2. right click in the panel and uncheck the neural restore module
  3. quit darktable

Expected behavior

not crash

Logfile | Screenshot | Screencast

Image

bisect gives:

896accf7fcef92be3e364e9d43f6525d883b1014 is the first bad commit
commit 896accf7fcef92be3e364e9d43f6525d883b1014
Author: Andrii Ryzhkov <andrii.ryzhkov@pm.me>
Date:   Thu Apr 23 13:33:44 2026 +0200

    Add AI raw denoise (RawNIND, Bayer + X-Trans)

@andriiryzhkov : 100% reproducible

Commit

896accf

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

current master

What OS are you using?

Mac

What is the version of your OS?

macOS 26

Describe your system

No response

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

Apple M5 Pro

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions