Bagnon

Bagnon

132M Downloads

BagBrother/core/features/caching.lua:189: bad argument #1 to 'GetContainerNumSlots'

Closed this issue ยท 3 comments

commented

Is there an existing issue for this?

  • I have searched the existing open and closed issues.

Description

Error happens on login, can be deleted with BugGrabber/BugSack.
After reloading the UI, the error returns instantly.

Bagnon Version

Bagnon 11.2.4

World of Warcraft Flavor

Retail

World of Warcraft Region

EU

Tested with only Bagnon

I got this issue with only Bagnon enabled

Lua Error

1x BagBrother/core/features/caching.lua:189: bad argument #1 to 'GetContainerNumSlots' (Usage: local numSlots = C_Container.GetContainerNumSlots(containerIndex))
[C]: in function 'GetContainerNumSlots'
[BagBrother/core/features/caching.lua]:189: in function 'PopulateBag'
[BagBrother/core/features/caching.lua]:185: in function 'SaveBag'
[BagBrother/core/features/caching.lua]:55: in function <BagBrother/core/features/caching.lua:19>
[C]: ?
[BagBrother/libs/WildAddon-1.1-10/WildAddon-1.1.lua]:59: in function <...dOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua:56>
[BagBrother/libs/WildAddon-1.1-10/WildAddon-1.1.lua]:94: in function <...dOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua:92>
[BagBrother/libs/WildAddon-1.1-10/WildAddon-1.1.lua]:166: in function <...dOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua:164>
[tail call]: ?
[tail call]: ?
[C]: ?
[Altoholic/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:19: in function <...lic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[Altoholic/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua]:54: in function <...lic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:49>

Locals:
(*temporary) = nil

Reproduction Steps

Login with any char to the game.
See description above.

Last Working Version

No response

Screenshots

No response

commented

How long will we get the BagBrother errors after each update?! It's better not to update anything than to give us errors!!!

commented

I have same problem from today:

Message: ...nterface/AddOns/BagBrother/core/features/caching.lua:189: bad argument #1 to 'GetContainerNumSlots' (Usage: local numSlots = C_Container.GetContainerNumSlots(containerIndex))
Time: Tue Aug 26 19:18:14 2025
Count: 1
Stack:
[Interface/AddOns/Blizzard_SharedXMLBase/ErrorUtil.lua]:3: in function <...nterface/AddOns/Blizzard_SharedXMLBase/ErrorUtil.lua:1>
[C]: in function 'GetContainerNumSlots'
[Interface/AddOns/BagBrother/core/features/caching.lua]:189: in function 'PopulateBag'
[Interface/AddOns/BagBrother/core/features/caching.lua]:185: in function 'SaveBag'
[Interface/AddOns/BagBrother/core/features/caching.lua]:55: in function <...nterface/AddOns/BagBrother/core/features/caching.lua:19>
[C]: ?
[Interface/AddOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua]:59: in function <...dOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua:56>
[Interface/AddOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua]:94: in function <...dOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua:92>
[Interface/AddOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua]:166: in function <...dOns/BagBrother/libs/WildAddon-1.1/WildAddon-1.1.lua:164>
[tail call]: ?
[tail call]: ?
[C]: ?
[Interface/AddOns/GarrisonCommander/libs/LibInit/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua]:19: in function <...nit/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[Interface/AddOns/GarrisonCommander/libs/LibInit/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua]:54: in function <...nit/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:49>

Locals:

commented

Thankfully solved with update 11.2.5