Loading...
Forum Rules:
Before creating a thread here then please read [FOR TECH SUPPORT] README FIRST.

[20.14] Lua Error with castbar on Player + Target UnitFrame

1
Version of Tukui: 20.14 (downloaded directly from tukui.org, today (20.01.2021 ~ 08:00 CET))

Did you disable all AddOns except "Tukui" and "Tukui Config"? Everything except "Tukui". It seems this bug template is outdated - "Tukui Config" no longer exists afaik?!

Did you get an error? If so then post it below (use 'code' bbcode):

When casting something myself:

Code: Select all

Message: Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:249: attempt to index field 'Button' (a nil value)
Time: Wed Jan 20 10:35:17 2021
Count: 2
Stack: Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:249: attempt to index field 'Button' (a nil value)
[string "@Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua"]:249: in function `CheckInterrupt'
[string "@Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua"]:256: in function `PostCastStart'
[string "@Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua"]:178: in function `func'
[string "@Interface\AddOns\Tukui\Libs\oUF\events.lua"]:82: in function <Interface\AddOns\Tukui\Libs\oUF\events.lua:80>
[string "=(tail call)"]: ?

Locals: self = TukuiPlayerCastBar {
 0 = <userdata>
 holdTime = 0
 duration = 0
 Time = <unnamed> {
 }
 castID = "Cast-3-3770-2222-1489-222695-000107F956"
 Background = <unnamed> {
 }
 PostChannelStart = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:259
 __owner = TukuiPlayerFrame {
 }
 notInterruptible = false
 SafeZone = <unnamed> {
 }
 max = 5
 Text = <unnamed> {
 }
 PostCastStart = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:255
 CustomTimeText = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:220
 channeling = false
 ForceUpdate = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:373
 startTime = 8738.646000
 CustomDelayText = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:226
 casting = true
 delay = 0
 spellID = 222695
}
unit = "player"
Frame = TukuiPlayerFrame {
 0 = <userdata>
 Shadow = <unnamed> {
 }
 HealthPrediction = <table> {
 }
 __tags = <table> {
 }
 PLAYER_ENTERING_WORLD = <function> defined @Interface\AddOns\Tukui\Libs\oUF\ouf.lua:194
 FloatingCombatFeedback = TukuiPlayerFrameScrollingCombatText {
 }
 UNIT_SPELLCAST_CHANNEL_START = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:102
 unitEvents = <table> {
 }
 UNIT_POWER_BAR_HIDE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 UNIT_MAXHEALTH = <table> {
 }
 __elements = <table> {
 }
 UNIT_POWER_FREQUENT = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 Panel = <unnamed> {
 }
 PowerPrediction = <table> {
 }
 UNIT_POWER_BAR_SHOW = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 Power = <unnamed> {
 }
 UNIT_HEAL_ABSORB_AMOUNT_CHANGED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\healthprediction.lua:197
 UNIT_SPELLCAST_NOT_INTERRUPTIBLE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:290
 PLAYER_REGEN_DISABLED = <table> {
 }
 MoverName = "Player"
 UNIT_MAXPOWER = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 UNIT_HEALTH = <table> {
 }
 style = "Tukui"
 PLAYER_UPDATE_RESTING = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\restingindicator.lua:58
 GROUP_ROSTER_UPDATE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\leaderindicator.lua:59
 PARTY_LEADER_CHANGED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\leaderindicator.lua:59
 UNIT_EXITED_VEHICLE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\ouf.lua:46
 UNIT_COMBAT = <table> {
 }
 UNIT_CONNECTION = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\health.lua:139
 Debuffs = TukuiPlayerFrameDebuffs {
 }
 UNIT_SPELLCAST_CHANNEL_UPDATE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:184
 UNIT_HEAL_PREDICTION = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\healthprediction.lua:197
 RAID_TARGET_UPDATE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\raidtargetindicator.lua:62
 MasterLooterIndicator = <unnamed> {
 }
 RaidTargetIndicator = <unnamed> {
 }
 unit = "player"
 UNIT_SPELLCAST_DELAYED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:184
 UNIT_SPELLCAST_INTERRUPTIBLE = <function> defined @In
When my target is casting something:

Code: Select all

Message: Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:249: attempt to index field 'Button' (a nil value)
Time: Wed Jan 20 10:36:05 2021
Count: 1
Stack: Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:249: attempt to index field 'Button' (a nil value)
[string "@Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua"]:249: in function `CheckInterrupt'
[string "@Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua"]:256: in function `PostCastStart'
[string "@Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua"]:178: in function <Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:102>
[string "@Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua"]:370: in function `func'
[string "@Interface\AddOns\Tukui\Libs\oUF\ouf.lua"]:211: in function <Interface\AddOns\Tukui\Libs\oUF\ouf.lua:194>
[string "=(tail call)"]: ?
[string "=[C]"]: in function `Show'
[string "@Interface\FrameXML\SecureStateDriver.lua"]:83: in function <Interface\FrameXML\SecureStateDriver.lua:73>
[string "@Interface\FrameXML\SecureStateDriver.lua"]:137: in function <Interface\FrameXML\SecureStateDriver.lua:119>

Locals: self = TukuiTargetCastBar {
 0 = <userdata>
 holdTime = 0
 duration = 0.617000
 Time = <unnamed> {
 }
 castID = "Cast-3-3770-2222-1489-133-000287F985"
 CustomTimeText = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:220
 PostChannelStart = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:259
 __owner = TukuiTargetFrame {
 }
 notInterruptible = false
 SafeZone = <unnamed> {
 }
 max = 1.926000
 Text = <unnamed> {
 }
 PostCastStart = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:255
 Background = <unnamed> {
 }
 channeling = false
 ForceUpdate = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:373
 startTime = 8786.114000
 CustomDelayText = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:226
 casting = true
 delay = 0
 spellID = 133
}
unit = "target"
Frame = TukuiTargetFrame {
 0 = <userdata>
 Shadow = <unnamed> {
 }
 HealthPrediction = <table> {
 }
 __tags = <table> {
 }
 PLAYER_ENTERING_WORLD = <function> defined @Interface\AddOns\Tukui\Libs\oUF\ouf.lua:194
 UNIT_SPELLCAST_CHANNEL_START = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:102
 unitEvents = <table> {
 }
 UNIT_MAXHEALTH = <table> {
 }
 __elements = <table> {
 }
 UNIT_POWER_FREQUENT = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 Panel = <unnamed> {
 }
 Power = <unnamed> {
 }
 UNIT_HEAL_ABSORB_AMOUNT_CHANGED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\healthprediction.lua:197
 UNIT_SPELLCAST_NOT_INTERRUPTIBLE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:290
 MoverName = "Target"
 AlternativePower = TukuiTargetFrameAltPowerBar {
 }
 UNIT_HEALTH = <table> {
 }
 style = "Tukui"
 RAID_TARGET_UPDATE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\raidtargetindicator.lua:62
 UNIT_CONNECTION = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\health.lua:139
 Debuffs = TukuiTargetFrameDebuffs {
 }
 UNIT_ABSORB_AMOUNT_CHANGED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\healthprediction.lua:197
 UNIT_SPELLCAST_START = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:102
 unit = "target"
 UNIT_SPELLCAST_DELAYED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:184
 UNIT_COMBAT = <function> defined @Interface\AddOns\Tukui\Libs\oUF_CombatFeedback\oUF_CombatFeedback.lua:62
 UNIT_MAXPOWER = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 UNIT_DISPLAYPOWER = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 UNIT_SPELLCAST_STOP = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:237
 PLAYER_TARGET_CHANGED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\ouf.lua:194
 UNIT_AURA = <function> defined @Interface\AddOn
Please describe the issue in as much detail as possible. If you know how to reproduce the issue then mention that too:
I get an error message as soon as I am casting something - or my target is casting something. The actual cast is not displayed any more. The castbar on my focus target is not affected (see screenshot). I am not sure if the 2 error messages differ from each other. Guess not, but I posted both of them anyway to be on the safe side.

Please include screenshot(s) which illustrate the issue (you can attach them to this post):

[20.14] Lua Error with castbar on Player + Target UnitFrame

3
Thank you very much for the response.

Using Hearthstones (Dalaran, Garrison, normal one) it is working again. The cast bar is shown, no error is thrown.
However, using any class ability with cast time (Aimed Shot, Dismiss Pet, Rapid Fire, ...) the error pops up again and no cast bar is visible.

Code: Select all

Message: Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:243: attempt to index field 'Button' (a nil value)
Time: Thu Jan 21 08:30:06 2021
Count: 5
Stack: Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:243: attempt to index field 'Button' (a nil value)
[string "@Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua"]:243: in function `CheckInterrupt'
[string "@Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua"]:256: in function `PostCastStart'
[string "@Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua"]:178: in function `func'
[string "@Interface\AddOns\Tukui\Libs\oUF\events.lua"]:82: in function <Interface\AddOns\Tukui\Libs\oUF\events.lua:80>
[string "=(tail call)"]: ?

