KeyNotFoundException in OnEntitySpawnedError

(16:09:26) | Failed to call hook 'OnEntitySpawned' on plugin 'InfoPanel v0.9.9' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.InfoPanel.OnEntitySpawned (BaseEntity Entity) [0x000cc] in <83d66826bbe34bc4b2c9ad35de35d2c6>:0

at Oxide.Plugins.InfoPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0063e] in <83d66826bbe34bc4b2c9ad35de35d2c6>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

In response to Meanness5 ():
(16:09:26) | Failed to call hook 'OnEntitySpawned' on plugin 'InfoPanel v0.9.9' (NullReferenceExcep...

Do run the plugin with a fresh config( backup the old first), and test it for any ongoing NRE's.

when the NRE does'nt happen anymore in some minutes, then your config file might be damaged, probably by a wrong edit. 

In response to FuJiCuRa ():
Do run the plugin with a fresh config( backup the old first), and test it for any ongoing NRE's.whe...
Thank you, unloaded then reloaded and seems fine now
FYI @FuJiCuRa, this error also happens on a brand new server with loading the plugin for the first time, and no config changes done.

[Error] Failed to call hook 'OnEntitySpawned' on plugin 'InfoPanel v0.9.9' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.InfoPanel.OnEntitySpawned (BaseEntity Entity) [0x000cc] in <3dabbea29c1c489dba5d3ec19fdba9fb>:0 
  at Oxide.Plugins.InfoPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0063e] in <3dabbea29c1c489dba5d3ec19fdba9fb>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​
In response to Lazarix ():
FYI @FuJiCuRa, this error also happens on a brand new server with loading the plugin for the first t...
Did also try the same, and was'nt able to reproduce it by any chance, and that also with forcing all event types.
I get this error on every single server startup.

Failed to call hook 'OnEntitySpawned' on plugin 'InfoPanel v0.9.9' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.InfoPanel.OnEntitySpawned (BaseEntity Entity) [0x000cc] in <055e30b1028145a58a16bd534384e69f>:0 
  at Oxide.Plugins.InfoPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0063e] in <055e30b1028145a58a16bd534384e69f>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0 ​

I was experiencing the same issue, however I found that in my configuration I had mistyped the Event name for example ChinookEvent in my config was mispelled to ChinukEvent. After I fixed this and reloaded, it has stopped popping up this error when "[event] assets/prefabs/npc/ch47/ch47scientists.entity.prefab" has occurred. I found this out my figuring out what prefabs are tied to what event types and found the ch47scientists.entity.prefab was tied to ChinookEvent.

 

FuJiCuRa is correct. There is an issue with your configuration. Make sure you have each event type typed correctly.

Examples:
HelicopterEvent
AirdropEvent
CargoShipEvent
ChinookEvent

| Failed to call hook 'OnEntitySpawned' on plugin 'InfoPanel v1.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0

at Oxide.Plugins.InfoPanel.OnEntitySpawned (BaseEntity Entity) [0x00113] in <6f8f64a137ff472fa641908c92541a45>:0

at Oxide.Plugins.InfoPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0063e] in <6f8f64a137ff472fa641908c92541a45>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

Rocky

| Failed to call hook 'OnEntitySpawned' on plugin 'InfoPanel v1.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0

at Oxide.Plugins.InfoPanel.OnEntitySpawned (BaseEntity Entity) [0x00113] in <6f8f64a137ff472fa641908c92541a45>:0

at Oxide.Plugins.InfoPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0063e] in <6f8f64a137ff472fa641908c92541a45>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

Have you done a fresh reinstallation? I just booted up my test server and it's going fine.

cant reload plugin after update ;/

(09:57:03) | Failed to call hook 'OnServerInitialized' on plugin 'InfoPanel v1.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0 
  at Oxide.Plugins.InfoPanel.LoadPanels (BasePlayer Player) [0x00112] in <b3a7f5db5fc34df892a500ff93880af9>:0 
  at Oxide.Plugins.InfoPanel.OnServerInitialized () [0x00160] in <b3a7f5db5fc34df892a500ff93880af9>:0 
  at Oxide.Plugins.InfoPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0046e] in <b3a7f5db5fc34df892a500ff93880af9>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​
Ryrzy
cant reload plugin after update ;/

(09:57:03) | Failed to call hook 'OnServerInitialized' on plugin 'InfoPanel v1.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0 
  at Oxide.Plugins.InfoPanel.LoadPanels (BasePlayer Player) [0x00112] in <b3a7f5db5fc34df892a500ff93880af9>:0 
  at Oxide.Plugins.InfoPanel.OnServerInitialized () [0x00160] in <b3a7f5db5fc34df892a500ff93880af9>:0 
  at Oxide.Plugins.InfoPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0046e] in <b3a7f5db5fc34df892a500ff93880af9>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​

I'll check up on this when I get back home later today, was working fine on my test server but I might've overlooked something!

I get this in the logs every once in a while.

00:13 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'InfoPanel v1.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0 
  at Oxide.Plugins.InfoPanel.OnEntitySpawned (BaseEntity Entity) [0x00113] in <3ca185242b8a4713b8e25b06e693d6b3>:0 
  at Oxide.Plugins.InfoPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0063e] in <3ca185242b8a4713b8e25b06e693d6b3>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0 

(23:59:31) | Failed to run a 10.00 timer in 'InfoPanel v1.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)

Happens on server startup

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0

at Oxide.Plugins.InfoPanel.OnEntitySpawned (BaseEntity Entity) [0x00113] in <1c102887951c4c82b2a761d984d171ad>:0

at Oxide.Plugins.InfoPanel+<OnEntitySpawned>c__AnonStorey2.<>m__0 () [0x00000] in <1c102887951c4c82b2a761d984d171ad>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0



Merged post

No the plugin is the latest version
5c5cd38b38ce3.png herman

(23:59:31) | Failed to run a 10.00 timer in 'InfoPanel v1.0.0' (KeyNotFoundException: The given key was not present in the dictionary.)

Happens on server startup

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0

at Oxide.Plugins.InfoPanel.OnEntitySpawned (BaseEntity Entity) [0x00113] in <1c102887951c4c82b2a761d984d171ad>:0

at Oxide.Plugins.InfoPanel+<OnEntitySpawned>c__AnonStorey2.<>m__0 () [0x00000] in <1c102887951c4c82b2a761d984d171ad>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0



Merged post

No the plugin is the latest version

Don't know why this was merged, it's a seperate issue and made it very hard for me to find where you posted it.

Will take a deeper look tonight.

5c62d46a5c904.png Default

Don't know why this was merged, it's a seperate issue and made it very hard for me to find where you posted it.

Will take a deeper look tonight.

I'm not sure why or when it was merged, but it was split now.