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

Fix details mask on low opencl memory #16003

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

jenshannoschwalm
Copy link
Collaborator

Due to the design of the details threshold mask we precalculate the scharr mask in demosaic module but we do not support doing that in tiling mode.

In #15999 and related reports in pixls and on github we ran into problems because of tiling the generated scharr mask did not cover the full roi of demosaic but just a tile of it, this lead to crashes.

Due to the way we commit parameters while preparing the pipeline we have to make sure about no tiling while committing params and also make sure in process and the cl variant.

Fixes #15999

For 4.6 and 4.8

Due to the design of the details threshold mask we precalculate the scharr mask in demosaic
module but we do **not** support doing that in tiling mode.

In darktable-org#15999 and related reports in pixls and on github we ran into problems because of tiling
the generated scharr mask did not cover the full roi of demosaic but just a part of it, this lead
to crashes.

Due to the way we commit parameters while preparing the pipeline we have to make sure about no
tiling while committing params and also make sure in process and the cl variant.
@jenshannoschwalm jenshannoschwalm added bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes scope: image processing correcting pixels OpenCL Related to darktable OpenCL code labels Jan 1, 2024
@gi-man
Copy link
Contributor

gi-man commented Jan 2, 2024

When I tested the issue, I noticed that it also happens on CPU path. I had to use the notebook resources setting and disable opencl.

@gi-man
Copy link
Contributor

gi-man commented Jan 2, 2024

I just tested it and it works in both CPU and openCL path. Thanks.

@jenshannoschwalm
Copy link
Collaborator Author

I noticed that it also happens on CPU path.

Right.

@TurboGit TurboGit added this to the 4.6.1 milestone Jan 2, 2024
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TurboGit TurboGit merged commit bce83d5 into darktable-org:master Jan 2, 2024
4 checks passed
@TurboGit
Copy link
Member

TurboGit commented Jan 2, 2024

Merged in master and 4.6.x branch.

@jenshannoschwalm
Copy link
Collaborator Author

Release note would be: Fix crashes related to details mask if running on low OpenCL or system memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug OpenCL Related to darktable OpenCL code priority: high core features are broken and not usable at all, software crashes scope: image processing correcting pixels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Mask with detail threshold adjustment segfaults when low available memory
3 participants