Jump to content

Failing to unload

Pending 2.8.0

DocNorris
DocNorris

Posted

Plugin is failing on unload causing the servers to get stuck when auto restarting 

 

Failed to call internal hook 'Unload' on plugin 'NpcSpawn v2.8.0' [4006810030] (Collection was modified; enumeration operation may not execute.)

at void Oxide.Plugins.NpcSpawn.Unload() in C:/TCAFiles/Users/Doc/6000/carbon/plugins/NpcSpawn.cs:line 2204

at object Oxide.Plugins.NpcSpawn.InternalCallHook(uint hook, object[] args) in NpcSpawn.cs/Internal:line 369

 

Jbird

Posted

14 hours ago, DocNorris said:

Plugin is failing on unload causing the servers to get stuck when auto restarting 

Failed to call internal hook 'Unload' on plugin 'NpcSpawn v2.8.0' [4006810030] (Collection was modified; enumeration operation may not execute.)

at void Oxide.Plugins.NpcSpawn.Unload() in C:/TCAFiles/Users/Doc/6000/carbon/plugins/NpcSpawn.cs:line 2204

at object Oxide.Plugins.NpcSpawn.InternalCallHook(uint hook, object[] args) in NpcSpawn.cs/Internal:line 369

Are you using Carbon or Oxide? I see carbon as the directory and oxide in the beginning of the errors, that might be common but just something I noticed.

If you are using carbon do me a favor and ask the carbon team if they know what the hell that is all about and we will go from there.

Check to see if that has had an update recently while you're at it, if you're using carbon that is.

DocNorris

Posted

On 18/03/2025 at 04:49, Jbird said:

Are you using Carbon or Oxide? I see carbon as the directory and oxide in the beginning of the errors, that might be common but just something I noticed.

If you are using carbon do me a favor and ask the carbon team if they know what the hell that is all about and we will go from there.

Check to see if that has had an update recently while you're at it, if you're using carbon that is.

Yeah im using carbon. I would ask on there but @Raul-Sorin Sorbandoesnt seem to reply to the issues I flag up . 

Jbird

Posted

On 3/21/2025 at 9:10 AM, DocNorris said:

Yeah im using carbon. I would ask on there but @Raul-Sorin Sorbandoesnt seem to reply to the issues I flag up . 

Have you tried Death or their general chat even to see if anyone else has had a similar issue and knows the fix? I have a feeling it's something going on in carbon.

What issues are you having with the plugin itself, like performance or any details you can think of. While you try to get an answer from them I'll bounce the details around with KpucTaJl to see what we can sort out on our end as well.

DocNorris

Posted

On 22/03/2025 at 17:38, Jbird said:

Have you tried Death or their general chat even to see if anyone else has had a similar issue and knows the fix? I have a feeling it's something going on in carbon.

What issues are you having with the plugin itself, like performance or any details you can think of. While you try to get an answer from them I'll bounce the details around with KpucTaJl to see what we can sort out on our end as well.

Someone else reported it in there but Raul said it was a plugin issue

Jbird

Posted

1 hour ago, DocNorris said:

Someone else reported it in there but Raul said it was a plugin issue

Did he give any actual information to support that claim? 🤨 I'll run it past KpucTaJl today.

  • Love 1
DocNorris

Posted

20 minutes ago, Jbird said:

Did he give any actual information to support that claim? 🤨 I'll run it past KpucTaJl today.

image.png.47267f958c877546f8a0bc4601c9283a.png

Jbird

Posted

Fair enough @DocNorris. It was always my impression that anything that works on oxide would work on carbon but I've seen many instances where this has not been the case. Will get with KpucTaJl and see how easy and quickly we can resolve it. Thank you.

  • Love 1
Zand3rs

Posted

Failed to call internal hook 'Unload' on plugin 'NpcSpawn v2.8.0' [4006810030] (Collection was modified; enumeration operation may not execute.)
   at bool System.Collections.Generic.Dictionary<ulong, Oxide.Plugins.NpcSpawn+CustomScientistNpc>+ValueCollection+Enumerator.MoveNext()
   at void Oxide.Plugins.NpcSpawn.Unload() in /home/container/carbon/plugins/NpcSpawn.cs:line 2204
   at object Oxide.Plugins.NpcSpawn.InternalCallHook(uint hook, object[] args) in NpcSpawn.cs/Internal:line 369

Carbon.

Jbird

Posted

Hey @DocNorris I replied before did I not? Maybe the reply was lost when there was an issue on the site.

Please try changing this in the CS.

foreach (CustomScientistNpc npc in Scientists.Values) if (npc.IsExists()) npc.Kill();

foreach (CustomScientistNpc npc in Scientists.Values) if (npc.IsExists()) npc.Kill();

To this.

foreach (CustomScientistNpc npc in Scientists.Values.ToHashSet()) if (npc.IsExists()) npc.Kill();

Let me know if it sorts this issue out.

 

On 4/13/2025 at 10:28 PM, Zand3rs said:
Failed to call internal hook 'Unload' on plugin 'NpcSpawn v2.8.0' [4006810030] (Collection was modified; enumeration operation may not execute.)
   at bool System.Collections.Generic.Dictionary<ulong, Oxide.Plugins.NpcSpawn+CustomScientistNpc>+ValueCollection+Enumerator.MoveNext()
   at void Oxide.Plugins.NpcSpawn.Unload() in /home/container/carbon/plugins/NpcSpawn.cs:line 2204
   at object Oxide.Plugins.NpcSpawn.InternalCallHook(uint hook, object[] args) in NpcSpawn.cs/Internal:line 369

Carbon.

Looks like you have the same error. Generally I would ask that you create a new support ticket for yourself but since this one is still recent and active please try the above and let me know if it helps.

Zand3rs

Posted

I will give it a try and let you know. if you dont hear anything it most likely works 🙂

Jbird

Posted

On 4/18/2025 at 3:24 PM, Zand3rs said:

I will give it a try and let you know. if you dont hear anything it most likely works 🙂

🍻

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.2k

Files Sold

Total number of files sold.

2.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.