handle some out-of-memory situations in the mapper.
report an out-of-memory situations in the message code.