Experimental mapgen mod [SOLVED]

Zurul_HD
Member
 
Posts: 16
Joined: Mon Apr 25, 2016 12:26
GitHub: Zurul
IRC: Zurul
In-game: Zurul Appleman Saphirian

Experimental mapgen mod [SOLVED]

by Zurul_HD » Thu Apr 28, 2016 15:50

[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
Last edited by Zurul_HD on Tue May 03, 2016 17:19, edited 1 time in total.
 

blert2112
Member
 
Posts: 244
Joined: Sat Apr 25, 2015 04:05
GitHub: blert2112

Re: Experimental mapgen mod

by blert2112 » Fri Apr 29, 2016 13:10

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.
 

Zurul_HD
Member
 
Posts: 16
Joined: Mon Apr 25, 2016 12:26
GitHub: Zurul
IRC: Zurul
In-game: Zurul Appleman Saphirian

Re: Experimental mapgen mod

by Zurul_HD » Fri Apr 29, 2016 17:50

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.
 

User avatar
wilkgr76
Member
 
Posts: 680
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76
IRC: wilkgr
In-game: wilkgr

Re: Experimental mapgen mod

by wilkgr76 » Sat Apr 30, 2016 02:20

Something else to point out: 32-bit builds are less likely to OOM than 64-bit builds (for me, at least)
I do not care.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 6 guests

cron