Locals: self = TukuiPlayerCastBar {
 0 = <userdata>
 holdTime = 0
 duration = 0
 Time = <unnamed> {
 }
 castID = "Cast-3-4240-2222-25387-19434-0002092D7E"
 Background = <unnamed> {
 }
 PostChannelStart = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:259
 __owner = TukuiPlayerFrame {
 }
 notInterruptible = true
 SafeZone = <unnamed> {
 }
 max = 2.294000
 Text = <unnamed> {
 }
 PostCastStart = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:255
 CustomTimeText = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:220
 channeling = false
 ForceUpdate = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:373
 startTime = 1172.053000
 CustomDelayText = <function> defined @Interface\AddOns\Tukui\Modules\UnitFrames\Core.lua:226
 casting = true
 delay = 0
 spellID = 19434
}
unit = "player"
Frame = TukuiPlayerFrame {
 0 = <userdata>
 Shadow = <unnamed> {
 }
 HealthPrediction = <table> {
 }
 __tags = <table> {
 }
 PLAYER_ENTERING_WORLD = <function> defined @Interface\AddOns\Tukui\Libs\oUF\ouf.lua:194
 FloatingCombatFeedback = TukuiPlayerFrameScrollingCombatText {
 }
 UNIT_SPELLCAST_CHANNEL_START = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:102
 unitEvents = <table> {
 }
 UNIT_POWER_BAR_SHOW = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 UNIT_POWER_BAR_HIDE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 UNIT_MAXHEALTH = <table> {
 }
 __elements = <table> {
 }
 UNIT_POWER_FREQUENT = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 Panel = <unnamed> {
 }
 PowerPrediction = <table> {
 }
 Power = <unnamed> {
 }
 UNIT_HEAL_ABSORB_AMOUNT_CHANGED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\healthprediction.lua:197
 UNIT_SPELLCAST_NOT_INTERRUPTIBLE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:290
 PLAYER_REGEN_DISABLED = <table> {
 }
 MoverName = "Player"
 UNIT_MAXPOWER = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\power.lua:260
 UNIT_HEALTH = <table> {
 }
 style = "Tukui"
 PLAYER_UPDATE_RESTING = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\restingindicator.lua:58
 GROUP_ROSTER_UPDATE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\leaderindicator.lua:59
 PARTY_LEADER_CHANGED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\leaderindicator.lua:59
 UNIT_EXITED_VEHICLE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\ouf.lua:46
 UNIT_COMBAT = <table> {
 }
 UNIT_CONNECTION = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\health.lua:139
 Debuffs = TukuiPlayerFrameDebuffs {
 }
 UNIT_SPELLCAST_CHANNEL_UPDATE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:184
 UNIT_HEAL_PREDICTION = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\healthprediction.lua:197
 RAID_TARGET_UPDATE = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\raidtargetindicator.lua:62
 MasterLooterIndicator = <unnamed> {
 }
 RaidTargetIndicator = <unnamed> {
 }
 unit = "player"
 UNIT_SPELLCAST_DELAYED = <function> defined @Interface\AddOns\Tukui\Libs\oUF\elements\castbar.lua:184
 UNIT_SPELLCAST_INTERRUPTIBLE = <function> define