Jump to content

Dedicated server crashes constantly: issue with electric fence (T.I.N.G.L.E. Node)?


konijnenmoed
  • Fixed

My dedicated public server without any mods has been running very stable and without any issues, but after last update it has become extremely unstable and crashes multiple times a day. To the point I even had to do a remote console rollback for multiple days, because the server kept shutting down itself.

Server logs don't show any errors or issues before disconnecting all players and shutting down server. It just disconnects without stating or showing any errors beforehand. However, client logs show the following right before clients lose connection to the server:

[00:17:43]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[102417]
[00:18:31]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105175]
[00:18:31]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105192]
[00:18:31]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105256]
[00:18:31]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105279]
[00:18:33]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105371]
[00:18:33]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105432]
[00:18:33]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105479]
[00:18:34]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105514]
[00:18:35]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105676]
[00:18:35]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105698]
[00:18:36]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105842]
[00:18:36]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[105856]
[00:18:38]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[106018]
[00:18:38]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[106045]
[00:18:40]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[106271]
[00:18:48]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[106746]
[00:18:51]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107135]
[00:18:51]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107145]
[00:18:51]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107175]
[00:18:51]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107207]
[00:18:52]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107238]
[00:18:52]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107298]
[00:18:53]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107390]
[00:18:53]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107407]
[00:18:53]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107442]
[00:18:53]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107450]
[00:18:53]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[107451]
[00:20:02]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112442]
[00:20:03]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112464]
[00:20:03]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112478]
[00:20:03]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112510]
[00:20:04]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112558]
[00:20:04]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112587]
[00:20:04]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112625]
[00:20:04]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112642]
[00:20:11]: [SoundEmitter] Error deserializing named sound hash for entity fence_electric_field[112958]

This particular moment was during a hound attack in Spring, where multiple players were near or next to electric fences at multiple places on the map. As far as I know, server crashes have happened multiple times during hound attack waves, but I'm not sure if this is the exact reason why my server crashes.

I did see another bug report that shows the same "pattern" of disconnecting the server after interacting with the fence: 

 

if not TheWorld.ismastersim then
		return
	end

	if not inst.SoundEmitter:PlayingSound("linked_lp") then
	    inst.SoundEmitter:PlaySound("dontstarve/common/together/electric_fence/linked_lp", "linked_lp")
inst.SoundEmitter:KillSound("linked_lp")

It appears that it tries to kill a sound for clients which it didn't even start (thanks Viktor for explaining!). Could this result in a server crash? Or is something else causing these crashes?

 


Steps to Reproduce

No steps to reproduce.

  • Like 2



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Do you have a .dmp/.mdmp file as well in server or client logs? It might be useful to upload it, as that's where crashes related to the game's engine are stored. They seem to be encrypted/just in some unknown format, so we can't read them, but they might be useful for the devs to find out why it crashes, as they do have the tools for reading those afaik.

Share this comment


Link to comment
Share on other sites

8 minutes ago, grem6 said:

Do you have a .dmp/.mdmp file as well in server or client logs? It might be useful to upload it, as that's where crashes related to the game's engine are stored. They seem to be encrypted/just in some unknown format, so we can't read them, but they might be useful for the devs to find out why it crashes, as they do have the tools for reading those afaik.

I'll check if I can find them and add them to the original post if so.

Share this comment


Link to comment
Share on other sites

Well, regarding the client issue that spams log prints, clients shouldn't be running that KillSound call, the entity is networked and the server is the one handling starting it, so it should also be handling killing the sound in this case (it could probably be okay if the sound was played as predicted and started for both client and server, but this is usually only done for players with movement prediction, so I don't know if it'd work).

Unsure if that's part of the crash or not but yeah, get the .dmp/.mdmp files if you can.

Share this comment


Link to comment
Share on other sites

Seems like Klei has been aware for a while, announced this on a Twitch stream chat and is working on a hotfix.

I do want to ask Klei to publicly release a statement next time on the forum for a severe issue like this. I'm not talking about an occasional crash, but this made the game almost unplayable and hosting a server very exhausting. Last days, I spend many hours to try and find out what was happening, so I could file a bug report that would be sufficient enough. 

You ask us to communicate bugs through this forum, and it would be nice if we could get that in return too.

Share this comment


Link to comment
Share on other sites

Crash seems to be caused by mob in frozen state + "touching" electric fence.

Video of crash with frozen butterfly at electric fence. Reproduce by following steps:

  1. Set up electric fence
  2. Place/drop butterfly at fence, wait until it gets loop state on fence
  3. Use ice staff to attack butterfly
  4. Server freezes for a few seconds
  5. Server disconnects all player 

(Thanks Elpida for showing me!)

Edited by konijnenmoed

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...