Pinkstink-Rust / Rust-Server-Metrics

A metrics gathering HarmonyMod for Rust game servers
MIT License
59 stars 23 forks source link

Bunch of NRE's when loaded #28

Closed UnrealSalty closed 1 month ago

UnrealSalty commented 1 month ago

NullReferenceException: Object reference not set to an instance of an object at RustServerMetrics.MetricsLogger.OnPlayerDisconnected (BasePlayer player) [0x00000] in <54b4bcbc0aba47b495345bfe7621bc6f>:0 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BasePlayer.OnDisconnected_Patch0(BasePlayer) at ServerMgr.OnDisconnected (System.String strReason, Network.Connection connection) [0x0006e] in <56764490592449c68909fe9806c0d7bd>:0 at Network.Server.OnDisconnected (System.String strReason, Network.Connection cn) [0x00021] in <56ac076016834fc48b2ebee032c7e2af>:0 at Facepunch.Network.Raknet.Server.Kick (Network.Connection cn, System.String message, System.Boolean logfile) [0x000b7] in <37629274f6b04f768a3e5ff1bee7fc40>:0 at ServerMgr.DoTick () [0x00045] in <56764490592449c68909fe9806c0d7bd>:0

NullReferenceException: Object reference not set to an instance of an object at RustServerMetrics.MetricsLogger.OnPlayerDisconnected (BasePlayer player) [0x00000] in <54b4bcbc0aba47b495345bfe7621bc6f>:0 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.BasePlayer.OnDisconnected_Patch0(BasePlayer) at ServerMgr.OnDisconnected (System.String strReason, Network.Connection connection) [0x0006e] in <56764490592449c68909fe9806c0d7bd>:0 at Network.Server.OnDisconnected (System.String strReason, Network.Connection cn) [0x00021] in <56ac076016834fc48b2ebee032c7e2af>:0 at Facepunch.Network.Raknet.Server.Kick (Network.Connection cn, System.String message, System.Boolean logfile) [0x000b7] in <37629274f6b04f768a3e5ff1bee7fc40>:0 at ServerMgr.DoTick () [0x00045] in <56764490592449c68909fe9806c0d7bd>:0

Jexs commented 1 month ago

Are you sure you're running the latest version (1.5.3) that was released to fix the breaking changes from the Rust update on the 6th?

I'm running 1.5.3 and have had no issues as well as several other owners I've talked to.

https://github.com/Pinkstink-Rust/Rust-Server-Metrics/releases/tag/release-v1.5.3

UnrealSalty commented 1 month ago

Yes we were running the latest.

UnrealSalty commented 1 month ago

Was it being we hotloaded it using harmony.load?

GhilleAU commented 1 month ago

Was it being we hotloaded it using harmony.load?

Yea, don't do that with RSM

UnrealSalty commented 1 month ago

Just got information it was not hot loaded and another server was experiencing this aswell.

GhilleAU commented 1 month ago

Runs perfectly fine on our servers & I assume Jex's servers, you guy's could be doing something wrong