AdiBags

AdiBags

8M Downloads

Division by zero after login, PTR 10.2

mabnp opened this issue ยท 0 comments

commented

Addon Version

v1.10.21

World of Warcraft Version

Retail PTR

Describe the bug

This error happens when I open my bags for the first time after logging in. AdiBags UI appears but also an error popup.

3x AdiBags/widgets/ContainerFrame.lua:1020: Division by zero
[string "@AdiBags/widgets/ContainerFrame.lua"]:1020: in function `ResizeToSortSection'
[string "@AdiBags/widgets/ContainerFrame.lua"]:957: in function `UpdateButtons'
[string "@AdiBags/widgets/ContainerFrame.lua"]:513: in function `RefreshContents'
[string "@AdiBags/widgets/ContainerFrame.lua"]:498: in function `ResumeUpdates'
[string "@AdiBags/widgets/ContainerFrame.lua"]:478: in function <AdiBags/widgets/ContainerFrame.lua:470>
[string "=[C]"]: in function `Show'
[string "@AdiBags/core/Bags.lua"]:96: in function `Open'
[string "@AdiBags/core/Bags.lua"]:126: in function <AdiBags/core/Bags.lua:122>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "TOGGLEBACKPACK"]:1: in function <[string "TOGGLEBACKPACK"]:1>

Locals:
self = AdiBagsContainer1 {
 0 = <userdata>
 firstLoad = true
 HeaderLeftRegion = AdiBagsSimpleLayeredRegion1 {
 }
 isBank = false
 OnBackdropLoaded = <function> defined @SharedXML/Backdrop.lua:152
 GetBackdropColor = <function> defined @SharedXML/Backdrop.lua:390
 SetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:422
 BagSlotButton = CheckButton {
 }
 BottomLeftRegion = AdiBagsSimpleLayeredRegion3 {
 }
 forceLayout = true
 isReagentBank = false
 ApplyBackdrop = <function> defined @SharedXML/Backdrop.lua:294
 SetBackdrop = <function> defined @SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @SharedXML/Backdrop.lua:282
 paused = false
 GetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @SharedXML/Backdrop.lua:347
 Center = Texture {
 }
 RightEdge = Texture {
 }
 LeftEdge = Texture {
 }
 content = <table> {
 }
 BottomEdge = Texture {
 }
 removed = <table> {
 }
 Anchor = AdiBagsBagAnchor1 {
 }
 itemGUIDtoItem = <table> {
 }
 sections = <table> {
 }
 BottomRightCorner = Texture {
 }
 changed = <table> {
 }
 added = <table> {
 }
 ToSortSection = AdiBagsSection1 {
 }
 BottomLeftCorner = Texture {
 }
 stacks = <table> {
 }
 SetupTextureCoordinates = <function> defined @SharedXML/Backdrop.lua:214
 OnBackdropSizeChanged = <function> defined @SharedXML/Backdrop.lua:182
 HasBackdropInfo = <function> defined @SharedXML/Backdrop.lua:278
 TopRightCorner = Texture {
 }
 TopLeftCorner = Texture {
 }
 backdropInfo = <table> {
 }
 dirtyLayout = true
 GetEdgeSize = <function> defined @SharedXML/Backdrop.lua:188
 HeaderRightRegion = AdiBagsSimpleLayeredRegion2 {
 }
 buttons = <table> {
 }
 TopEdge = Texture {
 }
 SetBorderBlendMode = <function> defined @SharedXML/Backdrop.lua:266
 BagSlotPanel = AdiBagsContainer1Bags {
 }
 widgets = <table> {
 }
 BottomRightRegion = AdiBagsSimpleLayeredRegion4 {
 }
 CloseButton = Button {
 }
 Title = AdiBagsContainer1Title {
 }
 bagObject = <table> {
 }
 SetupPieceVisuals = <function> defined @SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @SharedXML/Backdrop.lua:399
 Content = Frame {
 }
 name = "Backpack"
}
forceLayout = nil
section = AdiBagsSection1 {
 0 = <userdata>
 acquired = true
 ShowHeaderTooltip = <function> defined @AdiBags/widgets/ContainerFrame.lua:233
 buttons = <table> {
 }
 Header = Button {
 }
 UpdateHeaderScripts = <function> defined @AdiBags/widgets/ContainerFrame.lua:238
 slots = <table> {
 }
 width = 0
 count = 157
 total = 0
 name = "Recent Items"
 category = "Backpack"
 height = 0
 key = "Backpack#Recent Items"
 freeSlots = <table> {
 }
 container = AdiBagsContainer1 {
 }
}
width = 0
numCols = 0
(*temporary) = <function> defined @AdiBags/widgets/Section.lua:341
(*temporary) = AdiBagsSection1 {
 0 = <userdata>
 acquired = true
 ShowHeaderTooltip = <function> defined @AdiBags/widgets/ContainerFrame.lua:233
 buttons = <table> {
 }
 Header = Button {
 }
 UpdateHeaderScripts = <function> defined @AdiBags/widgets/ContainerFrame.lua:238
 slots = <table> {
 }
 width = 0
 count = 157
 total = 0
 name = "Recent Items"
 category = "Backpack"
 height = 0
 key = "Backpack#Recent Items"
 freeSlots = <table> {
 }
 container = AdiBagsContainer1 {
 }
}
(*temporary) = 0
(*temporary) = <function> defined =[C]:-1
(*temporary) = 157
(*temporary) = "Division by zero"
max = <function> defined =[C]:-1
ITEM_SPACING = 4
ITEM_SIZE = 37
ceil = <function> defined =[C]:-1

Steps to reproduce

  1. log in onto a character (doesn't happen after /reloadui, only after logging in)
  2. open bags -> the error happens

Verification

  • I have disabled all other addons and made sure this bug is triggered only with AdiBags enabled