Space Engineers

Space Engineers

Paint Gun - realistic painting for survival + special creative features
This topic has been locked
sharkle 6 Aug, 2019 @ 4:54am
Exception in logs
In the logs of my dedicated server I see *a lot* of exceptions caused by the paint gun mod.
Since no one has complained about any problems with it, I assume it still works as expected and this is "just" an issue in the logs, but who knows.

The message:
11:40:03.5639 [INFO] Keen: PaintGun error/exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at Digi.PaintGun.PaintGunMod.CheckColorList(UInt64 steamId, List`1 oldList, List`1 newList) at Digi.PaintGun.PaintGunMod.ReadPlayerColors() at Digi.PaintGun.PaintGunMod.UpdateBeforeSimulation()

The problem is that this happens every ~100ms even when no one is connected. After a restart it now stopped appearing, but my logs for the last 2 days are now 130mb+ with 250k+ occurrences of that error.

I definitely have to add regular auto-restarts to my server anyways, but maybe you can find some problem just with that stacktrace. :-)
< >
Showing 1-5 of 5 comments
Digi  [developer] 6 Aug, 2019 @ 8:47am 
Well I dunno what data the game feeds the mod in that case, it might be the remote access thing because I think that acts as a player, were you using that?

I could add some checks there to avoid the exception, that would likely solve the spam but it would hide a desync issue which people probably either didn't notice or didn't bother to report xD
Last edited by Digi; 6 Aug, 2019 @ 8:47am
sharkle 6 Aug, 2019 @ 9:06am 
Which remote access thing? I'm not aware of what was happening yesterday, I wasn't even on the server.

If you mean remote access via antenna to another grid: I doubt it. Most players on my server don't even realize that exists, I think. :D

I saw one more thing in the mod logs themselves:
[12:49:25] OwnershipTestServer - temp grid for 76561198020554453 got removed as client script didn't paint it within 30 seconds.

Not sure if that's relevant at all.
sharkle 6 Aug, 2019 @ 9:10am 
After specifically asking my players, I was told by one that he saw something like "Paint gun error something something" but it kept working fine.
Digi  [developer] 6 Aug, 2019 @ 9:14am 
I mean dedicated server remote client.

That other log entry isn't related. It could mean they had some clientside errors or it could mean they simply left just as they spawned and the script couldn't finish the ownership test.
EDIT: I could use that log/error that the player had, it might be the ownership thing.

Anyway, I'll also do some tests and stuff to see if I can obsolete that code you got an error in, because it's probably not needed anymore since there were some API additions since it was created and I just did not touch it because MP sync is annoying to test =)
Last edited by Digi; 7 Aug, 2019 @ 7:48pm
sharkle 6 Aug, 2019 @ 9:45am 
No, my hoster doesn't even allow remote client access.

Getting the log might be difficult because apparently the player in question rage-quit the game and said he wouldn't come back due to an unrelated accident. :lunar2019crylaughingpig:

So all information I have except server logs is second hand.
< >
Showing 1-5 of 5 comments
Per page: 1530 50