Using method GsBitmap>>writeToFile: on an empty bitmap triggers an AlmostOutOfMemory error. For example:
run
GsBitmap new writeToFile: <filename>
%
ERROR 2208 , a AlmostOutOfMemory occurred (notification 2208), Host memory allocation failed; there is insufficient swap space and/or RAM. (AlmostOutOfMemory)
Check GsBitmap>>size and if zero, skip the writeToFile:.
Last updated: 12/17/19