Freehand selection very slow to close on large projects
Environment/Versions
- GIMP version:2.99.12
- Package: Gimp beta flatpak installer
- Operating System: Linux
Description of the bug
On small projects a freehand selection can be closed within seconds. On larger projects it can take many minutes to close the selection. (Close means when joining the last segment to the first segment by clicking on the first node) On a project with 228 layers the selection took about 20-30 minutes to close. Since it takes practically no time at all for a rectangular selection to be created and edited on a large project (in practice there can be slight delays in adjusting the selection), this appears to be a puzzling anomaly.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Using a project with 228 layers which saves to 19 GiB using the highest level of XCF compression that can be selected in the Save dialog
- Create a freehand selection and attempt to close the selection by joining the last segment to the first
- The freehand selection takes around 20-30 minutes to change into the marching ants, indicating the selection can now be used.
…
Expected result: The desirable outcome is for the freehand selection to be closed within a very short period of perhaps seconds.
Actual result: The actual result in this case is the freehand selection took around 20-30 minutes to close.
Additional information
If you have a backtrace for a crash or a warning, paste it here.