greven / oUF_Lumen

World of Warcraft Addon : oUF Layout
Other
13 stars 7 forks source link

Deaths of Chromie throws errors #12

Closed robertjacobsen closed 4 years ago

robertjacobsen commented 6 years ago

Hi,

I'm playing through the Deaths of Chromie quest chain, and zoning in and out of the scenario triggers this stack trace:

Message: Interface\AddOns\oUF_Lumen\units\player.lua:60: attempt to index local 'LastBar' (a nil value)
Time: Sun Sep 23 15:47:32 2018
Count: 6
Stack: Interface\AddOns\oUF_Lumen\units\player.lua:60: attempt to index local 'LastBar' (a nil value)
Interface\AddOns\oUF_Lumen\units\player.lua:60: in function <Interface\AddOns\oUF_Lumen\units\player.lua:33>
(tail call): ?
(tail call): ?
...\AddOns\oUF_Lumen\embeds\oUF\elements\classpower.lua:214: in function <...\AddOns\oUF_Lumen\embeds\oUF\elements\classpower.lua:174>
(tail call): ?
(tail call): ?

Locals: element = <table> {
 1 = oUF_LumenClassPower {
 }
 2 = oUF_LumenClassPower {
 }
 3 = oUF_LumenClassPower {
 }
 4 = oUF_LumenClassPower {
 }
 5 = oUF_LumenClassPower {
 }
 6 = oUF_LumenClassPower {
 }
 7 = oUF_LumenClassPower {
 }
 8 = oUF_LumenClassPower {
 }
 9 = oUF_LumenClassPower {
 }
 10 = oUF_LumenClassPower {
 }
 11 = oUF_LumenClassPower {
 }
 __owner = oUF_LumenPlayer {
 }
 ClassPowerEnable = <function> defined @Interface\AddOns\oUF_Lumen\embeds\oUF\elements\classpower.lua:234
 ForceUpdate = <function> defined @Interface\AddOns\oUF_Lumen\embeds\oUF\elements\classpower.lua:229
 PostUpdate = <function> defined @Interface\AddOns\oUF_Lumen\units\player.lua:33
 ClassPowerDisable = <function> defined @Interface\AddOns\oUF_Lumen\embeds\oUF\elements\classpower.lua:247
 isEnabled = true
 UpdateColor = <function> defined @Interface\AddOns\oUF_Lumen\units\player.lua:65
 __max = 0
}
cur = 0
max = 0
diff = false
powerType = "HOLY_POWER"
LastBarColor = <table> {
 WARLOCK = <table> {
 }
 PALADIN = <table> {
 }
 MAGE = <table> {
 }
 DRUID = <table> {
 }
 MONK = <table> {
 }
 ROGUE = <table> {
 }
}
LastBar = nil
(*temporary) = 1
(*temporary) = nil
(*temporary) = 0.18823529411765
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'LastBar' (a nil value)"
cfg = <table> {
 colors = <table> {
 }
 elements = <table> {
 }
 scale = 1
 fontsize = 14
 frames = <table> {
 }
 units = <table> {
 }
}
core = <unnamed> {
 0 = <userdata>
 createFontstring = <function> defined @Interface\AddOns\oUF_Lumen\core\utils.lua:36
 setglowBorder = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:120
 createNameString = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:70
 createPartyNameString = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:79
 CreateThreatBorder = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:174
 createPowerString = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:102
 MirrorBars = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:189
 NumberToPerc = <function> defined @Interface\AddOns\oUF_Lumen\core\math.lua:26
 createHPString = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:85
 CreateCastbar = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:55
 createDropShadow = <function> defined @Interface\AddOns\oUF_Lumen\core\utils.lua:45
 playerColor = <table> {
 }
 setBackdrop = <function> defined @Interface\AddOns\oUF_Lumen\core\utils.lua:20
 toHex = <function> defined @Interface\AddOns\oUF_Lumen\core\utils.lua:10
 createHPPercentString = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:92
 playerName = "Kalerath"
 shortNumber = <function> defined @Interface\AddOns\oUF_Lumen\core\math.lua:8
 isPlayerMaxLevel = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:24
 raidColor = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:48
 CreateTargetBorder = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:142
 formatTime = <function> defined @Interface\AddOns\oUF_Lumen\core\math.lua:30
 hasUnitDebuff = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:38
 createBorder = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:132
 playerClass = "PALADIN"
 playerLevel = 120
 getX
greven commented 6 years ago

Thanks for reporting it. Will look into it.

greven commented 4 years ago

Fixed.