Page 1 of 1

Experimental mapgen mod [SOLVED]

PostPosted: Thu Apr 28, 2016 15:50
by Zurul_HD
[b][/b]Hi Guys,

I have another problem with minetest.

I don't now what to do

and this is the Error:

ERROR[main]: ServerError: Lua: OOM error from mod 'mg' in callback ScriptApiEnv::environment_OnGenerated(): not enough memory
2016-04-28 17:41:37: ERROR[main]: Current Lua memory usage: 17 MB

Re: Experimental mapgen mod

PostPosted: Fri Apr 29, 2016 13:10
by blert2112
You are running up against the LuaJIT memory limit. Yes, in your case it is telling you that there was an error from the 'mg' mod but there is no real error. MT will tell you the error is coming from whatever mod happened to allocate some memory when the limit was past, cause it to happen again and you will get the error from another mod. Are you getting the error during normal game play or while testing in fast movement mode? If you are getting the error while moving around fast then slowing down is your best option to let the Lau garbage collector catch up. Either way you have a few other options...
- First, you can remove some mods. Those large mods take up a lot of memory. I get this error just running the ValleysC helper mod alone, mostly only during testing with fast movement but sometimes it will happen just taking a slow stroll.
- If removing mods is not what you want to do then you can try my 'stop LuaJIT OOM crashes' mod. It works but it is not %100. You need to read the configuration carefully and experiment with the setting.
- Another option is to use a MineTest that has not been compiled with LuaJIT. Certain mods, like mapgen and other complex mods, will be noticeably slower but you won't have to deal with the pesky LuaJIT memory limit.
- Best option... requires no removal of mods, no garbage collector helper mod, no slowing yourself down, nothing at all. Just run the server and the client separately, yes you can do this on the same PC. I recommend that you have at least a dual core CPU (four would be better) because the server will use two threads (one for mapgen and one for everything else) and the client will use one thread. LuaJIT's memory limit is Xgb per instance. Running the server and client in different instances splits up the memory usage between them.

Re: Experimental mapgen mod

PostPosted: Fri Apr 29, 2016 17:50
by Zurul_HD
Hello,
and thanks i have installed your mod and it works,

and i must say that i have this errors from yesterday.

Yesterday i installed the ambience mod. After i uninstalled this mod minetest is working normal, without errors.

Re: Experimental mapgen mod

PostPosted: Sat Apr 30, 2016 02:20
by wilkgr76
Something else to point out: 32-bit builds are less likely to OOM than 64-bit builds (for me, at least)