Due to a logic error in the handling of Map Entries (ME), executing System>>hiddenSetEnumerate:limit: against large bitmaps can result in "VM temporary object memory is full , ME-space overflow" errors (4067), especially if the temporary object cache contains many small objects. This error cannot be trapped using the AlmostOutOfMemory exception.
First, try increasing the amount of memory allocated for Map Entries by increasing the setting of the gem configuration parameter GEM_TEMPOBJ_MESPACE_SIZE (Note that in spite of the comment, you can increase this up to 2 GB).
If you still have problems hitting this error, next try *REDUCING* the setting of GEM_TEMPOBJ_CACHE_SIZE, to avoid the logic error when dealing with many small objects in the temporary object cache. In the worst case, you may need to reduce this to 1/2 the setting of the GEM_TEMPOBJ_MESPACE_SIZE.
Last updated: 2/26/16