Time Nick Message 04:09 MTDiscord hi, Im getting some really interesting problems 04:09 MTDiscord I have the newest version of player_api 04:09 MTDiscord and I have a skins mod that sets the player skin using player_api 04:10 MTDiscord the problem is that just after I join a game, the player's skin gets reset to the default sam several times 04:11 MTDiscord so, even though the skins mod does set it to something else, it gets undone 04:11 MTDiscord I have no idea what is causing it. 04:11 MTDiscord I am running minetest game and a few other mods that do not interfere 05:04 MTDiscord ANyone have any idea waht is causing it? 05:04 MTDiscord to get me on the right track to fixing it? 05:08 MTDiscord basically, something is preventing me from changing player textures 05:31 MTDiscord my entire codebase is here: https://gitlab.com/arcadeemulationserver/aes_game/-/tree/master the skins mod is here: https://gitlab.com/arcadeemulationserver/skins_collectible and the player_api mod is here: https://gitlab.com/arcadeemulationserver/aes_game/-/tree/master/mods/player_api/textures 10:45 sfan5 you'll want to figure out which calls sets the texture and then identify all places where this is called 14:13 MTDiscord I tried to do that. I combed through the codebase, but could not identify it. I have a potential fix; I was supposed to use a special version of player_api. I will see if that does fix it 14:26 MTDiscord My server crashed unexpectedly: I got a bunch of errors like the first before the crash, and then the crash error is the last error: 2021-05-01 08:02:34: WARNING[Server]: Map::getNodeMetadata(): Block not found 2021-05-01 08:02:34: WARNING[Server]: Map::removeNodeMetadata(): Block not found 2021-05-01 08:02:34: ERROR[Server]: An unhandled exception occurred: std::bad_alloc 2021-05-01 08:02:34: ERROR[Server]: In thread 14:26 MTDiscord 0xc763acba840: 2021-05-01 08:02:34: ERROR[Server]: /home/minetest/minetest4/src/server.cpp:7d: virtual void *ServerThread::run(): A fatal error occurred: std::bad_alloc 14:26 sfan5 std::bad_alloc == The program ran out of RAM 14:39 MTDiscord great, thx. I guess I need a new server 14:41 MTDiscord How much ram does Minetestserver need? 14:42 sfan5 it depends on what the mods do, could also just be a bug in them 14:42 MTDiscord ok 15:04 Krock !tell kilbith oooo nice. I love it 15:04 MinetestBot Krock: I'll pass that on when kilbith is around 15:08 MTDiscord I only have 1 gb ram btw 15:12 Bombo MisterE: is this a rpi? ;) 15:14 Bombo i got a 'prob' i played around with the server and mods and games, now i got one 'unknown item' in my inventory, can i find out what it was? no idea where that came from, i thought i installed all mods again hehe 15:14 Bombo (i deleted/moved mods and back) 15:15 gehmehgeh hmm, when Minetest throws an "Error" that such and such dependency for some mod X doesn't exist, does that mean mod X also doesn't get loaded? 15:29 MTDiscord Bombo: no its not 15:29 MTDiscord its a VM 15:31 MTDiscord sfan5: I have the server crashing with those errors. 2021-05-01 17:30:42: WARNING[Server]: Map::getNodeMetadata(): Block not found 2021-05-01 17:30:42: WARNING[Server]: Map::removeNodeMetadata(): Block not found 2021-05-01 17:30:42: WARNING[Server]: Map::getNodeMetadata(): Block not found 2021-05-01 17:30:42: WARNING[Server]: Map::removeNodeMetadata(): Block not found 2021-05-01 17:30:42: WARNING[Server]: 15:31 MTDiscord Map::getNodeMetadata(): Block not found 2021-05-01 17:30:42: WARNING[Server]: Map::removeNodeMetadata(): Block not found 2021-05-01 17:30:42: WARNING[Server]: Map::getNodeMetadata(): Block not found 2021-05-01 17:30:42: WARNING[Server]: Map::removeNodeMetadata(): Block not foun 15:31 MTDiscord and the server;s webpanel says it was only using 38% memory 15:32 MTDiscord those errors just scroll on by while minetestserver is unresponsive 15:37 sfan5 those aren't errors, just warnings 15:37 sfan5 in any case it depends on what mods are doing 15:38 MTDiscord well, while it does that, the game is unrespionsive, only shutting it down makes it responsive again 15:40 gehmehgeh sfan5: thanks 15:40 MTDiscord tl;dr one mod is trying to get invalid nodes inside a loop that doesn’t exist 15:40 MTDiscord Exit 15:40 sfan5 gehmehgeh: that answer wasn't for you 15:43 sfan5 for your question the answer is "yes" 15:43 gehmehgeh hm 15:43 gehmehgeh uh 15:57 MTDiscord sfan5: 15:57 MTDiscord 2021-05-01 15:55:03: WARNING[ConnectionSend]: con(5/1) Packet quota used up for peer_id=7, was 341 pkts 15:57 MTDiscord waht does that mean? 15:58 sfan5 the server has a large amount of data to deliver to a client and couldn't send it all at once 15:58 MTDiscord ok, is that a problem, or normal? 15:58 sfan5 not a problem if doesn't happen regularily 15:59 MTDiscord ok. I got 16 of those msgs all at once 15:59 MTDiscord so... About the memory problem: 15:59 MTDiscord I installed the game on another server that has 4 gb of ram 16:00 MTDiscord that isnt giving me 2021-05-01 17:30:42: WARNING[Server]: Map::removeNodeMetadata(): Block not found 16:00 MTDiscord whereas the one with 1 gb ram is 16:19 MTDiscord sfan5: do you have any idea why skins are mysteriously reset every so often? I have a skins mod that changes the skin, but it gets reset back to sam (character.png) at join and every few minutes. So the skins mod is able to set the skin, but it automatically gets set back to character.png after a few minutes 16:24 sfan5 I can't guess that, no 16:31 MTDiscord ok, thnks anywas. My next step is to try skinsdb, and see if it still happens with that. If it doesn, then I know its not the skins mod at fault, if not, then I know it is 17:04 Bombo i removed a lot already but i still get WARNING[Server]: active block modifiers took 201ms (processed 49 of 485 active blocks) 17:06 Bombo i tried profiling but don't know what everything means in the txt on_step[24] max 86.7 and 91.4 sound much 17:06 Bombo for mobs_animal 17:32 Pexin MT server with 1G hahaha 17:33 sfan5 you can run an MT server with 1GB fine but you have to careful about the player amount and mods you use 17:34 Pexin barebones mt_game with one player tho 17:34 sfan5 nah, up to 5 should be fine 17:44 MTDiscord so.. yeah, now I have 4 gb ram 17:44 MTDiscord It got upgraded 17:45 Bombo is there a way to remove all animalworld:* objects/nodes/entities? 17:45 big_caballito Hey, can you detect if an object is a player? 17:45 big_caballito id imagine so 17:46 Bombo i removed the mod, now there are ERROR[Server]: LuaEntity name "animalworld:frog" not defined 17:47 MTDiscord bombo: yes, alias's and globalstep to check for unregistered objs and remove them 17:49 MTDiscord big_caballito minetest.is_player 17:50 Bombo Jonathon i need to write a lua script? 17:51 MTDiscord you would need to make a mod to remove nodes and entities from the world 17:52 Bombo i got no idea how that works (yet) 17:53 Bombo do mods have functions like unregister? 17:53 Bombo if i want to remove one 17:54 MTDiscord unless the mod author wrote one, no 17:54 MTDiscord the minetest api does 17:54 MTDiscord so, even with 4 gb ram, im still getting these warnings, and the server becomes unresponsive: 17:54 MTDiscord 2021-05-01 19:53:54: WARNING[Server]: Map::getNodeMetadata(): Block not found 2021-05-01 19:53:54: WARNING[Server]: Map::removeNodeMetadata(): Block not found 2021-05-01 19:53:54: WARNING[Server]: Map::getNodeMetadata(): Block not found 2021-05-01 19:53:54: WARNING[Server]: Map::removeNodeMetadata(): Block not found 17:54 MTDiscord any idea what could cause this? 17:55 MTDiscord could it be that the world is corrupted? 17:55 Bombo MisterE does this happen on a fresh new world? 17:55 MTDiscord good question, I will try it 17:56 Bombo now i got no more 'active block modifiers took 201ms' ;) 17:56 Bombo but lots of unknown 17:58 Bombo need a cleanup mod ;) 17:59 MTDiscord there are ones that will nuke stuff to air, however i wont recommend one of those in good faith as you may want to have control over what it converts them to 18:00 hlqkj https://github.com/neko259/mod-cleaner 18:00 hlqkj this one worked fine with me 18:02 MTDiscord it doesnt seem to happen with a new world ? is there anything to do to repair a world? 18:03 big_caballito Jonathan: Thanks. 18:03 Bombo hlqkj: ok thx will check tomorrow 18:04 hlqkj are you using the technic mod perhaps? we had that error, and found out was due to tech 18:04 Pexin to remove all instances of , what I would do is shut down server, open database in commandline editor, and mass overwrite those records. but that's because I'm probably insane, so please ignore me. 18:04 hlqkj *warning sorry. 'abm took to long' thig 18:05 hlqkj nodes are not stored plain in the database, you would have to run across all nodes stored in each mapblock 18:05 MTDiscord Pexin: lol, best to make a back up first, but that would save you keeping the alias for all of time 18:05 Pexin yeah I remembered after I hit enter 18:06 MTDiscord hlqkj: every machine is a abm in technic if i recall correctly, not surprising 18:06 Pexin instead there's a utility to decode/re-encode the map, so.. not quite simple as a database query 18:06 hlqkj no, only the switching station is an abm 18:06 Bombo i found https://forum.minetest.net/viewtopic.php?t=21589 sound even better 18:07 hlqkj problem sw/stations forceloads map blocks and never release them 18:07 hlqkj as the time passes you end up having a ton of blocks loaded, and the abm running through them. that caused the warning on our server 18:08 hlqkj Pexin, that's what i meant :) 18:09 Pexin yeah. I just forgot. 18:10 Bombo what does abm stand for? 18:10 hlqkj Active Block Modifier 18:11 Bombo ok thx 18:12 hlqkj about the link you posted a few mins ago, not the one to judge but someone I know got serious problems with that mod once 19:40 MTDiscord sfan5 or others who know: 2021-05-01 21:38:34: WARNING[ConnectionSend]: con(4/1) Packet quota used up for pee r_id=8, was 512 pkts im getting that alot actually, what does that mean? 19:41 sfan5 you asked the same question 4 hours ago 21:29 MTDiscord you said not a prob if it doesnt happen regularly... so its happening regularly, so Id like a bit more info about it. 21:30 sfan5 the game/a mod is causing too much traffic for the server and it can't keep up with delivering it 21:31 MTDiscord thats happening with a few players online: does that mean that my server does not have good enough internet to support many players 21:31 MTDiscord ? 21:31 MTDiscord or does it just mean that the clients dont have good internet, or are we not able to tell? 21:31 sfan5 neither 21:32 MTDiscord oh.. 21:32 sfan5 it means a game or mod is not well optimized 21:32 sfan5 (probably) 21:32 MTDiscord ok. Is there a process to figure out which one it is? 21:33 MTDiscord So I can put it on a todo 21:33 sfan5 not directly 21:33 MTDiscord ok, thanks 21:34 sfan5 if you run the client with --verbose it can inform you about which packets are sent very often 21:34 sfan5 and for most you can determine which function would have been called that caused them 21:35 sfan5 and then you look for calls to it in mods and inefficient places are usually obvious