Page 1 of 1

Minetest crashes

PostPosted: Mon Feb 11, 2013 17:35
by SZab
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
18:31:50: ERROR[main]: TextureSource::buildMainAtlas(): Atlas is full, not adding more textures.
Loaded texture: /home/szymek/minetest/celeron55-minetest-2c362ba/textures/base/pack/sunrisebg.png
Font size: 8 15
18:31:55: ACTION[ServerThread]: SZAb leaves game. List of players:
18:32:03: ERROR[main]: ServerError: LuaError: error: ...mods/minetest/animals_modpack/mobf_settings/init.lua:38: attempt to call field 'settings_save' (a nil value)
18:32:03: ERROR[main]: stack traceback:
minetest: pthread_mutex_lock.c:312: __pthread_mutex_lock_full: Assertion `(-(e)) != 3 || !robust' failed.

Minetest crashes when i try to use inventory GUI...

PostPosted: Mon Feb 11, 2013 17:40
by PilzAdam
The problem is in the mobf_settings mod.

PostPosted: Mon Feb 11, 2013 19:41
by Topywo
SZab wrote:Minetest crashes when i try to use inventory GUI...


Did you install the latest version of the animals modpack (2.04) ?

PostPosted: Mon Feb 11, 2013 21:20
by BZab
@up yes, he does
@down yesterday compiled from Git ;)

PostPosted: Mon Feb 11, 2013 22:47
by Topywo
BZab wrote:@up yes, he does


I use a minetest version of 29 or 30 january 2013, 12472a4 and the mobf 2.04. I don't get errors. Maybe it's the minetest version 2c362ba?

PostPosted: Fri Feb 15, 2013 17:26
by Topywo
After installing the latest minetest version and latest MOBF framework (animals-mod) I got also the line 38 setting_save nil-value error) when:
- playing under advanced with creative, as soon as I pressed a forward button in the inventory
- typing /mobf_settings and making a change under the settings-menu

Removing the s behind settings in the mobf_settings folders' init.lua at line 38 looks to solve those problems.

/home/topywo/celeron55-minetest-30b9a4d-test/mods/minetest/animals_modpack-master/mobf_settings:

function mobf_settings.save()
if not minetest.is_singleplayer() then
minetest.settings_save()
end
--singleplayer saves automaticaly
end

into:

function mobf_settings.save()
if not minetest.is_singleplayer() then
minetest.setting_save()
end
--singleplayer saves automaticaly
end

Probably this was happening also with the lates minetest versions.

Though I don't know why an older version (see my previous post) worked, with the same MOBF framework version (2.04), since I don't see a change in the lua_api.txt (where I saw the "s" wasn't in use).

PostPosted: Sat Feb 16, 2013 16:47
by BZab
PS change only that one, or all "minetest.settings_save()"?

PostPosted: Sat Feb 16, 2013 20:31
by Topywo
BZab wrote:PS change only that one, or all "minetest.settings_save()"?


Only that one s on line 38.

If that doesn't help, you might consider deleting the mobf_settings folder.

PostPosted: Sat Feb 16, 2013 20:59
by BZab
Works ;)
At least that ;)

PostPosted: Fri Mar 15, 2013 16:45
by Tedypig
Topywo wrote:After installing the latest minetest version and latest MOBF framework (animals-mod) I got also the line 38 setting_save nil-value error) when:
- playing under advanced with creative, as soon as I pressed a forward button in the inventory
- typing /mobf_settings and making a change under the settings-menu

Removing the s behind settings in the mobf_settings folders' init.lua at line 38 looks to solve those problems.

/home/topywo/celeron55-minetest-30b9a4d-test/mods/minetest/animals_modpack-master/mobf_settings:

function mobf_settings.save()
if not minetest.is_singleplayer() then
minetest.settings_save()
end
--singleplayer saves automaticaly
end

into:

function mobf_settings.save()
if not minetest.is_singleplayer() then
minetest.setting_save()
end
--singleplayer saves automaticaly
end

Probably this was happening also with the lates minetest versions.

Though I don't know why an older version (see my previous post) worked, with the same MOBF framework version (2.04), since I don't see a change in the lua_api.txt (where I saw the "s" wasn't in use).


Worked like a charm. Thank you.