Page 1 of 1

[1.1.107] Game crash after using LuaSurface::request_to_generate_chunks

Posted: Mon Apr 29, 2024 11:47 pm
by ness056
Hello there,

I wanted to create a really big test map for some mod debugging, so I made a new save and used the command: /c game.player.surface.request_to_generate_chunks({0,0}, 1000) but after using it a really weird crash happened, as you can see in the attached screenshot my RAM (and also the swap I believe since my drive also went crazy) got filled in like 30s (the graph is 1min long) and after filling it, the game just crashed, leaving absolutely no error in the log file.
Then, after trying again, I discovered that the crash always happens when I use this method in the command, I tried to restart my pc and to reinstall the game but it didn't fix the crash. However, this crash only happens on my Linux Mint os, when I try on my Windows 10 os, it doesn't crash.
Another weird thing is that I often play the Biter Battles scenario, which uses this method all the time, but there, my game doesn't crash, the crash only happens when using the method inside of the console.
If you need any information about my os or my hardware (which I guess are the problem) that the log file doesn't give, I'd be please to give that to you.

Thanks in advance.

Re: [1.1.107] Game crash after using LuaSurface::request_to_generate_chunks

Posted: Tue Apr 30, 2024 12:15 am
by Rseding91
Thanks for the report however I don’t think you understand what you’re asking the game to do. You asked for a radius of 1000 chunks, or in other words: 2000x2000 chunks (4,000,000 chunks). That at some rough calculations would take around 19 gigabyte of RAM to just exist before entities generate.

I think what you actually wanted was a 1000x1000 tile area which would be a chunk radius of 32.

Re: [1.1.107] Game crash after using LuaSurface::request_to_generate_chunks

Posted: Tue Apr 30, 2024 12:17 am
by ness056
Oh, I thought the radius was in tile, not in chunk... That's my bad...