sofar / luscious

modifies your base landscape and modifies various nodes like dirt and leaves so that they become colored
7 stars 3 forks source link

mod keeps crashing #2

Open tobyplowy opened 6 years ago

tobyplowy commented 6 years ago

@sofar i can play for like 1 minute and than it crashes

this is what my debug file says

-------------
  Separator
-------------

2017-12-31 22:01:32: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-12-31 22:01:32: ACTION[Main]:         .__               __                   __   
2017-12-31 22:01:32: ACTION[Main]:   _____ |__| ____   _____/  |_  ____   _______/  |_ 
2017-12-31 22:01:32: ACTION[Main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
2017-12-31 22:01:32: ACTION[Main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  |  
2017-12-31 22:01:32: ACTION[Main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__|  
2017-12-31 22:01:32: ACTION[Main]:       \/        \/     \/          \/     \/        
2017-12-31 22:01:32: ACTION[Main]: World at [E:\minetest-0.4.16-win64\bin\..\worlds\fffffff]
2017-12-31 22:01:32: ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:55170.
2017-12-31 22:01:33: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-12-31 22:01:33: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-12-31 22:01:33: ACTION[Server]: singleplayer [127.0.0.1] joins game. 
2017-12-31 22:01:33: ACTION[Server]: singleplayer joins game. List of players: singleplayer
2017-12-31 22:01:43: ACTION[Server]: singleplayer granted (server, shout, fly, password, creative, bring, kick, teleport, ban, noclip, home, debug, privs, fast, basic_privs, zoom, give, protection_bypass, rollback, settime, interact) privileges to singleplayer
2017-12-31 22:01:51: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback LuaABM::trigger(): Runtime error from mod 'default' in callback node_on_construct(): E:\minetest-0.4.16-win64\bin\..\mods\luscious\init.lua:22: attempt to perform a
2017-12-31 22:01:51: ERROR[Main]: ithmetic on local 'p2' (a nil value)
2017-12-31 22:01:51: ERROR[Main]: stack traceback:
2017-12-31 22:01:51: ERROR[Main]:   E:\minetest-0.4.16-win64\bin\..\mods\luscious\init.lua:22: in function 'cmpy'
2017-12-31 22:01:51: ERROR[Main]:   E:\minetest-0.4.16-win64\bin\..\mods\luscious\init.lua:49: in function <E:\minetest-0.4.16-win64\bin\..\mods\luscious\init.lua:31>
2017-12-31 22:01:51: ERROR[Main]:   [C]: in function 'set_node'
2017-12-31 22:01:51: ERROR[Main]:   ...6-win64\bin\..\games\minetest_game\mods\flowers\init.lua:147: in function 'flower_spread'
2017-12-31 22:01:51: ERROR[Main]:   ...6-win64\bin\..\games\minetest_game\mods\flowers\init.lua:157: in function <...6-win64\bin\..\games\minetest_game\mods\flowers\init.lua:156>
2017-12-31 22:01:51: ERROR[Main]: stack traceback:
2017-12-31 22:01:51: ERROR[Main]:   [C]: in function 'set_node'
2017-12-31 22:01:51: ERROR[Main]:   ...6-win64\bin\..\games\minetest_game\mods\flowers\init.lua:147: in function 'flower_spread'
2017-12-31 22:01:51: ERROR[Main]:   ...6-win64\bin\..\games\minetest_game\mods\flowers\init.lua:157: in function <...6-win64\bin\..\games\minetest_game\mods\flowers\init.lua:156>
2017-12-31 22:01:51: ACTION[Server]: singleplayer leaves game. List of players: 
sofar commented 6 years ago

Was this world created before, or after you installed and enabled the luscious mod?

tobyplowy commented 6 years ago

I made the world and before opening it for the first time I emailed the mod and then loaded it

sofar commented 6 years ago

Can't reproduce. Remove map.sqlite and load the world again, and see if the problem persists.

I don't have a windows system to test on, but it works without issues on my Linux system.

tobyplowy commented 6 years ago

@sofar no it still happens

tobyplowy commented 6 years ago
2018-01-02 13:20:43: ACTION[Main]: World at [E:\minetest-0.4.16-win64\bin\..\worlds\gggggggggg]
2018-01-02 13:20:43: ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:63970.
2018-01-02 13:20:46: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2018-01-02 13:20:46: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2018-01-02 13:20:46: ACTION[Server]: singleplayer [127.0.0.1] joins game. 
2018-01-02 13:20:46: ACTION[Server]: singleplayer joins game. List of players: singleplayer
2018-01-02 13:20:51: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback LuaABM::trigger(): Runtime error from mod 'default' in callback node_on_construct(): E:\minetest-0.4.16-win64\bin\..\mods\luscious\init.lua:49: bad argument #2 to '
2018-01-02 13:20:51: ERROR[Main]: mpy' (number expected, got nil)
2018-01-02 13:20:51: ERROR[Main]: stack traceback:
2018-01-02 13:20:51: ERROR[Main]:   [C]: in function 'cmpy'
2018-01-02 13:20:51: ERROR[Main]:   E:\minetest-0.4.16-win64\bin\..\mods\luscious\init.lua:49: in function <E:\minetest-0.4.16-win64\bin\..\mods\luscious\init.lua:31>
2018-01-02 13:20:51: ERROR[Main]:   [C]: in function 'set_node'
2018-01-02 13:20:51: ERROR[Main]:   ...64\bin\..\games\minetest_game\mods\default/functions.lua:417: in function <...64\bin\..\games\minetest_game\mods\default/functions.lua:405>
2018-01-02 13:20:51: ERROR[Main]: stack traceback:
2018-01-02 13:20:51: ERROR[Main]:   [C]: in function 'set_node'
2018-01-02 13:20:51: ERROR[Main]:   ...64\bin\..\games\minetest_game\mods\default/functions.lua:417: in function <...64\bin\..\games\minetest_game\mods\default/functions.lua:405>
2018-01-02 13:20:51: ACTION[Server]: singleplayer leaves game. List of players: 
sofar commented 6 years ago

The log output is malformed, not sure if it's windows or copy/paste error. There's clearly characters missing here and there.

Since this is windows, I can't test nor confirm this bug. I've done dozens of hours of testing on Linux, and this bug doesn't happen. It must be something windows related - perhaps the file storage or some other thing that is safe in Linux is breaking Windows.

Until I find a reproduction under Linux, I can't do anything about this.

sofar commented 6 years ago

btw, try not to use singleplayer but host a world instead, maybe there is some difference in that as well.

tobyplowy commented 6 years ago

when i host the same ting happens bdw this problem was not present in the first version (before you added 2 colormaps) maybe i have to add that file to the world folder (in the first version i remember having to add a file to the world folder before opening it for the first time)

but the new one only says

Installation

Create a new world, enable this mod. Do not use this mod in an existing world, ever.

also again my debug now as a file debug.txt

sofar commented 6 years ago

Does it crash when you're moving around randomly? Or when you do something? If you're doing something, what is it that you're doing? Did you enable or disable any mods? Are you using 0.4.16 with 0.4.16 minetest_game, or some other version of minetest_game?

tobyplowy commented 6 years ago

Does it crash when you're moving around randomly?

Yes I'm just randomly flying around in creative mode in a V7 mapgen would

No I have no mods enabled apart from luscious it self But I do have a texture pack on but that can't be it because if I disable the texturepack it still happens

Are you using 0.4.16 with 0.4.16 minetest_game

Yes

sofar commented 6 years ago

Are the grass and leaf colors actually colored, or is everything the same color shade?

Do you have the folder with the biomedata in your world folder? can you show me the size of the files, and the count of them?

tobyplowy commented 6 years ago

Are the grass and leaf colors actually colored

yes

or is everything the same color shade?

no the colors work fine :D

Do you have the folder with the biomedata in your world folder? can you show me the size of the files, and the count of them?

i made a new world and it crased after like 36 seconds (i used a timer) this includes typing the /grantme all command so i can fly around and this is the world file world.zip

the luscious folder is 24,0 kB big and theres 48 files in it

tobyplowy commented 6 years ago

also i get this when i load a world after the crash image

sofar commented 6 years ago

The luscous compressed files in that zip file are either all corrupted, or the windows method for writing them is incompatible. If I remove them and remove the map.sqlite, I get no problems. otherwise, I get:

2018-01-03 17:01:55: [Server]: zerr: invalid or incomplete deflate data
2018-01-03 17:01:55: ERROR[Server]: An unhandled exception occurred: decompressZlib: inflate failed
2018-01-03 17:01:55: ERROR[Server]: In thread 7fd911810700:
2018-01-03 17:01:55: ERROR[Server]: /builddir/build/BUILD/minetest-0.4.16/src/server.cpp:73: virtual void* ServerThread::run(): A fatal error occured: decompressZlib: inflate failed

This suggests an engine bug.

sofar commented 6 years ago

btw, where did you download this windows build from?

tobyplowy commented 6 years ago

From the official minetest website minetest.net

tobyplowy commented 6 years ago

@sofar do you still have an old version of the mod (i remember an older version working fine)

sofar commented 6 years ago

It's in git, just clone an old copy or evern dowload an old tag - you can do this from the github page.

tobyplowy commented 6 years ago

@sofar theres no tags

image

sofar commented 6 years ago

Did you figure out which commit breaks it? If you can pinpoint it to an exact commit, it would help a lot.

tobyplowy commented 6 years ago

@sofar No I dident but I can try to find it

tobyplowy commented 6 years ago

@sofar it seems that this one is the problem https://github.com/sofar/luscious/commit/f1f2cd4d4e45c62040740f80760cd4ca1d550edf

sofar commented 6 years ago

Please open 2 separate issues for those things. This issue is about the crash, only.

srutzky commented 4 years ago

I'm also getting these errors. There is a slight variation among them, but they all start out the same:

: ServerError: AsyncErr: environment_Step: Runtime error from mod 'default' in callback environment_Step(): Runtime error from mod 'default' in callback node_on_construct(): C:\Program Files\Minetest\bin..\mods\luscious\init.lua:22: attempt to perform arithmetic on local 'p2' (a nil value) : stack traceback: : C:\Program Files\Minetest\bin..\mods\luscious\init.lua:22: in function 'cmpy' : C:\Program Files\Minetest\bin..\mods\luscious\init.lua:49: in function <C:\Program Files\Minetest\bin..\mods\luscious\init.lua:31> : [C]: in function 'set_node'

I've seen the following after that initial part:

: ...ram Files\Minetest\bin..\mods\cloudlands/cloudlands.lua:1250: in function 'func' : C:\Program Files\Minetest\bin..\builtin\common\after.lua:20: in function <C:\Program Files\Minetest\bin..\builtin\common\after.lua:5> : C:\Program Files\Minetest\bin..\builtin\game\register.lua:429: in function <C:\Program Files\Minetest\bin..\builtin\game\register.lua:413>

or this:

...st\bin..\games\minetest_game\mods\default/functions.lua:554: in function <...st\bin..\games\minetest_game\mods\default/functions.lua:534>

or this:

...inetest\bin..\games\minetest_game\mods\flowers\init.lua:166: in function 'flower_spread' ...inetest\bin..\games\minetest_game\mods\flowers\init.lua:178: in function ><...inetest\bin..\games\minetest_game\mods\flowers\init.lua:177>

The timing of the errors is highly inconsistent. Sometimes it happens within a few minutes of playing, sometimes after 30 minutes, and sometimes I can play for over an hour and exit the game normally (i.e. no errors at all).

Not sure if this matters, but sometimes I get the "cannot find map for: XXXXXXXXX" error, but that never seems to correlate to this error / crash (just mentioning in case it helps narrow things down).


Minetest version:

5.3.0 (portable / official release)

Running on:

Microsoft Windows 10 Home Edition Version 1909+ OS Build 18363.1082

Using texture pack:

Artelhum

Game:

Minetest Game


Please also see: