Jump to content

NullReferenceException - player cant respawned

Closed 2.6.4

Hi, we just got weird problem. Player was killed by gun trap and land mine in the same moment and after death he couldnt respawn at all.

When he clicked on respawn button, it gave me this error exception to the log:

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

 

NullReferenceException

  at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)

  at BaseNetworkable.SendNetworkUpdate (BasePlayer+NetworkQueue queue) [0x000a6] in <6bdd0f2aa91540b0817851fabb5dde07>:0

  at BaseEntity.SendChildrenNetworkUpdate () [0x00024] in <6bdd0f2aa91540b0817851fabb5dde07>:0

  at BaseEntity.SetParent (BaseEntity entity, System.UInt32 boneID, System.Boolean worldPositionStays, System.Boolean sendImmediate) [0x000fd] in <6bdd0f2aa91540b0817851fabb5dde07>:0

  at BaseEntity.SetParent (BaseEntity entity, System.Boolean worldPositionStays, System.Boolean sendImmediate) [0x00000] in <6bdd0f2aa91540b0817851fabb5dde07>:0

  at BasePlayer.RespawnAt (UnityEngine.Vector3 position, UnityEngine.Quaternion rotation) [0x0005f] in <6bdd0f2aa91540b0817851fabb5dde07>:0

  at BasePlayer.Respawn () [0x00024] in <6bdd0f2aa91540b0817851fabb5dde07>:0

  at ConVar.Global.respawn (ConsoleSystem+Arg args) [0x00053] in <6bdd0f2aa91540b0817851fabb5dde07>:0

  at ConsoleGen+<>c.<.cctor>b__2_671 (ConsoleSystem+Arg arg) [0x00000] in <6bdd0f2aa91540b0817851fabb5dde07>:0

  at ConsoleSystem.Internal (ConsoleSystem+Arg arg) [0x0005b] in <1f1da75c339440a2bba792b1b6a01f1a>:0

UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)

UnityEngine.DebugLogHandler:LogException(Exception, Object)

UnityEngine.Logger:LogException(Exception, Object)

UnityEngine.Debug:LogException(Exception)

ConsoleSystem:Internal(Arg)

ConsoleSystem:Run(Option, String, Object[])

ConsoleNetwork:OnClientCommand(Message)

ServerMgr:OnNetworkMessage(Message)

Facepunch.Network.Raknet.Server:ConnectedPacket(Connection)

Facepunch.Network.Raknet.Server:Cycle()

ServerMgr:Update()

 

(Filename: <6bdd0f2aa91540b0817851fabb5dde07> Line: 0)

 

and this to console:

11/12 12:35:57 | NullReferenceException

11/12 12:35:57 | Player[XXXXXX8] has spawned

 

and he was still stuck.

I tried to kill him thru console, force respawn, but no luck

Server restart helped.

Its just FYI. Thanks a lot  for potential fix.

 

 

Edited by Ondraasek

Share this comment


Link to comment

this looks like a client-side bug to me since it was caused by the console system and not a plugin. likely the respawn command (that command is sent even if you click respawn instead)

Quote

ConsoleSystem:Run(Option, String, Object[])

ConsoleNetwork:OnClientCommand(Message)

could be related to his death but again that would be a game bug afaik. might be able to get a more accurate answer from someone a bit more knowledgeable but I wouldn't bother unless it's consistently happening.

Share this comment


Link to comment

Hi, yes I thought it its rust bug, I just wanted to tell you in the case you have some idea :). Not a big deal, it happened just once. Thanks a lot for answer, you re doing great job!!!

  • Like 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.6k

Files Sold

Total number of files sold.

1.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.