I suggest you enable memory error handler:

import etc.linux.memoryerror;
registerMemoryErrorHandler();