Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: fatal: cannot map pages in arena address space #19514
What version of Go are you using (
I had originally understood the error to mean "prevented the runtime from allocating memory in space that the arena is already using". But if it's actually talking about committing reserved pages from the OS then it does make sense.
About improving the message:
Can the runtime resolve the
Or "fatal: out of memory (some more detailed reason)" as is done in e.g. https://github.com/golang/go/blob/master/src/runtime/mcache.go#L124 .
You need to call FormatMessage Windows API to translate 1455 into "The paging file is too small for this operation to complete.". It might not be safe to do that if you find yourself in the "no free memory" situation. Do you think it is worth the risk getting your program into even more trouble? You might endup getting no error message printed at all. Would that be OK with you?