-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unusual error and crash. #20
Comments
minetest-mod-snow/src/falling_snow.lua Line 88 in 90e08fe
The metatable of cold_perl_values is changed, maybe the garbage collector deleted cold_perl_values[y] when minetest.get_perlin took memory. |
I thought it might be related to garbage collection, but I would have hoped Lua would know better. Its very confusing to me at the moment what happened. |
It happened again :(
|
Maybe minetest.get_perlin takes lots of memory. Strangely your error message is |
try adding if x == nil then
error("nil x")
end
if y == nil then
error("ni y")
end to minetest-mod-snow/src/falling_snow.lua Line 97 in 90e08fe and seeing if that causes it to crash due to either of them being nil |
rubenwardy, as long as this can't be reproduced, the code doesn't help much x and y is passed to l_get2d, which copies the values to NoisePerlin2D l assume |
M src/falling_snow.lua
M src/falling_snow.lua
l think l forgot to round the player position, so the cache didn't work and |
Running 90e08fe. I can't figure out how line falling_snow.lua:98 is fine but then it chokes on 109. I've only seen this error once.
The text was updated successfully, but these errors were encountered: