[Bug 1001758] New: print a low memory warning as early as possible