Foreground Select crash (fatal error: unhandled exception) on blank selection
Environment/Versions
- GIMP version: 2.10.34
- Package: Installer from Gimp.org
- Operating System: Windows 10 64bit (1809)
Description of the bug
When using the Foreground Select tool, if no "Foreground" has been painted in the unknown area, GIMP will crash, sometimes with a "fatal error: unhandled exception" error message, before closing.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Select the Foreground Select tool
- Draw any selection and then press enter to generate a Background and Unknown selection.
- Press "Preview" or "Select" without painting any Foreground selection
…
Expected result: GIMP will either estimate a selection or make no selection, as no foreground was selected.
Actual result: GIMP crashes to desktop or closes with a "fatal error: unhandled exception" error message.