Skip to content

Do not exit darktable if mipmap buffer allocation fails - #21968

Open
victoryforce wants to merge 1 commit into
darktable-org:masterfrom
victoryforce:no-exit-on-mipmap-buffer-allocation-failure
Open

Do not exit darktable if mipmap buffer allocation fails#21968
victoryforce wants to merge 1 commit into
darktable-org:masterfrom
victoryforce:no-exit-on-mipmap-buffer-allocation-failure

Conversation

@victoryforce

Copy link
Copy Markdown
Collaborator

We terminate the process (and kill unsaved work) if we cannot allocate memory for the mipmap buffer. This is a bad response to a (possibly temporary) memory shortage. And since we don't have atexit(), it's actually not much different from crashing in terms of saving the user's work.

The code that terminates the program on memory allocation failure is almost 15 years old, so you could say that it can wait a few more months. 🙂 OTOH, the fix is ​​safe and I suggest adding it to 5.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant