Cidan / BetterBags

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

random lua error #57

Closed AufkleberDraufkleber closed 11 months ago

AufkleberDraufkleber commented 11 months ago

Noticed this Error filling my BugSack recently. Not really sure what causes it though. Sometimes it pops up while the loading screen is still up.

Edit: BetterBags-v0.0.65

5x BetterBags/views/gridview.lua:95: attempt to index local 'oldSection' (a nil value)
[string "@BetterBags/views/gridview.lua"]:95: in function `GridView'
[string "@BetterBags/frames/bag.lua"]:184: in function `Draw'
[string "@BetterBags/core/init.lua"]:111: in function `cb'
[string "@BetterBags/core/events.lua"]:41: in function <BetterBags/core/events.lua:36>
[string "=[C]"]: ?
[string "@BetterBags/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@BetterBags/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `SendMessage'
[string "@BetterBags/core/events.lua"]:94: in function `SendMessage'
[string "@BetterBags/data/items.lua"]:132: in function <BetterBags/data/items.lua:126>
[string "=[C]"]: in function `xpcall'
[string "@FrameXML/ObjectAPI/ContinuableContainer.lua"]:83: in function `CheckIfSatisfied'
[string "@FrameXML/ObjectAPI/ContinuableContainer.lua"]:33: in function <..FrameXML/ObjectAPI/ContinuableContainer.lua:31>
[string "=[C]"]: in function `xpcall'
[string "@FrameXML/ObjectAPI/AsyncCallbackSystem.lua"]:76: in function `FireCallbacks'
[string "@FrameXML/ObjectAPI/AsyncCallbackSystem.lua"]:35: in function <FrameXML/ObjectAPI/AsyncCallbackSystem.lua:31>

Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:363
 Enable = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:290
 NewModule = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:231
 EnableModule = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 GetModule = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:206
 IterateEmbeds = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:438
 IsModule = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:213
 defaultModuleLibraries = <table> {
 }
 baseName = "BetterBags"
 ListView = <function> defined @BetterBags/views/listview.lua:43
 SetEnabledState = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:420
 UpdateListSize = <function> defined @BetterBags/views/listview.lua:27
 enabledState = false
 OneBagView = <function> defined @BetterBags/views/oneview.lua:23
 SetDefaultModuleState = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:383
 moduleName = "Views"
 GetName = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:275
 defaultModuleState = true
 Disable = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:310
 IterateModules = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:433
 name = "BetterBags_Views"
 SetDefaultModulePrototype = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:405
 IsEnabled = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:447
 orderedModules = <table> {
 }
 GridView = <function> defined @BetterBags/views/gridview.lua:23
 DisableModule = <function> defined @BetterBags/libs/AceAddon-3.0/AceAddon-3.0.lua:346
}
bag = <table> {
 itemsByBagAndSlot = <table> {
 }
 sections = <table> {
 }
 isReagentBank = false
 kind = 0
 recentItems = <table> {
 }
 slots = <table> {
 }
 freeSlots = <table> {
 }
 freeReagentBagSlotsButton = <table> {
 }
 moneyFrame = <table> {
 }
 bottomBar = Frame {
 }
 freeBagSlotsButton = <table> {
 }
 frame = BetterBagsBagBackpack {
 }
 content = <table> {
 }
 resizeHandle = Button {
 }
}
dirtyItems = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }

.... these lines go on until it cuts off at 82.
Cidan commented 11 months ago

Thanks, I'll take a look at this.

Cidan commented 11 months ago

I think I fixed this in .66 -- let me know if this comes up.