vmanip calc lighting segfault

User avatar
BrandonReese
Member
 
Posts: 836
Joined: Wed Sep 12, 2012 00:44
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese

vmanip calc lighting segfault

by BrandonReese » Mon Nov 30, 2015 04:44

I frequently get segfaults that seems to be related to vmanip calc_lighting.

http://pastebin.com/wsVhD2d3

Is this something that needs to be fixed in the engine or could be a problem with a mod? It happens in adventuretest (https://www.github.com/bremaweb/adventuretest) and it seems to happen mostly because of vmanip used in mg_villages and/or mg/dungeons.lua

Any help is appreciated.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: vmanip calc lighting segfault

by paramat » Mon Nov 30, 2015 17:34

https://github.com/Bremaweb/adventuretest/blob/master/mods/mg/dungeons.lua#L156
Here try this instead:
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
vm:calc_lighting()

Calc lighting should never have emin, emax as arguments, it might have worked in the past but lighting code has evolved.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 5 guests

cron