Log spaming "Assertion Failed: SDR service thread gave up on lock after waiting" #104
Replies: 9 comments 34 replies
-
On my DS416play I'm also seeing these log messages from time to time but not always. Do these messages appear for every connected player or only when a player with poor internet connectivity is connected? |
Beta Was this translation helpful? Give feedback.
-
I found this thread but I am unsure as to how it might apply to this container. |
Beta Was this translation helpful? Give feedback.
-
@arnibanani I do not know if these should be filtered, but if that is what you would like to do there is a way to do so. There are some undocumented environment variables, namely these:
If you extend that line and run your server with e.g. |
Beta Was this translation helpful? Give feedback.
-
Couldn't really find anything substantial but looking at the sources at this error seems to be thrown if during internal dispatching of UDP packets the acquisition of some lock runs into a timeout taking more than 50ms or a couple of other conditions that are OR'ed into the assert. Because all the logs I've seen so far had a value larger than 50ms I'd assume it's the timeout that's triggering the log entry. From the source comments it sounds like this should never or rarely happen. And since the linked "fix" is based on allowing the server process to set a negative nice level (making the kernel give more CPU time to the Valheim server) which tbh is not a great idea, I would assume that your system is too heavily loaded for the server to process packets in a timely manner. But then I've found threads where people say that their CPU is not an issue. So I don't know with certainty. Also this seems to be a new problem introduced with the latest Valheim version and I'm assuming the Steam UDP library has been there from the start. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
even when cpu is completely normal low usage this issue is still present for me. ive tried adding server_public false to the environment variables to avoid steam sockets but it doesnt appear to work. so even at 35% cpu i get lag just by being in world not doing anything thanks to steam netwroking being rubbish as always. any advice? am i misusing the environment variable? |
Beta Was this translation helpful? Give feedback.
-
I just merged #176 When I tested this in my test environment described above it helped a lot with Steam being able to process packages. It's not a magic bullet though. Steam will renice one thread to |
Beta Was this translation helpful? Give feedback.
-
I have the same problem unfortunately... I run the Docker container on a Synology 218+ with Intel Dual Core @ 2Ghz. Container is configured with sys_nice and I gave it high CPU priority over the Synology Docker GUI. It sits there at 10-20% CPU load while I'm connected, but it spams my logs and I sometimes have to wait more than 10 seconds to open a chest. Running the same map locally and no problems.... :( |
Beta Was this translation helpful? Give feedback.
-
FYI the latest image will now by default filter the |
Beta Was this translation helpful? Give feedback.
-
Hello!
I experience some problems with my server on a diskstation:
When a player is connected, my docker gets spammed with errorlogs:
...etc
After some time, i cant open my protocoll, i assume its overloaded?
Anyway, i found out that this is a message seems to be complaining about a high latency? Is there a way to stop these messages appearing?
Beta Was this translation helpful? Give feedback.
All reactions