Threat Plates

Threat Plates

31M Downloads

Multiple Lua errors thrown after casting Mind Control

JeeveStobs opened this issue ยท 3 comments

commented

Multiple Lua errors thrown after casting Mind Control as a Holy Priest in a Battleground Blitz:

Message: ...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1697: attempt to index local 'unit_aura_info' (a nil value)
Time: Wed May 15 13:13:48 2024
Count: 1
Stack: ...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1697: attempt to index local 'unit_aura_info' (a nil value)
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:1697: in function <...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1676>
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2193: in function `UpdateUnitAuras'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2407: in function `UpdateAurasGrids'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2463: in function `UpdateAuras'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:3160: in function `OnUnitAdded'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua"]:387: in function `OnUnitAdded'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:585: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:571>
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:620: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:596>
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:665: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:638>
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:1366: in function `?'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:1290: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:1289>

Locals: unitid = "nameplate11"
effect = "HELPFUL"
_ = nil
unit_auras = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
 14 = <table> {
 }
}
aura_max_display = 32
continuation_token = nil
slots = <table> {
 2 = 120
 3 = 122
 4 = 126
 5 = 125
 6 = 118
 7 = 116
 8 = 140
 9 = 128
 10 = 130
 11 = 124
 12 = 114
 13 = 138
 14 = 137
 15 = 117
 16 = 119
 17 = 2
}
(for index) = 16
(for limit) = 17
(for step) = 1
i = 16
unit_aura_info = nil
(*temporary) = nil
(*temporary) = "nameplate11"
(*temporary) = "attempt to index local 'unit_aura_info' (a nil value)"
BUFF_MAX_DISPLAY = 32
UnitAuraSlots = <function> defined =[C]:-1
GetAuraDataBySlot = <function> defined =[C]:-1
Message: ...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1697: attempt to index local 'unit_aura_info' (a nil value)
Time: Wed May 15 13:13:49 2024
Count: 1
Stack: ...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1697: attempt to index local 'unit_aura_info' (a nil value)
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:1697: in function <...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1676>
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2193: in function `UpdateUnitAuras'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2407: in function `UpdateAurasGrids'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2463: in function `UpdateAuras'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:1762: in function <...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1758>

Locals: unitid = "nameplate11"
effect = "HELPFUL"
_ = nil
unit_auras = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
}
aura_max_display = 32
continuation_token = nil
slots = <table> {
 2 = 120
 3 = 122
 4 = 126
 5 = 125
 6 = 118
 7 = 116
 8 = 140
 9 = 128
 10 = 124
 11 = 114
 12 = 138
 13 = 137
 14 = 117
 15 = 119
 16 = 2
}
(for index) = 15
(for limit) = 16
(for step) = 1
i = 15
unit_aura_info = nil
(*temporary) = nil
(*temporary) = "nameplate11"
(*temporary) = "attempt to index local 'unit_aura_info' (a nil value)"
BUFF_MAX_DISPLAY = 32
UnitAuraSlots = <function> defined =[C]:-1
GetAuraDataBySlot = <function> defined =[C]:-1
commented

The following version should fix this issue: https://drive.google.com/file/d/1Yh9GDGP9G5vhmnU41OaSN-pnqPIX5OUD/view?usp=sharing

I am not sure why exactly it's happening in this case, so the fix is not really something that I find great, but it works ...

commented

Thanks, I will try this version and report back. Could it be possible this error is triggered due to something with BG Blitz being cross faction? I don't recall getting this error in regular BGs.

commented

Strangely the lua error attributed to TPTP is gone. Now when I cast Mind Control as a holy priest (in a BG blitz) this error is thrown and is triggered thousands of time repeatedly until I click Ignore.

Message: ...ace/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua:520: attempt to index local 'auraData' (a nil value)
Time: Tue May 21 19:51:49 2024
Count: 114
Stack: ...ace/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua:520: attempt to index local 'auraData' (a nil value)
[string "@Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua"]:520: in function `func'
[string "@Interface/AddOns/Blizzard_FrameXMLUtil/Mainline/AuraUtil.lua"]:64: in function <...e/AddOns/Blizzard_FrameXMLUtil/Mainline/AuraUtil.lua:56>
[string "@Interface/AddOns/Blizzard_FrameXMLUtil/Mainline/AuraUtil.lua"]:83: in function `ForEachAura'
[string "@Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua"]:517: in function `UpdateAuras'
[string "@Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua"]:211: in function `Update'
[string "@Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua"]:497: in function `Update'
[string "@Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua"]:198: in function <...ace/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua:186>

Locals: auraData = nil
index = 2
(*temporary) = <table> {
 1 = <table> {
 }
}
(*temporary) = <table> {
 index = 2
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'auraData' (a nil value)"
self = DebuffFrame {
 0 = <userdata>
 UpdateMagnetismRegistration = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:731
 privateAuraAnchor2 = Frame {
 }
 systemInfo = <table> {
 }
 IsFrameAnchoredToMe = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:694
 TrySetCompositeNumberSettingValue = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:212
 downKeys = <table> {
 }
 GetSelectionOffset = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:540
 ResetToDefaultPosition = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:254
 GetScaledSelectionSides = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:532
 SelectSystem = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:763
 GetFrameMagneticEligibility = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:714
 Update = <function> defined @Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua:496
 unit = "player"
 IsBelowFrame = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:499
 UpdateSystemSettingIconSize = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:1796
 SetScaleBase = <function> defined =[C]:-1
 HasActiveChanges = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:381
 GetScaledCenter = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:525
 IsToTheRightOfFrame = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:487
 OnLoad = <function> defined @Interface/AddOns/Blizzard_BuffFrame/Mainline/BuffFrame.lua:492
 UpdateDisplayInfoOptions = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:1663
 GetSystemName = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:822
 ProcessMovementKey = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:39
 GetSettingValueBool = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:436
 HasCompositeNumberSetting = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:385
 DoesSettingValueEqual = <function> defined @Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua:440
 doNotAnchorDisabledFrames = tru