[Backpacks] Failed to call hook 'OnInventoryAmmoFind' on plugin 'ItemRetriever v0.5.0'Fixed

Failed to call hook 'OnInventoryAmmoFind' on plugin 'ItemRetriever v0.5.0' (InvalidOperationException: ContainerAdapterEnumerator was not disposed after previous use)

at Oxide.Plugins.Backpacks+ContainerAdapterCollection.GetEnumerator () [0x0001f] in <47c68f4a6f8f4acb8103a5b270f04885>:0

at Oxide.Plugins.Backpacks+Backpack.FindAmmo (Rust.AmmoTypes ammoType, System.Collections.Generic.List`1[T] collect, System.Boolean forItemRetriever) [0x00000] in <47c68f4a6f8f4acb8103a5b270f04885>:0

at Oxide.Plugins.Backpacks.<RegisterAsItemSupplier>m__2 (BasePlayer player, Rust.AmmoTypes ammoType, System.Collections.Generic.List`1[T] collect) [0x00024] in <47c68f4a6f8f4acb8103a5b270f04885>:0

at Oxide.Plugins.ItemRetriever+SupplierManager.FindPlayerAmmo (BasePlayer player, Rust.AmmoTypes ammoType, System.Collections.Generic.List`1[T] collect, System.Boolean beforeInventory) [0x0001c] in <47c68f4a6f8f4acb8103a5b270f04885>:0

at Oxide.Plugins.ItemRetriever.FindPlayerAmmo (BasePlayer player, Rust.AmmoTypes ammoType, System.Collections.Generic.List`1[T] collect) [0x00051] in <47c68f4a6f8f4acb8103a5b270f04885>:0

at Oxide.Plugins.ItemRetriever.OnInventoryAmmoFind (PlayerInventory inventory, System.Collections.Generic.List`1[T] collect, Rust.AmmoTypes ammoType) [0x00007] in <47c68f4a6f8f4acb8103a5b270f04885>:0

at Oxide.Plugins.ItemRetriever.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00341] in <47c68f4a6f8f4acb8103a5b270f04885>:0

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

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

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

Plugin appears to be working fine, but thought I'd share this in-case it's a bug with the plugin and not user error. If it is user-error any advice or guidance?

This is caused by Backpacks.

This error indicates that unintended recursion happened at some point when accessing a player's Backpack. This error is being logged when a particular player is reloading their weapon, but I think it's just a symptom of something that went wrong (unintended recursion) previously for that player's backpack. This is not a self-recovering error, so that user's backpack is likely broken until the plugin is reloaded. Can you search the logs for the first occurrence of this error, and show me the stack trace of that occurence?

The last reported cause of this error was a bug in Backpacks relating to backpacks dropping on death in Softcore mode, and that issue was already fixed. If you are not on the latest version of Backpacks, please update.

Were you able to resolve this error by updating Backpacks? If you are still seeing this issue, please provide the full exception stacktrace from the first occurrence of this error since the plugin was last loaded.

Sorry for the delay. I think the issue was caused by an old entry in my backpacks config that was meant to be a customized backpack filter. I've since started with a fresh config and havent seen any errors, but I will keep you posted. Silence means no errors!

This has been fixed in Backpacks v3.11.7.

Locked automatically