-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: VirtualAlloc of 0 bytes failed with errno=1455 #33716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does this happen with 1.13beta1 too ? Is there a way you can give us a short program which causes this behavior ? |
I will try 1.13 beta1. I cant give a short lrogram, since it needs a long time running before it occurs. It runs from 1.12.9 released until few minutes before i post this issue. But it occured several times before 1.12.9 released without my attention. |
The It's also possible that for your application an out-of-memory condition is also less likely in Go 1.13, since we now return memory to the OS much more aggressively (#30333). @ayanamist Let me know how running with the Go 1.13 beta1 goes! |
This feature seems amazing, i must try 1.13beta1 |
I just encountered a similar panic. I am running Go 1.13.4 windows/amd64. My windows VM has 5GB of RAM. Go tried to allocate 4GB of ram and crashed. This is a big long running program (had been running for about 24 hours at the point of crash) so no easy repro test case available immediately.
|
they are probably distinct, so I opened as separate issue #37029 |
@glycerine AFAICT your application ran out of memory. It looks like your application tried to read more than 4 GiB from an io.Reader and the OS determined it didn't have enough memory left to satisfy the allocation (note that the bytes.Buffer grows, calling makeSlice with an argument of 4294966784 bytes, which was then rounded up to 4 GiB even because it's allocating at a page granularity). |
@glycerine I solved issue by increase swap size. Before i only set 2GB swap, now i let windows manage it (https://docs.microsoft.com/en-us/windows/client-management/determine-appropriate-page-file-size) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
My quite complex proxy program
What did you expect to see?
Works fine
What did you see instead?
Full stacks see attachment stack.txt
The text was updated successfully, but these errors were encountered: