Page 1 of 1

crash in /mods/default/nodes.lua:1807

PostPosted: Thu Mar 26, 2015 09:31
by afeys
Hi,

I have a weird problem with minetest.
I'm using minetest 0.4.12, on linux Mint, with a slightly altered Calinou-Carbone game.
Differences between standard Calinou-Carbone and my testversion:
- added 'castle' mod
- added 'caverealms' mod
- added 'cottages' mod
- added 'homedecor' mod
- added 'hud' mod
- added 'more_chests' mod
- added 'moreores' mod
- added 'moretrees' mod
- added 'nature' mod
- added 'plantlife' mod
- added 'torches' mod
- added 'vines' mod
- added 'weather' mod

There are three (very simple) mods I made: nodeinfo, debugpos, buildingbox. But when I remove these from the modsfolder the problem is the same (and I haven't used any of the node blocks or tools supplied by my three mods).

I have been building and mining happily for multiple hours (spread over multiple sessions and days) without any problem whatsoever.
I've wandered a bit away (just a couple of minutes, so not too far) from my home and came upon something which looks like a chunk error (see attached zipfile for screenshots). And there is a really weird 'thing' in the sky. Whenever I get too close to this 'thing' I get the following error dialog (screenshot also included in zipfile):
ERROR:
..afeys/.minetest/games/feys-custom/mods/default/nodes.lua:1807:
attempt to index local 'fuel' ( a nil value)
stack traceback:

with an 'OK' button.

If I restart the game, I immediately crash. If I edit the player file in the savegame and change the playerposition I can do whatever I want, until I get too close to this UFO (unidentified floating obstacle)

Anyone has any idea what this is, or what caused this 'chunk error'?

The contents of debug.txt (with debug_log_level = 4) and some screenshots is included in the attached zip file.

Re: crash in /mods/default/nodes.lua:1807

PostPosted: Thu Mar 26, 2015 17:58
by Krock
Could you also upload your nodes.lua file?
Currently, there's no way to detect the source of this bug.

Re: crash in /mods/default/nodes.lua:1807

PostPosted: Thu Mar 26, 2015 20:23
by afeys
Hi Krock,
thanks for the speedy reply.
here is the nodes.lua file.

Re: crash in /mods/default/nodes.lua:1807

PostPosted: Thu Mar 26, 2015 21:22
by dfsaddfsa
looks like the uninitialized mapblock data bug that was fixed a while ago.

Re: crash in /mods/default/nodes.lua:1807

PostPosted: Fri Mar 27, 2015 18:37
by Krock
dfsaddfsa wrote:looks like the uninitialized mapblock data bug that was fixed a while ago.

That has nothing to do with this bug.
The problem is, there's an unknown fuel in the furnace.
This is how you can fix 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
1803      if fuellist then
1804         fuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist})
1805      end
1806
+         if not (fuel and cooked) then
+            return
+         end
+
1807      if fuel.time <= 0 then

Re: crash in /mods/default/nodes.lua:1807

PostPosted: Fri Mar 27, 2015 21:06
by dfsaddfsa
the unknown fuel got there because furnaces where among the random nodes placed...

this means krocks fix will work, but your map will still get corrupted with random nodes. to fix this update your minetest if you can.

to save your borked world you can apply the fix by krock so the furnaces dont crash, then remove the random nodes. worldedit should do it.

Re: crash in /mods/default/nodes.lua:1807

PostPosted: Sat Mar 28, 2015 13:20
by afeys
Thanks for the excellent support.
I'll update my minetest tomorrow and then run that fix.