Jump to content

NRE on server boot

Can't Reproduce 1.0.4 1.0.4

INFINITY-Z

Posted

Hi,
I have been getting this error message for a bit now but could not find the cause yet. I'm hoping you can help here.
Happens every server reboot:

 

Failed to call hook 'OnItemAddedToContainer' on plugin 'SkinPopupCommand v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Cui.CuiHelper.AddUi (BasePlayer player, System.String json) [0x00036] in <a176a79aca4c4511955596eb245c0a91>:0 
  at Oxide.Game.Rust.Cui.CuiHelper.AddUi (BasePlayer player, System.Collections.Generic.List`1[T] elements) [0x00008] in <a176a79aca4c4511955596eb245c0a91>:0 
  at Oxide.Plugins.SkinPopupCommand.SendPopup (BasePlayer player, System.String message) [0x001d4] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.SkinPopupCommand.DisplayNextPopup () [0x00064] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.SkinPopupCommand.OnItemGet (Item item, BasePlayer player) [0x0024c] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.SkinPopupCommand.OnItemAddedToContainer (ItemContainer container, Item item) [0x000c7] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.SkinPopupCommand.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00114] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0 

I have to reload the plugin again after reboot for it to function.

CupsOhJoe

Posted

On 7/19/2024 at 8:41 AM, INFINITY-Z said:

Hi,
I have been getting this error message for a bit now but could not find the cause yet. I'm hoping you can help here.
Happens every server reboot:

 

Failed to call hook 'OnItemAddedToContainer' on plugin 'SkinPopupCommand v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Cui.CuiHelper.AddUi (BasePlayer player, System.String json) [0x00036] in <a176a79aca4c4511955596eb245c0a91>:0 
  at Oxide.Game.Rust.Cui.CuiHelper.AddUi (BasePlayer player, System.Collections.Generic.List`1[T] elements) [0x00008] in <a176a79aca4c4511955596eb245c0a91>:0 
  at Oxide.Plugins.SkinPopupCommand.SendPopup (BasePlayer player, System.String message) [0x001d4] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.SkinPopupCommand.DisplayNextPopup () [0x00064] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.SkinPopupCommand.OnItemGet (Item item, BasePlayer player) [0x0024c] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.SkinPopupCommand.OnItemAddedToContainer (ItemContainer container, Item item) [0x000c7] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.SkinPopupCommand.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00114] in <6a6a55555fc04e5ab1d9a35f45799b26>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0 

I have to reload the plugin again after reboot for it to function.

I’ll take a look, currently on vacation but I’ll see if it’s an easy fix. No one else has reported, did you see if it happens on a fresh server?

INFINITY-Z

Posted

Enjoy your vacation.
I set up a test server and tried to replicate the issue - it did not occur on that server. 
Will have to dig a bit and see if I find out what other plugin would interfere with yours loading properly on boot.
Well, I will dig a bit and see what I can find out.

CupsOhJoe

Posted (edited)

 

3 hours ago, INFINITY-Z said:

Enjoy your vacation.
I set up a test server and tried to replicate the issue - it did not occur on that server. 
Will have to dig a bit and see if I find out what other plugin would interfere with yours loading properly on boot.
Well, I will dig a bit and see what I can find out.

Thank you, when you find out what plugin is interfering let me know and I'll see if I can do anything on my end. 

Edited by CupsOhJoe
CupsOhJoe

Posted (edited)

Changed Status from Pending to Can't Reproduce

Edited by CupsOhJoe
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.