Gimp 2.10 crash on file export of large images because of full memory
GIMP version: 2.10.4
Operating System: Linux OpenSuse Leap 15.0
Description of the bug
I work with large images (for example 19000x48000px greyscale). Sometimes I have several open in a session. Gimp uses a lot of memory, that's OK, I have 64GB of RAM only for working with such images. The problem is, gimp 2.10 doesn't release the used memory after I close a file (inside gimp). So in a session of working on some big images (opening, doing stuff, closing), the result might be that I have only one big image open and gimp still occupies for example 40GB of ram. When I try to export that image (pgm), gimp rapidly fills up the remaining free memory during export and crashes when there is non left.
I had the problem sometimes also with Gimp 2.8. The difference is, gimp 2.8 doesn't clutter the memory as much as 2.10 and then only the file-pgm plugin crashes, not gimp entirely .
- open several big images (until your memory is cluttered)
- do some operations on them
- close some of them and see that no memory is released
- try to export an still open image from the same session images as pgm
Expected result: no crash
Actual result: crash
That's the console output:
WARNING missing babl fast path(s): "Y'A u8" to "A u8"
** (gimp:22958): WARNING **: Error in opacity.c:250@cl_process - mem object allocation failure
WARNING missing babl fast path(s): "Y'A u8" to "A float" /usr/bin/gimp: GEGL-WARNING: Error in gegl-operation-point-filter.c:226@gegl_operation_point_filter_cl_process - mem object allocation failure
WARNING missing babl fast path(s): "Y'A u8" to "A double"