WeakAuras

WeakAuras

206M Downloads

Renaming an aura bar to the name of one that you deleted earlier throws a lua error

BartStam opened this issue · 2 comments

commented

Description

If you have two auras named X and Y, then delete X and rename Y->X, you get a lua error.

WeakAuras Version

Both 4.1.4 and beta-4

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

101x WeakAuras\RegionTypes\AuraBar.lua:1063: attempt to index local 'state' (a nil value)
[string "@WeakAuras\RegionTypes\AuraBar.lua"]:1063: in function `TimerTick'
[string "@WeakAuras\RegionTypes\RegionPrototype.lua"]:430: in function <...aceWeakAuras\RegionTypes\RegionPrototype.lua:426>
[string "@WeakAuras\RegionTypes\RegionPrototype.lua"]:442: in function <...aceWeakAuras\RegionTypes\RegionPrototype.lua:441>

Locals:
self = <unnamed> {
 overlays = <table> {
 }
 triggerProvidesTimer = true
 iconSource = -1
 AnchorSubRegion = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:733
 Scale = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:1307
 desaturateIcon = false
 Expand = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:910
 yOffset = 0
 anchorPoint = "CENTER"
 SetAnimAlpha = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:391
 timer = <unnamed> {
 }
 GetColor = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:1150
 icon = <unnamed> {
 }
 SetOffset = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:318
 icon_color = <table> {
 }
 xOffset = 0
 iconFrame = <unnamed> {
 }
 SendChat = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:266
 SetInverse = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:858
 toShow = true
 SetTime = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:840
 height = 15
 0 = <userdata>
 bar = <unnamed> {
 }
 inverseDirection = false
 OptionsClosed = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:752
 subRegionEvents = <table> {
 }
 UpdateMinMax = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:1204
 SetSparkHeight = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:809
 cloneId = ""
 Update = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:1249
 SetOrientation = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:874
 regionType = "aurabar"
 subRegions = <table> {
 }
 SetIcon = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:917
 relativePoint = "CENTER"
 Collapse = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:887
 iconVisible = false
 SoundPlay = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:248
 Resume = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:972
 GetMinMax = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:1245
 zoom = 0
 SetIconColor = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:795
 SetRegionHeight = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:819
 color_b = 0
 UpdateRegionHasTimerTick = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:409
 alpha = 1
 color_r = 1
 SetXOffset = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:327
 startFormatters = <table> {
 }
 SetRegionWidth = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:815
 SoundRepeatStop = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:194
 RealClearAllPoints = <function> defined =[C]:-1
 UpdateIcon = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:932
 RunCode = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:273
 GetYOffset = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:339
 values = <table> {
 }
 Color = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:1134
 SetOverlayColor = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:948
 scalex = 1
 SetYOffsetRelative = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:356
 effectiveOrientation = "HORIZONTAL"
 ReOrient = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:957
 GetRegionAlpha = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:387
 TimerTick = <function> defined @WeakAuras\RegionTypes\AuraBar.lua:1061
 GetXOffset = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:335
 UpdateTimerTick = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:438
 currentMin = 0

Reproduction Steps

  1. Import the aura pasted below
  2. Delete Test bar 1
  3. Rename Test bar 2 to Test bar 1

Last Good Version

No response

Screenshots

No response

Export String

!WA:2!TA56sTTXxaC04jTnAYKcoxjnxCPTPKK)K0qBsVM2)we7GtbdiBUK20AwPDT1gKL2UAfGPxdndLE5t8i4p3p5hbEcodtFc4rGNGURwHnjtOTFiFrE1rNZUNl)oN1gZLnIDcmh1imOUpTHNyehIanY7LTzwCw8MxyhhK7syEiBSq)q(9ZKjZ0zENRFRDDc5yc3k9JS(T8PRTgIJZvnm0xqzTfHUlt4r0WGZASrB(QtvVEery4On0J3kvqBoPHuPQTye7g8WywBTgvORrosh9A9zByyKXoYf5tY44kDxAdtoYvino622rcexy6uNgqJ8mTK)imxxWPnAiDIZDzE6YnAJjoX1RRoo(4fMy6IZoHLqD2OyoA01JyeF)s4iZDJIDiltcevKAtxTtTXYxPATkvZBx1kwU5omFulc3oa1KezANOQZ4eKVWRRPtZjstTRmDHjMyR4GuxWmnalGBqydu5BIrCsUIX((5M3Jki7rdeeEaYFoD2BPoOaxVq(0HYp4mwHYvlyVfkG2ePI8Bd9xCBckIurWjbneEVmCgRGWaYoyz8O0OMk64rezgdhTUsvvSdxZQjIgueUQ0a4AW)dgbUU83bEwjdrXTRsIe5sQnDOb1d56J2StDUm4LhmsGYSN2llQePoaNkJzxOq5DqXcP4PyjLjZ06zPazLpZ26x0CWrBlZA2jOqK5wre)6jbmmCBLJt1MB5hIWfDeseiqCA7MXssZ0swZCpnChtBxFuuKALvKeEulgnMI7u5Dlpzf6WF(mZ)OSUxDZB0oIH4lnpfl8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5uynd4BHVtcKW3d)a8J3b(j4XsmQWQR4emJW9w0IWpBap55Xp3e24jhd(L95gytDO(Rkqb(n431ub8hD5GSl)xl83d
commented

Forgot to mention this does not happen for text auras. I did not try any other types besides text and progress bar.

commented

Thanks for the minimal reproduction steps, that helped a lot. It's fixed now.