WeakAuras

WeakAuras

206M Downloads

Lua error while updating custom coded aura

mrbuds opened this issue ยท 3 comments

commented

Description

Below error happened while updating to version 13 from version ?? of https://wago.io/DFEventTracker

WeakAuras Version

dev

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

3x WeakAuras/RegionTypes/AuraBar.lua:1132: attempt to index local 'state' (a nil value)
[string "@WeakAuras/RegionTypes/AuraBar.lua"]:1132: in function `TimerTick'
[string "@WeakAuras/RegionTypes/RegionPrototype.lua"]:431: in function <...aceWeakAuras/RegionTypes/RegionPrototype.lua:427>
[string "@WeakAuras/RegionTypes/RegionPrototype.lua"]:443: in function <...aceWeakAuras/RegionTypes/RegionPrototype.lua:442>

Locals:
self = Frame {
 0 = <userdata>
 iconSource = -1
 AnchorSubRegion = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:741
 Scale = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1357
 desaturateIcon = false
 Expand = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:909
 UpdateMinMax = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1254
 anchorPoint = "CENTER"
 triggerProvidesTimer = true
 iconFrame = Frame {
 }
 icon = Texture {
 }
 SetOffset = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:319
 icon_color = <table> {
 }
 enableGradient = false
 Collapse = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:887
 overlays = <table> {
 }
 scalex = 1
 SendChat = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:267
 SetInverse = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:866
 toShow = true
 xOffset = 0
 SetTime = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:848
 yOffset = -25
 gradientOrientation = "HORIZONTAL"
 SetOrientation = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:882
 icon_side = "LEFT"
 bar = Frame {
 }
 SoundRepeatStop = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:195
 OptionsClosed = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:753
 subRegionEvents = <table> {
 }
 SetRegionHeight = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:827
 SetSparkHeight = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:817
 SetBarColor2 = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1019
 Update = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1299
 flipX = false
 regionType = "aurabar"
 GetColor = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1045
 GetRegionAlpha = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:388
 relativePoint = "CENTER"
 TimerTick = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1130
 iconVisible = true
 SoundPlay = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:249
 currentMin = 0
 GetMinMax = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1295
 zoom = 0
 SetIconColor = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:803
 UpdateIcon = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:940
 color_b = 0.035294
 UpdateRegionHasTimerTick = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:410
 alpha = 1
 color_r = 0.423529
 SetXOffset = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:328
 currentMax = 960
 SetRegionWidth = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:823
 Color = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1031
 RealClearAllPoints = <function> defined =[C]:-1
 displayIcon = 236469
 cloneId = ""
 RunCode = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:274
 GetYOffset = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:340
 SetAnimAlpha = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:392
 SetIcon = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:925
 SetOverlayColor = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:956
 ClickToPick = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:758
 SetYOffsetRelative = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:357
 ReOrient = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:965
 effectiveOrientation = "HORIZONTAL"
 SetGradientEnabled = <function> defined @WeakAuras/RegionTypes/AuraBar.lua:1027
 scaley = 1
 v

Reproduction Steps

Update from old version (maybe installing fresh does it too?)

Last Good Version

No response

Screenshots

No response

Export String

No response

commented

I can't get to reproduce the error, but additional information

  • It was from version 8 to version 13
  • On version 8 i changed anchor to WorldMapFrame

World map was most probably not shown when updating, i'v been testing after /reload with various update options ticked but could not repro

commented

I can't reproduce with any previous version. Can you check your backups to figure out what old version you had installed?

commented

Hmm, couldn't reproduce with that either. I had a look at the code around that, and couldn't see any way that can happen.

The stack looks like there's a TimerTick for a regin that somehow has no state. But every code path that I look at, e.g. Collapse should unset the OnUpdate script. So, no idea.