Jump to content

Console Error on Load/Unload

Fixed 0.1.20 0.1.21

dustyhansen

Posted

Seeing the following error in console when the server starts and restarts:

Failed to call internal hook 'OnPluginUnloaded' on plugin 'AdvancedStatus v0.1.20' [1250294368] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.AdvancedStatus.DeleteAllPluginBars(string pluginName) in /home/container/carbon/plugins/AdvancedStatus.cs:line 840
   at void Oxide.Plugins.AdvancedStatus.OnPluginUnloaded(Plugin plugin) in /home/container/carbon/plugins/AdvancedStatus.cs:line 1057
   at object Oxide.Plugins.AdvancedStatus.InternalCallHook(uint hook, object[] args) in AdvancedStatus.cs/Internal:line 530

 

  • Like 1
Zand3rs

Posted

c.reload AdvancedStatus
Failed to call internal hook 'OnPluginUnloaded' on plugin 'AdvancedStatus v0.1.20' [1250294368] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.AdvancedStatus.DeleteAllPluginBars(string pluginName) in /home/container/carbon/plugins/AdvancedStatus.cs:line 840
   at void Oxide.Plugins.AdvancedStatus.OnPluginUnloaded(Plugin plugin) in /home/container/carbon/plugins/AdvancedStatus.cs:line 1057
   at object Oxide.Plugins.AdvancedStatus.InternalCallHook(uint hook, object[] args) in AdvancedStatus.cs/Internal:line 530
Unloaded plugin Advanced Status v0.1.20 by IIIaKa
Loaded plugin Advanced Status v0.1.20 by IIIaKa [128ms]

Confirm!

  • Like 1
dbfreak

Posted

x3

Requested 'AdvancedStatus' for compilation
Failed to call internal hook 'OnPluginUnloaded' on plugin 'AdvancedStatus v0.1.20' [1250294368] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.AdvancedStatus.DeleteAllPluginBars(string pluginName) in /home/container/carbon/plugins/AdvancedStatus.cs:line 840
   at void Oxide.Plugins.AdvancedStatus.OnPluginUnloaded(Plugin plugin) in /home/container/carbon/plugins/AdvancedStatus.cs:line 1057
   at object Oxide.Plugins.AdvancedStatus.InternalCallHook(uint hook, object[] args) in AdvancedStatus.cs/Internal:line 530
Unloaded plugin Advanced Status v0.1.20 by IIIaKa

 

Any responses elsewhere?

  • Like 1
IIIaKa

Posted

Changed Status from Pending to Work in Progress

IIIaKa

Posted

@dustyhansen@Zand3rs@dbfreak
Thank you for reaching out. I checked and indeed this issue does exist, but only on Carbon.
This is because Carbon triggers the OnPluginUnloaded hook when AdvancedStatus itself is being unloaded, essentially, it's telling AdvancedStatus that the AdvancedStatus plugin has been unloaded 😄
This issue is solvable, but I believe it should be fixed on Carbon's side( @Raul-Sorin Sorban ), since I don’t see any reason to call OnPluginUnloaded for the plugin's own unloading.

IIIaKa

Posted

@dustyhansen@Zand3rs@dbfreak
 

In the meantime(as a temporary solution), you can find(line 840) :

private void DeleteAllPluginBars(string pluginName)

and add this line

if (pluginName.Equals(Name, StringComparison.OrdinalIgnoreCase)) return;

right before

AdvancedBar bar;

 

IIIaKa

Posted

Changed Status from Work in Progress to Fixed

Changed Fixed In to Next Version

IIIaKa

Posted

If you have anything to add, feel free to write in this thread.

1.8m

Downloads

Total number of downloads.

8.2k

Customers

Total customers served.

124.2k

Files Sold

Total number of files sold.

2.6m

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.