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 Leak/Too Much Memory #19

Open
Pieberius opened this issue Jan 31, 2020 · 1 comment
Open

Memory Leak/Too Much Memory #19

Pieberius opened this issue Jan 31, 2020 · 1 comment

Comments

@Pieberius
Copy link

Pieberius commented Jan 31, 2020

After attempting to generate a substantial size map I get segmentation fault core dumped error and the script stops running.
Seems like a memory leak however not being familiar with the code and perl in general I am unsure where to look to find the leak.

@Pieberius Pieberius changed the title can't execute "curl" Memory Leak/Too Much Memory Feb 20, 2020
@cherbert
Copy link

cherbert commented Feb 24, 2020

I have noticed this too and is the major cause of our issues also. It appears to be an inherent downside of Perl which isn't very good at handing used memory back to the OS. I have found that the script has a continue option. use --continue and then world name. This way every time the script crashes you can restart from where it left off. In Linux you can create a shell script to run the program again every time it crashes.

cd "/directory/to/geocraft-master"
while true;
do ./generate-world -ll --from x,y --to x,y --yshift 62 --continue London
done

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

2 participants