WeakAuras

WeakAuras

200M Downloads

Unable to open options after restarting

phoenix7700 opened this issue ยท 1 comments

commented

Description

Expected to be able to open options but wasn't able to open options.

WeakAuras Version

WeakAuras 5.4.3

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

13x WeakAuras/WeakAuras.lua:3253: attempt to index local 'state' (a boolean value)
[string "@WeakAuras/WeakAuras.lua"]:3253: in function `SetAllStatesHidden'
[string "@WeakAuras/WeakAuras.lua"]:1339: in function `Pause'
[string "@WeakAurasOptions/WeakAurasOptions.lua"]:773: in function `ShowOptions'
[string "@WeakAurasOptions/WeakAurasOptions.lua"]:612: in function `ToggleOptions'
[string "@WeakAuras/WeakAuras.lua"]:155: in function `OpenOptions'
[string "@WeakAuras/WeakAuras.lua"]:197: in function `?'
[string "@FrameXML/ChatFrame.lua"]:5242: in function <FrameXML/ChatFrame.lua:5188>
[string "=[C]"]: in function `ChatEdit_ParseText'
[string "@FrameXML/ChatFrame.lua"]:4900: in function `ChatEdit_SendText'
[string "@FrameXML/ChatFrame.lua"]:4936: in function `ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:133_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:133_OnEnterPressed"]:1>

Locals:
id = "Spec Icon on Unit Frames"
triggernum = 2
triggerState = <table> {
 show = false
 player = <table> {
 }
 changed = true
}
changed = false
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 show = false
 player = <table> {
 }
 changed = true
}
(for control) = "show"
_ = "show"
state = false
(*temporary) = "show"
(*temporary) = "attempt to index local 'state' (a boolean value)"
WeakAuras = <table> {
 IsSpellKnownForLoad = <function> defined @WeakAuras/Prototypes.lua:967
 normalWidth = 1.300000
 ClearAndUpdateOptions = <function> defined @WeakAurasOptions/WeakAurasOptions.lua:846
 StopMotion = <table> {
 }
 GetRuneCooldown = <function> defined @WeakAuras/GenericTrigger.lua:2275
 GetUnitFrame = <function> defined @MRT/libs/LibGetFrame-1.0/LibGetFrame-1.0.lua:486
 CheckRange = <function> defined @WeakAuras/Prototypes.lua:35
 SetMoverSizer = <function> defined @WeakAurasOptions/WeakAurasOptions.lua:1615
 ShowOverlayGlow = <function> defined @MRT/libs/LibCustomGlow-1.0/LibCustomGlow-1.0.lua:612
 RegisterItemCountWatch = <function> defined @WeakAuras/GenericTrigger.lua:3923
 CheckForItemBonusId = <function> defined @WeakAuras/GenericTrigger.lua:4583
 UnitCastingInfo = <function> defined =[C]:-1
 UnitNameWithRealm = <function> defined @WeakAuras/WeakAuras.lua:5698
 InstanceTypeRaw = <function> defined @WeakAuras/WeakAuras.lua:1518
 RealTimeProfilingWindow = Frame {
 }
 GetSpellCharges = <function> defined @WeakAuras/GenericTrigger.lua:2314
 SafeToNumber = <function> defined @WeakAuras/WeakAuras.lua:5576
 GetAllDBMTimers = <function> defined @WeakAuras/GenericTrigger.lua:3233
 ToggleProfile = <function> defined @WeakAuras/Profiling.lua:384
 IsAuraActive = <function> defined @WeakAuras/WeakAuras.lua:4915
 Rename = <function> defined @WeakAuras/WeakAuras.lua:2050
 UnitStagger = <function> defined @WeakAuras/WeakAuras.lua:5853
 EnsureString = <function> defined @WeakAuras/WeakAuras.lua:4019
 WatchForCastLatency = <function> defined @WeakAuras/GenericTrigger.lua:3788
 TenchInit = <function> defined @WeakAuras/GenericTrigger.lua:3656
 raidUnits = <table> {
 }
 StopProfile = <function> defined @WeakAuras/Profiling.lua:356
 GetMoverSizerId = <function> defined @WeakAurasOptions/WeakAurasOptions.lua:1629
 GetGCDInfo = <function> defined @WeakAuras/GenericTrigger.lua:2338
 GcdSpellName = <function> defined @WeakAuras/GenericTrigger.lua:2350
 OpenOptions = <function> defined @WeakAuras/WeakAuras.lua:151
 GetUniqueCloneId = <function> defined @WeakAuras/GenericTrigger.lua:3977
 WatchUnitChange = <function> defined @WeakAuras/GenericTrigger.lua:2913
 EJIcons = <table> {
 }
 GetSpellCooldown = <function> defined @WeakAuras/GenericTrigger.lua:2283
 SetModel = <function> defined @WeakAuras/WeakAuras.lua:5538
 IsWrathOrRetail = <function> defined @WeakAuras/Init.lua:341
 GetAuraTooltipInfo = <function> defined @WeakAuras/WeakAuras.lua:3889
 SpellSchool = <function> defined @WeakAuras/Prototypes.lua:181
 AddCompanionData = <function> defined @WeakAuras/WeakAuras.lua:914
 gcdDuration = <function> defined @WeakAuras/GenericTrigger.lua:2346
 GetHSVTransition = <function> defined @WeakAuras/Prototypes.lua:259
 SpecRolePositionForUnit = <function> defined @WeakAuras/LibSpecializationWrapper.lua:102
 defaultFont = "Friz Quadrata TT"
 HideOverlayGlow = <function> defined @MRT/libs/LibCustomGlow-1.0/LibCustomGlow-1.0.lua:696
 UnitPowerDisplayMod = <function> defined @WeakAuras/Pro

Reproduction Steps

1.Write bad code
2.Close the game
3.Log back in
4.Unable to open options

WeakAuras.lua.zip

Last Good Version

No response

Screenshots

No response

Export String

No response

commented

That's a won't fix. We can't guard against a trigger randomly rewritting the states tables of another trigger in a broken way.