Cidan / BetterBags

A total replacement AddOn for World of Warcraft bag frames, inspired by AdiBags.
MIT License
88 stars 39 forks source link

Items not showing in the bag #708

Closed r0xp0x closed 2 months ago

r0xp0x commented 2 months ago

Addon Version

v0.3.16

World of Warcraft Version

Retail

Describe the bug

Randomly when I'm opening the bag, it's just all blank. Doing a single /reload works sometimes, but quite often I have to to several /reload for the items to show again. After a /reload the window looks like this when I try to open the bag the first time: 21-09-2024 14_50_55-Medal Overlay

Closing the bag and waiting a couple of seconds shows the bag like this instead (which is the size it is when I can actually see the items in my bag): 21-09-2024 14_51_49-

I can't remember when it started, but it was this week (It's Sept. 21st as of writing) that it became this severe where it can happen a LOT of times in a single session, compared to before where it happened maybe once a day, at most.

Steps to reproduce

Sadly, I haven't found a way to replicate it, it's just random, but is happening more often than it usually has.

AMaribo commented 2 months ago

Blank bags like this usually means you are receiving a Lua error. Do you have BugGrabber and BugSack installed? If so, the errors will show up there. Otherwise, please install them and post the Lua error here.

r0xp0x commented 2 months ago

30x BetterBags_GearFirst/main.lua:95: attempt to index local 'b' (a nil value) [string "@BetterBags_GearFirst/main.lua"]:95: in function <BetterBags_GearFirst/main.lua:90>

string "=[C]": in function sort' [string "@BetterBags/frames/grid.lua"]:242: in functionSort' [string "@BetterBags/views/gridview.lua"]:371: in function Render' [string "@BetterBags/frames/bag.lua"]:316: in functionDraw' [string "@BetterBags/core/init.lua"]:290: in function `cb' [string "@BetterBags/core/events.lua"]:49: in function <BetterBags/core/events.lua:47>

[string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ons/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function SendMessage' [string "@BetterBags/core/events.lua"]:206: in functionSendMessage' [string "@BetterBags/core/events.lua"]:224: in function <BetterBags/core/events.lua:223>

Locals: kind = 0 a =

{ content =
{ } frame = Frame { } title = Button { } maxItemsPerRow = 9 } b = nil shouldSort = false sortResult = false (temporary) = "Gear: Resto" (temporary) = "Recent Items" (temporary) =
{ data =
{ } modules =
{ } defaultModuleLibraries =
{ } baseName = "BetterBags" enabledState = true locale = "enUS" moduleName = "Localization" defaultModuleState = true name = "BetterBags_Localization" orderedModules =
{ } } (temporary) = "Recent Items" (temporary) = "Recent Items" (temporary) = "enUS" (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = "attempt to index local 'b' (a nil value)" sort =
{ defaultModuleLibraries =
{ } name = "BetterBags_Sort" orderedModules =
{ } enabledState = false baseName = "BetterBags" modules =
{ } moduleName = "Sort" defaultModuleState = true } L =
{ data =
{ } modules =
{ } defaultModuleLibraries =
{ } baseName = "BetterBags" enabledState = true locale = "enUS" moduleName = "Localization" defaultModuleState = true name = "BetterBags_Localization" orderedModules =
{ } } const =
{ BANK_ONLY_BAGS =
{ } BAG_KIND =
{ } modules =
{ } BANK_TAB =
{ } BANK_BAGS =
{ } GEAR_SECTION_ORDER =
{ } BINDING_SCOPE =
{ } BANK_ONLY_BAGS_LIST =
{ } baseName = "BetterBags" BAG_SUBTYPES =
{ } DATABASE_DEFAULTS =
{ } SECTION_SORT_TYPE =
{ } FORM_LAYOUT =
{ } INVENTORY_TYPE_TO_INVENTORY_SLOTS =
{ } EQUIPMENT_SLOTS =
{ } TRADESKILL_MAP =
{ } name = "BetterBags_Constants" BRIEF_EXPANSION_MAP =
{ } orderedModules =
{ } EXPANSION_MAP =
{ } defaultModuleState = true OFFSETS =
{ } ITEM_QUALITY_COLOR =
{ } BINDING_MAP =
{ } ITEM_QUALITY_HIGHLIGHT =
{ } BAG_SUBTYPE_TO_QUALITY =
{ } ITEM_QUALITY_TO_ENUM =
{ } EXPANSION_TYPE =
{ } ITEM_SORT_TYPE =
{ } BACKPACK_BAGS =
{ } BAG_VIEW =
{ } WINDOW_KIND =
{ } defaultModuleLibraries =
{ } ITEM_QUALITY_COLOR_LOW =
{ } BACKPACK_ONLY_BAGS_LIST =
{ } enabledState = false BACKPACK_ONLY_REAGENT_BAGS =
{ } ACCOUNT_BANK_BAGS =
{ } GRID_COMPACT_STYLE =
{ } MOVEMENT_FLOW =
{ } REAGENTBANK_BAGS =
{ } ITEM_BAG_FAMILY =
{ } ITEM_QUALITY_COLOR_HIGH =
{ } moduleName = "Constants" BACKPACK_ONLY_BAGS =
{ } }

And this:

5x BetterBags/core/events.lua:201: ctx has been cancelled: bags/Draw/Backpack/Loaded string "=[C]": in function error' [string "@BetterBags/core/events.lua"]:201: in functionSendMessage' [string "@BetterBags/core/init.lua"]:294: in function <BetterBags/core/init.lua:290> [string "@BetterBags/frames/bag.lua"]:332: in function callback' [string "@BetterBags/views/gridview.lua"]:438: in functionRender' [string "@BetterBags/frames/bag.lua"]:316: in function Draw' [string "@BetterBags/core/init.lua"]:290: in functioncb' [string "@BetterBags/core/events.lua"]:49: in function <BetterBags/core/events.lua:47>

[string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ons/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function SendMessage' [string "@BetterBags/core/events.lua"]:206: in functionSendMessage' [string "@BetterBags/core/events.lua"]:224: in function <BetterBags/core/events.lua:223>

Locals: (*temporary) = "ctx has been cancelled: bags/Draw/Backpack/Loaded"

What I've also noticed is that switching "Show bags" in the options "usually" works as well. Meaning if the window is blank, I change the setting from one big backpack to individual backpacks, wait for the items to load, and then change it back again.

AMaribo commented 2 months ago

BetterBags_GearFirst/main.lua:95

The error you are receiving is a Lua error in the plugin BetterBags - Gear First. You'll need to reach out to the author of that plugin for support.