Page 1 of 1

My server crashes as soon as I get on

PostPosted: Sat Jan 23, 2016 13:58
by BBmine
As soon as I log in, I time out. This happens every time. It worked until I did /clearobjects.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2016-01-23 07:50:35: ACTION[ServerThread]: ADMIN [127.0.0.1] joins game.
2016-01-23 07:50:35: ACTION[ServerThread]: ADMIN joins game. List of players: ADMIN
minetest: /build/minetest-5EsLJt/minetest-0.4.13/src/util/serialize.h:265: void writeF1000(irr::u8*, irr::f32): Assertion `i >= ((float)(s32)((-0x7FFFFFFF - 1) / 1000.0f)) && i <= ((float)(s32)((0x7FFFFFFF) / 1000.0f))' failed.
./mf: line 2:  4389 Aborted                 (core dumped) minetest --server ~/.minetest/worlds/Modfull --config ~/.minetest/Modfull.conf

Can someone help me please?

Re: My server crashes as soon as I get on

PostPosted: Sat Jan 23, 2016 14:49
by rubenwardy
You shouldn't be using a debug build for a production server.

Re: My server crashes as soon as I get on

PostPosted: Sat Jan 23, 2016 15:00
by BBmine
rubenwardy wrote:You shouldn't be using a debug build for a production server.

Debug build? What is it and how would I disable it?

Re: My server crashes as soon as I get on

PostPosted: Sat Jan 23, 2016 15:18
by maikerumine
Unload all mods then start world
Then add them back

Re: My server crashes as soon as I get on

PostPosted: Sat Jan 23, 2016 15:22
by maikerumine
If you want send me your map and I will look at ti, use dropbox or the like. incluse all the mods ill see if I can reproduce the error.

Re: My server crashes as soon as I get on

PostPosted: Sat Jan 23, 2016 15:33
by rubenwardy
How did you get minetest?
You need to build with -DCMAKE_BUILD_TYPE=Release, not -DCMAKE_BUILD_TYPE=Debug
Assertion failures should only happen in debug builds, not release builds.

This assertion is usually caused be entities being outside of the 31,000 map limit somehow.

Re: My server crashes as soon as I get on

PostPosted: Sun Jan 24, 2016 21:02
by maikerumine
FOUND IT.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2016-01-24 16:00:22: ACTION[main]: Irrlicht: Could not open file of texture: pig.png
2016-01-24 16:00:22: ACTION[main]: Irrlicht: Could not open file of texture: pig.png
2016-01-24 16:00:23: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2016-01-24 16:00:23: ERROR[main]: Lua: OOM error from mod 'technic_worldgen' in callback ScriptApiEnv::environment_OnGenerated(): not enough memory
2016-01-24 16:00:23: ERROR[main]: Current Lua memory usage: 150 MB

In thread 18ec:
server.cpp:511: Server::step: A fatal error occurred: Lua: OOM error from mod 'technic_worldgen' in callback ScriptApiEnv::environment_OnGenerated(): not enough memory
Current Lua memory usage: 150 MB
Debug stacks:
DEBUG STACK FOR THREAD f50:
#0  ServerThread::Thread
#1  Server::Receive
#2  Server::ProcessData
(Leftover data: #3  Server::SendBlockNoLock)
(Leftover data: #4  Server::SendHP)
(Leftover data: #5  getCraftingResult)
DEBUG STACK FOR THREAD fc4:
#0  UpdateThread::Thread
DEBUG STACK FOR THREAD 18ec:
#0  main
#1  Server::step
(Leftover data: #2  ClientEnvironment::step)
(Leftover data: #3  Client::Receive)
(Leftover data: #4  Client::ProcessData)
(Leftover data: #5  MeshUpdateQueue::addBlock)
DEBUG STACK FOR THREAD 1be8:
#0  UpdateThread::Thread
DEBUG STACK FOR THREAD 1e04:
#0  EmergeThread::Thread
#1  ServerMap::loadBlock
#2  ServerMap::loadBlock
(Leftover data: #3  ServerMap::loadBlock)
(Leftover data: #4  ItemStack::deSerialize)


I will now rectify the problem.

Re: My server crashes as soon as I get on

PostPosted: Sun Jan 24, 2016 21:09
by maikerumine
Okay...
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2016-01-24 16:06:42: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2016-01-24 16:06:42: ERROR[main]: Lua: OOM error from mod 'mg_villages' in callback ScriptApiEnv::environment_OnGenerated(): not enough memory
2016-01-24 16:06:42: ERROR[main]: Current Lua memory usage: 114 MB

In thread 5d8:
server.cpp:511: Server::step: A fatal error occurred: Lua: OOM error from mod 'mg_villages' in callback ScriptApiEnv::environment_OnGenerated(): not enough memory
Current Lua memory usage: 114 MB
Debug stacks:
DEBUG STACK FOR THREAD 45c:
#0  UpdateThread::Thread
DEBUG STACK FOR THREAD 5d8:
#0  main
#1  Server::step
(Leftover data: #2  ClientEnvironment::step)
(Leftover data: #3  Client::Receive)
(Leftover data: #4  Client::ProcessData)
(Leftover data: #5  MeshUpdateQueue::addBlock)
DEBUG STACK FOR THREAD 178c:
#0  EmergeThread::Thread
#1  ServerMap::loadBlock
#2  ServerMap::loadBlock
(Leftover data: #3  ServerMap::loadBlock)
(Leftover data: #4  ItemStack::deSerialize)
DEBUG STACK FOR THREAD 1b50:
#0  ServerThread::Thread
#1  Server::Receive
(Leftover data: #2  Server::deletingPeer)
(Leftover data: #3  RemoteClient::GetNextBlocks)
(Leftover data: #4  Server::SendHP)
(Leftover data: #5  ServerMap::loadBlock)
DEBUG STACK FOR THREAD 1c58:
#0  UpdateThread::Thread


You need to delete some mods, as you have over the limit currently and many mapgen mods working at the same time.

I suggest you start by updating ALL your mods to current.

The main cause for crash is memory leak.

Re: My server crashes as soon as I get on

PostPosted: Sun Jan 31, 2016 08:40
by DI3HARD139
Its mg_villages thats doing it. The current lua is sensitive with that mod. It crashes for me as well when running on a stable build. I get a lot of memory errors when running lua mapgens.

Re: My server crashes as soon as I get on

PostPosted: Sat Feb 06, 2016 17:24
by BBmine
DI3HARD139 wrote:Its mg_villages thats doing it. The current lua is sensitive with that mod. It crashes for me as well when running on a stable build. I get a lot of memory errors when running lua mapgens.

mg_villages is fine. After further testing I found it is due to esmobs. I even downloaded the latest version; it still crashes the server. I diabled it and now it runs smoothly.

I decided to try removing esmobs because the problems started soon after I enabled it. Badplayer didn't crash it, though. Although it did crash occasionally back then.