Bug 47396

GemStone/S 64 Bit

3.4

All Platforms

3.5, 3.4.1

GsBitmap writeToFile: on an empty bitmap triggers AlmostOutOfMemory error

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)

Workaround

Check GsBitmap>>size and if zero, skip the writeToFile:.


Last updated: 12/17/19