[Backpacks] OnInventoryAmmoFind error in consoleFixed

Getting the following error in the console, doesnt seem to be affecting anything in game, but just thought i would report it incase

 

Failed to call hook 'OnInventoryAmmoFind' on plugin 'ItemRetriever v0.6.1' (InvalidOperationException: ContainerAdapterEnumerator was not disposed after previous use) at Oxide.Plugins.Backpacks+ContainerAdapterCollection.GetEnumerator () [0x0001f] in :0 at Oxide.Plugins.Backpacks+Backpack.FindAmmo (Rust.AmmoTypes ammoType, System.Collections.Generic.List`1[T] collect, System.Boolean forItemRetriever) [0x00000] in :0 at Oxide.Plugins.Backpacks.m__2 (BasePlayer player, Rust.AmmoTypes ammoType, System.Collections.Generic.List`1[T] collect) [0x0002f] in :0 at Oxide.Plugins.ItemRetriever+SupplierManager.FindPlayerAmmo (BasePlayer player, Rust.AmmoTypes ammoType, System.Collections.Generic.List`1[T] collect, System.Boolean beforeInventory) [0x0001c] in :0 at Oxide.Plugins.ItemRetriever.FindPlayerAmmo (BasePlayer player, Rust.AmmoTypes ammoType, System.Collections.Generic.List`1[T] collect) [0x00051] in :0 at Oxide.Plugins.ItemRetriever.OnInventoryAmmoFind (PlayerInventory inventory, System.Collections.Generic.List`1[T] collect, Rust.AmmoTypes ammoType) [0x00007] in :0 at Oxide.Plugins.ItemRetriever.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003a2] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

This error is originating in Backpacks, though there are 2 other threads about it in this forum where I've added some responses.

I'm puzzled about this one since I can't reproduce it and it doesn't seem technically possible to occur. If you can figure out exact reproduction steps, that would be a big help. At this point, the only thing I can do is either hide the error (which might hide an actual problem, making that problem harder to debug) or give you a modified version of Backpacks that adds a bunch of logging to help narrow down the root cause.

i will do some testing and see if i can reproduce it, had the error appearing alot today but hard to determin what was happening by all players at the times to narrow it down

we have backpack & backpack button and using backpacks.size.96 ( 2 pages ) 

i can send you any logs from today if that helps and i have a replica of my main server on a local machine so i can do some testing there and see if i can narrow it down 

Mabel helped me determine that this was caused by a combination of Backpacks + Item Retriever + Ammo HUD. I will be releasing a fix to Backpacks soon.

This has been fixed in Backpacks v3.11.7.

Locked automatically