Backupiseasy / ThreatPlates

Nameplate addon for World of Warcraft
https://wow.curseforge.com/projects/tidy-plates-threat-plates
35 stars 18 forks source link

Lua error thrown in arena after 10.2.5 #497

Open JeeveStobs opened 5 months ago

JeeveStobs commented 5 months ago

I'm not sure what exactly triggers this lua error in the arena. The error first started after the 10.2.5 update.

Possibly occurs when I changed enemy targets to dispel? Happens when I'm playing a holy priest.

Message: ...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1345: attempt to compare nil with number
Time: Wed Jan 17 20:04:02 2024
Count: 1
Stack: ...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1345: attempt to compare nil with number
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:1345: in function `SpellFilter'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2047: in function `UpdateUnitAuras'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2244: in function `UpdateAurasGrids'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2300: in function `UpdateAuras'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:3009: in function `OnUnitAdded'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua"]:391: in function `OnUnitAdded'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:402: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:388>
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:442: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:418>
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:482: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:460>
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:1170: in function `?'
[string "@Interface/AddOns/TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:1103: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:1102>

Locals: self = <table> {
 UpdateSettingsIconMode = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:3079
 CrowdControl = <table> {
 }
 PLAYER_ENTERING_WORLD = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2490
 FilterEnemyDebuffsBySpell = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1301
 GetThreatPlateForUnit = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:207
 FilterEnemyBuffsBySpell = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1343
 TEXTURE_BORDER = "Interface\AddOns\TidyPlates_ThreatPlates\Artwork\squareline"
 FilterFriendlyDebuffsBySpell = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1289
 AuraFilterDebuffs = <table> {
 }
 CurrentTarget = Frame {
 }
 UpdateAuras = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2298
 Create = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2926
 UnregisterAllEvents = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:104
 UpdateUnitAuras = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1986
 UpdateAllFramesAndNameplateColor = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:131
 EnabledForStyle = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2986
 ToggleConfigurationMode = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:3327
 IsEnabled = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2953
 WidgetHandler = <table> {
 }
 AuraFilterCrowdControl = <table> {
 }
 ANCHOR_POINT_SETPOINT = <table> {
 }
 RegistedUnitEvents = <table> {
 }
 Debuffs = <table> {
 }
 PLAYER_REGEN_DISABLED = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2476
 AuraFilterBuffs = <table> {
 }
 UpdateAllFrames = <function> defined @Interface/AddOns/TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:120
 db = <table> {
 }
 UpdatePositionAuraGrid = <function> defined @Interface/AddOns/
JH0Ni-github commented 5 months ago

2nd this. Playing arena with disc priest with only dispellable buffs enabled, and getting hundreds of errors related to ../AurasWidget.lua when toggled on.

Backupiseasy commented 5 months ago

So, this Lua errors do not happen when you disable dispellable buffs? Did you get these errors with other classes as well or just priests?

JH0Ni-github commented 5 months ago

I had to turn off the auras widget to stop the constant Lua errors. Haven’t tried with any other class as the bug makes arenas completely unplayable due to skills not going off.

(Think the lag is just caused by so many errors popping in short time. Even with BugSack+BugGrabber.)

Edit: I think the error is the same as already posted but here's mine:

1064x ...dOns/TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1345: attempt to compare nil with number
[string "@TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:1345: in function `SpellFilter'
[string "@TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2047: in function `UpdateUnitAuras'
[string "@TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2244: in function `UpdateAurasGrids'
[string "@TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:2300: in function `UpdateAuras'
[string "@TidyPlates_ThreatPlates/Widgets/AurasWidget.lua"]:3009: in function `OnUnitAdded'
[string "@TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua"]:391: in function `OnUnitAdded'
[string "@TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:402: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:388>
[string "@TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:442: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:418>
[string "@TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:482: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:460>
[string "@TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:1170: in function `?'
[string "@TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua"]:1103: in function <...s_ThreatPlates/TidyPlatesInternal/TidyPlatesCore.lua:1102>

Locals:
self = <table> {
 UpdateAuras = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2298
 CrowdControl = <table> {
 }
 UnregisterAllEvents = <function> defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:104
 UpdateUnitAuras = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1986
 WidgetHandler = <table> {
 }
 FilterEnemyBuffsBySpell = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1343
 TEXTURE_BORDER = "Interface\AddOns\TidyPlates_ThreatPlates\Artwork\squareline"
 FilterFriendlyDebuffsBySpell = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1289
 AuraFilterDebuffs = <table> {
 }
 AuraFilterCrowdControl = <table> {
 }
 PLAYER_REGEN_DISABLED = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2476
 AuraFilterBuffs = <table> {
 }
 db = <table> {
 }
 UpdateAllFramesAndNameplateColor = <function> defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:131
 EnabledForStyle = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2986
 ToggleConfigurationMode = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:3327
 IsEnabled = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2953
 UpdateSettings = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:3178
 UpdateSettingsBarMode = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:3133
 AURA_TYPE = <table> {
 }
 FilterFriendlyCrowdControlBySpell = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1311
 GetColorForAura = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1189
 UpdateSettingsIconMode = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:3079
 ParseSpellFilters = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:3056
 UpdateAllFrames = <function> defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:120
 OnUnitRemoved = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:3012
 UpdatePositionAuraGrid = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2192
 FilterEnemyDebuffsBySpell = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1301
 Create = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2926
 PLAYER_ENTERING_WORLD = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2490
 PLAYER_REGEN_ENABLED = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2457
 FilterEnemyCrowdControlBySpell = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1322
 FilterFriendlyBuffsBySpell = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:1332
 RegisterUnitEvent = <function> defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:78
 PLAYER_TARGET_CHANGED = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2439
 UpdateLayout = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2419
 OnDisable = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2976
 UpdateAuraGridLayout = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2366
 RegistedUnitEvents = <table> {
 }
 GetWidgetFrameForUnit = <function> defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:215
 RegisterEvent = <function> defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:69
 OnUnitAdded = <function> defined @TidyPlates_ThreatPlates/Widgets/AurasWidget.lua:2994
 UpdateAurasGrids = <functio
Backupiseasy commented 5 months ago

I uploaded a beta version that should fix this error although I still don't know why it's happening. So, it's not a good fix, I think. But it should work.

Does this error only happen in arenas or also in BGs? Arenas are always a bit tricky to test for me :)

JH0Ni-github commented 5 months ago

The beta seems to be working fine :) Tested dispellable buffs on enemy nameplates in solo shuffle with Disc and Resto Druid without any errors. Thanks for quick fix!

JeeveStobs commented 5 months ago

Beta version is working well, no lua errors thrown in arena.

Backupiseasy commented 5 months ago

I am still not able to reproduce this bug. I even stepped into arena as a disc priest (I am sad for my team mates as I have no idea what I am doing in there, so it's always a loss :( ) .

I am unsure if it might be related to a certain talent of even a side-effect with another addon (although that seems very unlikely to me).

You could help me by using the following version of TP and post here what it prints into the chat when this situation happens: https://drive.google.com/file/d/1_hpquCXgUNdDaQ3svFCd9-Kym0r4n4uU/view?usp=sharing