Why the memory is stamped
The size of the memory is a number that changes. A run without the size is a run that cannot be reproduced.
The one rule that prevents the bug
Never hold a view across a call that can grow. Re-read the view after the call, every time.