Division by zero on auras when leaving arena
p3lim opened this issue ยท 2 comments
Master branch version, embedded in my layout, here is the full error:
43x oUF_P3lim-@project-version@\embeds\oUF\elements\aura.lua:279: Division by zero
oUF_P3lim-@project-version@\embeds\oUF\elements\aura.lua:279: in function <oUF_P3lim\embeds\oUF\elements\aura.lua:266>
oUF_P3lim-@project-version@\embeds\oUF\elements\aura.lua:419: in function "func"
oUF_P3lim-@project-version@\embeds\oUF\events.lua:48: in function <oUF_P3lim\embeds\oUF\events.lua:46>
(tail call): ?
Locals:
self = oUF_P3limArena2 {
0 = <userdata>
__tags = <table> {
}
PLAYER_ENTERING_WORLD = <function> defined @oUF_P3lim\embeds\oUF\ouf.lua:149
INCOMING_RESURRECT_CHANGED = <function> defined @oUF_P3lim\embeds\oUF\elements\resurrect.lua:53
UNIT_SPELLCAST_CHANNEL_START = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:256
UNIT_SPELLCAST_INTERRUPTIBLE = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:190
UNIT_PET = <function> defined @oUF_P3lim\embeds\oUF\ouf.lua:175
UNIT_HEALTH_FREQUENT = <function> defined @oUF_P3lim\embeds\oUF\elements\health.lua:147
UNIT_MAXHEALTH = <function> defined @oUF_P3lim\embeds\oUF\elements\health.lua:147
__elements = <table> {
}
Power = <unnamed> {
}
UNIT_POWER_BAR_SHOW = <function> defined @oUF_P3lim\embeds\oUF\elements\power.lua:197
UNIT_SPELLCAST_NOT_INTERRUPTIBLE = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:204
Health = <unnamed> {
}
UNIT_EXITED_VEHICLE = <function> defined @oUF_P3lim\embeds\oUF\ouf.lua:38
UNIT_CONNECTION = <table> {
}
Debuffs = <unnamed> {
}
UNIT_POWER = <function> defined @oUF_P3lim\embeds\oUF\elements\power.lua:197
UNIT_SPELLCAST_START = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:104
unit = "arena2"
UNIT_SPELLCAST_DELAYED = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:218
UNIT_SPELLCAST_STOP = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:238
UNIT_AURA = <table> {
}
RAID_TARGET_UPDATE = <function> defined @oUF_P3lim\embeds\oUF\elements\ricons.lua:58
UNIT_MAXPOWER = <function> defined @oUF_P3lim\embeds\oUF\elements\power.lua:197
UNIT_DISPLAYPOWER = <function> defined @oUF_P3lim\embeds\oUF\elements\power.lua:197
Castbar = <unnamed> {
}
id = "2"
HealthValue = <unnamed> {
}
UNIT_SPELLCAST_INTERRUPTED = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:172
UNIT_FACTION = <table> {
}
UNIT_ENTERED_VEHICLE = <function> defined @oUF_P3lim\embeds\oUF\ouf.lua:38
ResurrectIcon = <unnamed> {
}
UNIT_SPELLCAST_CHANNEL_STOP = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:332
RaidIcon = <unnamed> {
}
UNIT_SPELLCAST_CHANNEL_UPDATE = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:309
UNIT_POWER_BAR_HIDE = <function> defined @oUF_P3lim\embeds\oUF\elements\power.lua:197
style = "P3lim"
UNIT_SPELLCAST_FAILED = <function> defined @oUF_P3lim\embeds\oUF\elements\castbar.lua:154
}
event = "UNIT_AURA"
unit = "arena2"
auras = nil
buffs = nil
debuffs = <unnamed> {
__owner = oUF_P3limArena2 {
}
PostCreateIcon = <function> defined @oUF_P3lim\oUF_P3lim.lua:150
anchoredIcons = 0
1 = <unnamed> {
}
visibleDebuffs = 1
createdIcons = 1
ForceUpdate = <function> defined @oUF_P3lim\embeds\oUF\elements\aura.lua:452
initialAnchor = "TOPRIGHT"
growth-x = "LEFT"
0 = <userdata>
spacing = 4
}
numDebuffs = 40
visibleDebuffs = 1
hiddenDebuffs = 0
fromRange = nil
toRange = nil
filterIcons = <function> defined @oUF_P3lim\embeds\oUF\elements\aura.lua:287
createAuraIcon = <function> defined @oUF_P3lim\embeds\oUF\elements\aura.lua:83
SetPosition = <function> defined @oUF_P3lim\embeds\oUF\elements\aura.lua:266
What's the size of your aura container frame and what's .size and .spacing set to?
You should only get this if .size + .spacing is greater than than of your container.