Frequent Lua error happening since fixing aspect ratio limitation
BendyWalker opened this issue Β· 7 comments
I have no idea what's causing this, since the error seems to have no relation to any of my code. I've pulled version 2 from CurseForge until I can figure out a solution.
Message: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:443: Action[FrameMeasurement] failed because[Can't measure restricted regions]: attempted from: <unnamed>:GetLeft().
Time: Fri Aug 23 10:42:57 2019
Count: 1
Stack: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:443: Action[FrameMeasurement] failed because[Can't measure restricted regions]: attempted from: <unnamed>:GetLeft().
[C]: in function `GetLeft'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:443: in function `GetPr/fsta/eferredInsets'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:138: in function `UpdateInsetsForType'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:122: in function `ApplyFrameOptions'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:93: in function `OnNamePlateAdded'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:51: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:42>
Locals: (*temporary) = <unnamed> {
otherHealPrediction = <unnamed> {
}
overAbsorbGlow = <unnamed> {
}
myHealAbsorbLeftShadow = <unnamed> {
}
border = <unnamed> {
}
barTexture = <unnamed> {
}
totalAbsorb = <unnamed> {
}
myHealAbsorb = <unnamed> {
}
myHealPrediction = <unnamed> {
}
myHealAbsorbRightShadow = <unnamed> {
}
0 = <userdata>
background = <unnamed> {
}
overHealAbsorbGlow = <unnamed> {
}
totalAbsorbOverlay = <unnamed> {
}
}
@mooreatv @m4xc4v413r4 Anything obvious stand out to you as to why this would be happening?
There are two other errors happening simultaneously with the one above.
Message: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:185: Usage: GetRaidTargetIndex(unit)
Time: Fri Aug 23 12:58:14 2019
Count: 8
Stack: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:185: Usage: GetRaidTargetIndex(unit)
[C]: in function `GetRaidTargetIndex'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:185: in function `OnRaidTargetUpdate'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:99: in function `OnNamePlateAdded'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:51: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:42>
Locals: (*temporary) = nil
Message: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:559: Usage: UnitAura("unit", [index][, "filter"])
Time: Fri Aug 23 12:58:42 2019
Count: 112
Stack: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:559: Usage: UnitAura("unit", [index][, "filter"])
[C]: in function `UnitAura'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:559: in function `UpdateBuffs'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:178: in function `OnUnitAuraUpdate'
...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:60: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:42>
Locals: (*temporary) = nil
(*temporary) = 1
(*temporary) = "HELPFUL|INCLUDE_NAME_PLATE_ONLY"
My thoughts exactly! But it's the only AddOn I have installed and the errors don't happen when it's disabled π
Are you sure it's your addon? There's no mention of it so you would have to be corrupting the nameplates which I don't see how you would be doing since you're only drawing some lines in the UIParent.
sorry I missed the earlier tag but glad you found your issue with global namespace smashing
Got some feedback from @Ketho on the WoW AddOns Discord server. Thank you! π
Turns out Round()
already exists and itβs very naughty to redeclare it.
It seems obvious in hindsight, but I should also make all my functions and variables local to prevent any other clashes in the future.
Addressed this issue and released a new version!