greven / oUF_Lumen

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

Cast bar Lua error on boss fights #16

Open Cazzbr opened 4 years ago

Cazzbr commented 4 years ago

I've created a post on wowinterface regarding this issue, but thought It's better to replicate here since you can keep track of It more easily.

Message: Interface\AddOns\oUF_Lumen\elements\castbar.lua:49: attempt to index field '?' (a nil value)
Time: Wed Nov 11 07:31:12 2020
Count: 65
Stack: Interface\AddOns\oUF_Lumen\elements\castbar.lua:49: attempt to index field '?' (a nil value)
[string "@Interface\AddOns\oUF_Lumen\elements\castbar.lua"]:49: in function `PostCastStart'
[string "@Interface\AddOns\oUF_Lumen\embeds\oUF\elements\castbar.lua"]:178: in function <...ace\AddOns\oUF_Lumen\embeds\oUF\elements\castbar.lua:102>
[string "=(tail call)"]: ?

Locals: self = <unnamed> {
 0 = <userdata>
 holdTime = 0
 duration = 0
 Glowborder = <unnamed> {
 }
 timeToHold = 1.500000
 Time = <unnamed> {
 }
 delay = 0
 castID = "Cast-3-3024-1841-1697-260292-000C2BBD70"
 CustomTimeText = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:39
 bg = <unnamed> {
 }
 channeling = false
 __owner = oUF_LumenBoss1 {
 }
 fader = <unnamed> {
 }
 notInterruptible = true
 startTime = 2257.967000
 Max = <unnamed> {
 }
 Text = <unnamed> {
 }
 Backdrop = <unnamed> {
 }
 PostCastStart = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:47
 max = 2
 PostCastInterruptible = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:64
 PostCastFail = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:54
 ForceUpdate = <function> defined @Interface\AddOns\oUF_Lumen\embeds\oUF\elements\castbar.lua:373
 Icon = <unnamed> {
 }
 casting = true
 faderConfig = <table> {
 }
 spellID = 260292
}
unit = "boss1"
(*temporary) = <function> defined =[C]:-1
(*temporary) = <unnamed> {
 0 = <userdata>
 holdTime = 0
 duration = 0
 Glowborder = <unnamed> {
 }
 timeToHold = 1.500000
 Time = <unnamed> {
 }
 delay = 0
 castID = "Cast-3-3024-1841-1697-260292-000C2BBD70"
 CustomTimeText = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:39
 bg = <unnamed> {
 }
 channeling = false
 __owner = oUF_LumenBoss1 {
 }
 fader = <unnamed> {
 }
 notInterruptible = true
 startTime = 2257.967000
 Max = <unnamed> {
 }
 Text = <unnamed> {
 }
 Backdrop = <unnamed> {
 }
 PostCastStart = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:47
 max = 2
 PostCastInterruptible = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:64
 PostCastFail = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:54
 ForceUpdate = <function> defined @Interface\AddOns\oUF_Lumen\embeds\oUF\elements\castbar.lua:373
 Icon = <unnamed> {
 }
 casting = true
 faderConfig = <table> {
 }
 spellID = 260292
}
(*temporary) = <function> defined =[C]:-1
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
cfg = <table> {
 elements = <table> {
 }
 healingSpecs = <table> {
 }
 colors = <table> {
 }
 scale = 1
 fontsize = 14
 frames = <table> {
 }
 units = <table> {
 }
}
CheckForSpellInterrupt = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:21
core = <unnamed> {
 0 = <userdata>
 createFontstring = <function> defined @Interface\AddOns\oUF_Lumen\core\utils.lua:55
 createNameString = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:133
 CreateThreatBorder = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:220
 NumberToPerc = <function> defined @Interface\AddOns\oUF_Lumen\core\math.lua:26
 isPlayerHealer = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:93
 has_value = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:23
 playerColor = <table> {
 }
 CreateFaderAnimation = <function> defined @Interface\AddOns\oUF_Lumen\core\utils.lua:136
 MirrorBars = <function> defined @Interface\AddOns\oUF_Lumen\elements\castbar.lua:238
 GetCurrentSpec = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:100
 formatTime = <function> defined @Interface\AddOns\oUF_Lumen\core\math.lua:30
 playerClass = "WARRIOR"
 CreateFrameFader = <function> defined @Interface\AddOns\oUF_Lumen\core\utils.lua:160
 raidColor = <function> defined @Interface\AddOns\oUF_Lumen\core\core.lua:112
 s
greven commented 4 years ago

Thanks for submitting the bug.

I'll look into it soon.