Skip to content
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

memory allocation error with 0.8.1 #11

Closed
mojjj opened this issue Aug 4, 2016 · 10 comments
Closed

memory allocation error with 0.8.1 #11

mojjj opened this issue Aug 4, 2016 · 10 comments

Comments

@mojjj
Copy link
Contributor

mojjj commented Aug 4, 2016

might be unrelated, but 3 humans vs 2 circuit + 2 zkgb => window freeze when com plopp should be, infolog attached.

http://pastebin.com/afNXHbgn

@aeonios
Copy link
Collaborator

aeonios commented Aug 4, 2016

That error log doesn't suggest anything went wrong with kgb. If kgb has a memory allocation error then java throws an OOM exception, but that was all C++ and looked like spring itself had some sort of error. It could possibly be related to circuit but I don't really know.

@aeonios aeonios closed this as completed Aug 4, 2016
@mojjj
Copy link
Contributor Author

mojjj commented Aug 5, 2016

well now, when i only use one zkgb as oponent, the result is the same. does not happen with CAI or circuit (nor any multiplayer)...

http://i.imgur.com/NkUVL7g.png

tell me what to do to get more intel to fix this issue if you have an idea...

@DeinFreund
Copy link
Contributor

Do you have the same problem with all JavaAIs? Try for example http://zero-k.info/Forum/Thread/22533

Have you tried monitoring memory usage with something like htop?

@aeonios
Copy link
Collaborator

aeonios commented Aug 6, 2016

The only thing notable I could see is that you're running linux. It seems to be using the correct jvm though, so at least that shouldn't be a problem. As DF said, either test CSI or the java nullOOAI and see if that gives the same result. There's not enough info to tell if it's a spring issue or if it's your system or what.

@mojjj
Copy link
Contributor Author

mojjj commented Sep 23, 2016

i have 16g memory i doubt that is an issue there...
infologs, using 0.8.2 of zkgb
CSI 1337 crashes the same way => : http://pastebin.com/A8PzWRaZ
NullOOJavaAI", Version:"0.1 too => http://pastebin.com/aLtHsyEt

@Anarchid
Copy link
Owner

This looks like an engine issue, then. I can replicate this, so maybe i'll find some clues.

@Anarchid
Copy link
Owner

@mojjj i have succeeded in launching zkgbai (also nullai and csi) by passing Spring a proper JAVA_HOME environment variable.

It seems that Spring fails at detecting JRE on newer Ubuntu.

This is an engine bug.

@mojjj
Copy link
Contributor Author

mojjj commented Sep 26, 2016

nice.
is this limited to ubuntu or other lunix-systems too? why not windows? do you report this to engine tracker?

could you share how to pass the env var?

@Anarchid
Copy link
Owner

Anarchid commented Sep 26, 2016

JAVA_HOME=/usr/share/whatever/ ~/.spring/engine/103.0.1-abracadabra/spring ~/somewhere/startscript.spring

You can also export, of course.

The method i used to find the current java home was either update-alternatives --config java or which java, can't be sure. Also i removed last two path elements (/bin/java) to get to proper JAVA_HOME and not just binary location.

I have not reported it on mantis yet.

@mojjj
Copy link
Contributor Author

mojjj commented Sep 26, 2016

i reported it on mantis
https://springrts.com/mantis/view.php?id=5354

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants