-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Installing on Ubuntu with 512MB Ram Crashes #15
Comments
Since this package is meant to be compiled with the So, it's likely what you want to do instead of
The The See https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies for details. This may or may not fix the root problem, but it's good orthogonal advice. |
In our case, we don't run out of memory because of huge static initialisation, but because the Go compiler doesn't handle our big amount of types and interfaces and embedding of interfaces very well. I only partially agree with @shurcooL's workaround. While that does allow to successfully download the package, the lack of actually compiling it also means that gocode will not provide completion, errcheck will take longer to run, and so on. Unfortunately there's not really anything I can do about this, as ultimatively it's a problem with the Go compiler, not the package. I'll leave the issue open to track any progress, but there won't be any immediate steps on my side. |
Ok sounds good, thanks for the response! |
When trying to run "go get honnef.co/go/js/dom" the process crashes with a "signal: killed" message.
Here is the output of "free -m" to show the memory available prior to install and then "go get honnef.co/go/js/dom":
When looking up the "signal: killed" error related to 6g, a couple go bug reports say that "What causes the compiler to consume a lot of memory is large static initaliser blocks", eventually getting the process killed (https://code.google.com/p/go/issues/detail?id=6251).
Any way to get around this?
Thanks!
The text was updated successfully, but these errors were encountered: