Editor: Fixed possible fatal crash (may cause OutOfMemoryErrorException). Have successfully captured it with certain conditions to warn users.