RPC Error in OnProjectileAttack

Hello, can you fix?

Tested everything with server, this error cause only RestoreUponDeath plugin ( installed only this plugin on server )

6 hours in a row tested for clearly.  new client, new server files. this error comes when heli kill, and from NPC also have some chance.

CryEngine[76561############] was killed by patrolhelicopter (entity)
NullReferenceException
at (wrapper managed-to-native) UnityEngine.Object.GetName(UnityEngine.Object)
at UnityEngine.Object.get_name () [0x00001] in <745c4d442eef4e08b35b5975d62d89d1>:0
at CombatLog.Log (BaseEntity attacker, AttackEntity weapon, BaseCombatEntity hitEntity, System.String description, Projectile projectilePrefab, System.Int32 projectileId, System.Single healthOld, HitInfo hitInfo) [0x00125] in <b8d4152df172449199af1593a758e79d>:0
at CombatLog.LogAttack (HitInfo info, System.String description, System.Single oldHealth) [0x00000] in <b8d4152df172449199af1593a758e79d>:0
at BaseCombatEntity.Hurt (HitInfo info) [0x00314] in <b8d4152df172449199af1593a758e79d>:0
at BaseHelicopter.Hurt (HitInfo info) [0x0003d] in <b8d4152df172449199af1593a758e79d>:0
at BaseCombatEntity.OnAttacked (HitInfo info) [0x00023] in <b8d4152df172449199af1593a758e79d>:0
at BaseHelicopter.OnAttacked (HitInfo info) [0x00000] in <b8d4152df172449199af1593a758e79d>:0
at BasePlayer.OnProjectileAttack (BaseEntity+RPCMessage msg) [0x011ec] in <b8d4152df172449199af1593a758e79d>:0
at BasePlayer.OnRpcMessage (BasePlayer player, System.UInt32 rpc, Network.Message msg) [0x00721] in <b8d4152df172449199af1593a758e79d>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
BasePlayer:OnRpcMessage(BasePlayer, UInt32, Message)
BaseEntity:SV_RPCMessage(UInt32, Message)
ServerMgr:OnRPCMessage(Message)
ServerMgr:OnNetworkMessage(Message)
Facepunch.Network.Raknet.Server:ConnectedPacket(Connection)
Facepunch.Network.Raknet.Server:Cycle()
ServerMgr:Update()

(Filename: <745c4d442eef4e08b35b5975d62d89d1> Line: 0)

Glad you were able to track this down CryEngine!

ARGrumbles

Glad you were able to track this down CryEngine!

Thank you! Hope this helps to other people, it was a lil bit hard, to check my 115 plugins on the server, im happy that it was in first of 40 lol

I came to the same conclusion, this plugin is causing the error.

According to the logs you provided, it seems the player fired a weapon at the patrol heli and died at the same time. The server tried to log the damage event from the player attacking the heli, but the player's weapon had been deleted already.

I'll look into a fix this week.

Merged post

I managed to reproduce this consistently by shooting an explosive round at an object then killing myself before the explosive round hit the object.

I submitted a patch for k1lly0u to review and merge. The way the patch works is that it delays destroying projectile weapons for a few seconds so that there is time for the projectile to hit.

Thank you WhiteThunder!

Thank you I've been tryuing to figure this out now for 21 days, I would check logs, and oxide logs and it would show nothing, every player I asked they said they couldnt rememeber what they shot at to get this error.. So I tried everything to get this to happen (never tried the heli) I just got a message from one of my players 5 min ago saying it was the heli and sure enough I tried the heli and boom same error so I did a google search and brought me here.. Thank you and hope this gets fixed soon. 

Well, this isn't a good sign...

垃圾bSHS (英语)