WeakAuras

WeakAuras

206M Downloads

Custom Anchor Frame doesn't work with Dynamic Group and gives errors

Weeeqt opened this issue ยท 1 comments

commented

Describe the bug

I tried to make a dynamic group and write a custom anchor function for it. It didn't work. After reloading UI I got lua error and when opening WA settings it would give me errors as well.
For testing purposes I inserted print("yo!") in my custom anchor function, but it got never printed.

Do you have an error log of what happened?
The one right after /reload :

Message: ...erface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua:48: <unnamed>:SetPoint(): Couldn't find region named ''
Time: Thu Jul 23 01:35:00 2020
Count: 1
Stack: ...erface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua:48: <unnamed>:SetPoint(): Couldn't find region named ''
[string "=[C]"]: ?
[string "=[C]"]: in function `SetPoint'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:48: in function `SetAnchorPoint'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1042: in function `DoPositionChildrenPerFrame'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1159: in function `DoPositionChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1023: in function `PositionChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1004: in function `SortUpdatedChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:811: in function `Resume'
[string "@Interface\AddOns\WeakAuras\WeakAuras.lua"]:6408: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:6367>
[string "@Interface\AddOns\WeakAuras\WeakAuras.lua"]:6484: in function `UpdatedTriggerState'
[string "@Interface\AddOns\WeakAuras\BuffTrigger2.lua"]:1357: in function <Interface\AddOns\WeakAuras\BuffTrigger2.lua:1349>
[string "@Interface\AddOns\WeakAuras\BuffTrigger2.lua"]:1673: in function <Interface\AddOns\WeakAuras\BuffTrigger2.lua:1666>

Locals: 

Another one right after /wa :

Message: ...erface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua:48: <unnamed>:SetPoint(): Couldn't find region named ''
[string "=[C]"]: in function `SetPoint'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:48: in function `SetAnchorPoint'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1042: in function `DoPositionChildrenPerFrame'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1159: in function `DoPositionChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1023: in function `PositionChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1004: in function `SortUpdatedChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:811: in function `Resume'
[string "@Interface\AddOns\WeakAuras\WeakAuras.lua"]:1933: in function `ResumeAllDynamicGroups'
[string "@Interface\AddOns\WeakAurasOptions\WeakAurasOptions.lua"]:1591: in function <...terface\AddOns\WeakAurasOptions\WeakAurasOptions.lua:1548>

Time: Thu Jul 23 01:35:35 2020
Count: 1
Stack: ...erface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua:48: <unnamed>:SetPoint(): Couldn't find region named ''
[string "=[C]"]: in function `SetPoint'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:48: in function `SetAnchorPoint'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1042: in function `DoPositionChildrenPerFrame'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1159: in function `DoPositionChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1023: in function `PositionChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:1004: in function `SortUpdatedChildren'
[string "@Interface\AddOns\WeakAuras\RegionTypes\DynamicGroup.lua"]:811: in function `Resume'
[string "@Interface\AddOns\WeakAuras\WeakAuras.lua"]:1933: in function `ResumeAllDynamicGroups'
[string "@Interface\AddOns\WeakAurasOptions\WeakAurasOptions.lua"]:1591: in function <...terface\AddOns\WeakAurasOptions\WeakAurasOptions.lua:1548>

[string "@Interface\AddOns\WeakAuras\WeakAuras.lua"]:6116: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:6097>

Locals: <none>

To Reproduce

Steps to reproduce the behavior:

  1. Create Dynamic Group and insert an Icon inside with default Aura trigger.
  2. In Group - Position Settings select Anchored To - Custom.
  3. Use this code for custom function:
function()
    print("yo!")
    return CompactRaidFrame1
end
  1. Reload and see the error.

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
No.

Which version of WeakAuras are you using?
2.17.12

Are you on World of Warcraft Classic or Retail?

  • [] Classic
  • Retail

Additional Info

!LBvtZTTnq0FlnZ0zspupMYko9Q(mrzKjvfOQJVqjicqj0qcWcaABPd83E3fGuI(J2Mojx60XE4aTCXIDF7BFGjbjXjetcP3fbV)IGEjKIecd)hmt1PZ5YD29jHxD9LjKTknJRhst)ctRktidZfhps1S6nXkvUvaMEmklZWTjHG7h6SENwWIpuYtilh3gOrQCLgoNWa0LWEUNx5E2hnAHeRKMYXxrOPwHsACzRLQTWc49cPOzvgS0S3Tg(Lvl2TJRn(OhFYaUKX3wLL5tMpoz(IPRMdV39tALM2dpvEE(mMXhzt1w(9CPLa7s8ycz9ObK41K4blHGvHjaPmNEacorsl4n7YTf4a40Ca)ofKfAUliKftMph9RsEo1S(KpvLxvij(spalslxlP5)guqagay0vW(m85Ic4W3cPDUyNmHmAsy8KLo8Xfqe3HZDjFxdYbXoxrDTwy7RtZPgdUF)cWArf0fBXqafsFPrXr(ZncM32Wj62sdCT0axlnW1sV8I35AvAaMGoc1sD1hvkkOwoMjMuAUVOtRmwvXaz6EiGKSkPR))2FQ(t1B8)vQbG5TV5G6hEthRAUTslR3msvaaODjvWMINxq9N4swl1dpl)QjSDqJN8hvunVEZ0Q886n3UxaPdr7aoprHDa6TI0DAvvz7wjiwGCtJc4JePsI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