catch memory over-allocation