WeakAuras / WeakAuras2

World of Warcraft addon that provides a powerful framework to display customizable graphics on your screen.
https://weakauras.wtf
GNU General Public License v2.0
1.31k stars 318 forks source link

Weakauras not loading properly on a specific character. Only temporary fix is delete 'Cache'. #5510

Closed Goztrak closed 18 hours ago

Goztrak commented 1 week ago

Is there an existing issue for this?

Description

Hello,

I have a bug that appears when I am playing my Warlock specifically. As soon as I type /reload or relog my weakauras fail to load and typing /wa does not open up the weakaura window. The only temporary fix I have found is to exit game and delete the 'cache' folder but having to do this everytime I have to write /reload ingame is very frustrating. I have tried disabling and re-enabling addons but haven't found any corrupted addons. This bug only appears on my warlock specifically.

SavedVariables WeakAuras.zip

WeakAuras Version

WeakAuras 5.17.3.7-g22013e0 (Latest)

World of Warcraft Flavor

Season of Discovery (Era)

World of Warcraft Region

EU

Tested with only WeakAuras

I got this issue with only WeakAuras enabled

Lua Error

4x [string "local newActiveConditions = {};"]:30: attempt to index local 'state' (a nil value)
[string "local newActiveConditions = {};"]:30: in function `?'
[string "@WeakAuras/Conditions.lua"]:846: in function `RunConditions'
[string "@WeakAuras/WeakAuras.lua"]:4809: in function <WeakAuras/WeakAuras.lua:4774>
[string "@WeakAuras/WeakAuras.lua"]:4918: in function `UpdatedTriggerState'
[string "@WeakAuras/GenericTrigger.lua"]:1143: in function `ScanWithFakeEvent'
[string "@WeakAuras/GenericTrigger.lua"]:1476: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:2027: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:1808: in function <WeakAuras/WeakAuras.lua:1651>
[string "@WeakAuras/WeakAuras.lua"]:2004: in function `Resume'
[string "@WeakAuras/WeakAuras.lua"]:1293: in function <WeakAuras/WeakAuras.lua:1251>

[string "@WeakAuras/WeakAuras.lua"]:4482: in function `Immediate'
[string "@WeakAuras/WeakAuras.lua"]:1318: in function `Login'
[string "@WeakAuras/WeakAuras.lua"]:1393: in function <WeakAuras/WeakAuras.lua:1340>

Locals:
self = <table> {
 pools = <table> {
 }
 frame = Frame {
 }
 prios = <table> {
 }
 size = 1
}
name = "login"
func = <no value>
limit = 15000
defaultEstimate = 1000

--------------------------------------------------------------------------------

1x [string "local newActiveConditions = {};"]:30: attempt to index local 'state' (a nil value)
[string "local newActiveConditions = {};"]:30: in function `?'
[string "@WeakAuras/Conditions.lua"]:846: in function `RunConditions'
[string "@WeakAuras/WeakAuras.lua"]:4852: in function <WeakAuras/WeakAuras.lua:4817>
[string "@WeakAuras/WeakAuras.lua"]:4961: in function `UpdatedTriggerState'
[string "@WeakAuras/GenericTrigger.lua"]:1143: in function `ScanWithFakeEvent'
[string "@WeakAuras/GenericTrigger.lua"]:1476: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:2027: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:1808: in function <WeakAuras/WeakAuras.lua:1651>
[string "@WeakAuras/WeakAuras.lua"]:2004: in function `Resume'
[string "@WeakAuras/WeakAuras.lua"]:1293: in function <WeakAuras/WeakAuras.lua:1251>

[string "@WeakAuras/WeakAuras.lua"]:4525: in function `Immediate'
[string "@WeakAuras/WeakAuras.lua"]:1318: in function `Login'
[string "@WeakAuras/WeakAuras.lua"]:1393: in function <WeakAuras/WeakAuras.lua:1340>

Locals:
self = <table> {
 pools = <table> {
 }
 frame = Frame {
 }
 prios = <table> {
 }
 size = 1
}
name = "login"
func = <no value>
limit = 15000
defaultEstimate = 1000

------------------------------------------------------------------------------------

7x ...Blizzard_ChatFrameBase/Classic/FloatingChatFrame.lua:727: attempt to index local 'self' (a nil value)
[string "@Blizzard_ChatFrameBase/Classic/FloatingChatFrame.lua"]:727: in function <...Blizzard_ChatFrameBase/Classic/FloatingChatFrame.lua:722>
[string "=[C]"]: in function `FCF_SetChatWindowFontSize'
[string "@Prat-3.0-3.9.59/modules/Font.lua"]:765: in function `SetFontSize'
[string "@Prat-3.0-3.9.59/modules/Font.lua"]:753: in function `ConfigureAllChatFrames'
[string "@Prat-3.0-3.9.59/modules/ChatFrames.lua"]:636: in function <Prat-3.0/modules/ChatFrames.lua:630>
[string "=(tail call)"]: ?
[string "=[C]"]: in function `FloatingChatFrame_UpdateBackgroundAnchors'
[string "@Blizzard_CombatLog/Classic/Blizzard_CombatLog.lua"]:3302: in function <...ns/Blizzard_CombatLog/Classic/Blizzard_CombatLog.lua:3288>
[string "@Blizzard_CombatLog/Classic/Blizzard_CombatLog.lua"]:3355: in function `FCF_DockUpdate'
[string "@Blizzard_UIParentPanelManager/Classic/UIParentPanelManager_Shared.lua"]:1035: in function `UIParentManageFramePositions'
[string "@Blizzard_UIParentPanelManager/Classic/UIParentPanelManager_Shared.lua"]:325: in function <...PanelManager/Classic/UIParentPanelManager_Shared.lua:312>
[string "=[C]"]: in function `SetAttribute'
[string "@Blizzard_UIParentPanelManager/Classic/UIParentPanelManager_Shared.lua"]:1045: in function `UIParent_ManageFramePositions'
[string "@Blizzard_BuffFrame/Classic/BuffFrame.lua"]:364: in function `BuffFrame_UpdateAllBuffAnchors'
[string "@Blizzard_BuffFrame/Classic/BuffFrame.lua"]:105: in function `BuffFrame_Update'
[string "@Blizzard_SettingsDefinitions_Frame/Classic/InterfaceOverrides.lua"]:103: in function <...ingsDefinitions_Frame/Classic/InterfaceOverrides.lua:102>
[string "=[C]"]: ?
[string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:144: in function <...eBlizzard_SharedXMLBase/CallbackRegistry.lua:143>
[string "=[C]"]: ?
[string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:147: in function `TriggerEvent'
[string "@Blizzard_SharedXMLBase/CvarUtil.lua"]:114: in function <Blizzard_SharedXMLBase/CvarUtil.lua:106>

Locals:
self = nil
chatFrame = ChatFrame3 {
 isLayoutDirty = true
 oldestFadingLineTimestamp = 119912.113000
 tellTimer = 119908.890000
 isDisplayDirty = true
 shouldFadeAfterInactivity = true
 buttonSide = "left"
 textIsCopyable = false
 overrideFadeTimestamp = 119912.113000
 fontStringPool = <table> {
 }
 isScrollingMessageFrame = true
 name = "Voice"
 isUninteractable = false
 minimizeButton = ChatFrame3MinimizeButton {
 }
 buttonFrame = ChatFrame3ButtonFrame {
 }
 alternativeDefaultLanguage = "Common"
 isInitialized = 1
 hasOwnFontObject = true
 allowScroll = true
 oldAlpha = 0
 channelList = <table> {
 }
 FontStringContainer = Frame {
 }
 messageTypeList = <table> {
 }
 flashTimer = 0
 timeVisibleSecs = 120
 fontObject = table: 000002761E62C4E0 {
 }
 zoneChannelList = <table> {
 }
 insertMode = 2
 defaultLanguage = "Common"
 Tab = ChatFrame3Tab {
 }
 ResizeButton = ChatFrame3ResizeButton {
 }
 fadeDurationSecs = 3
 onDisplayRefreshedCallbacks = <table> {
 }
 visibleLines = <table> {
 }
 scrollOffset = 0
 historyBuffer = <table> {
 }
 clickAnywhereButton = ChatFrame3ClickAnywhereButton {
 }
 ScrollToBottomButton = Button {
 }
 editBox = ChatFrame3EditBox {
 }
 isLocked = true
 Background = ChatFrame3Background {
 }
}
fontSize = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'self' (a nil value)"

---------------------------------------------------------------------------------

20x [string "local newActiveConditions = {};"]:30: attempt to index local 'state' (a nil value)
[string "local newActiveConditions = {};"]:30: in function `?'
[string "@WeakAuras/Conditions.lua"]:846: in function `RunConditions'
[string "@WeakAuras/WeakAuras.lua"]:4809: in function <WeakAuras/WeakAuras.lua:4774>
[string "@WeakAuras/WeakAuras.lua"]:4918: in function `UpdatedTriggerState'
[string "@WeakAuras/GenericTrigger.lua"]:1143: in function `ScanWithFakeEvent'
[string "@WeakAuras/GenericTrigger.lua"]:1476: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:2027: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:1808: in function <WeakAuras/WeakAuras.lua:1651>
[string "@WeakAuras/WeakAuras.lua"]:2004: in function `Resume'
[string "@WeakAurasOptions/OptionsFrames/OptionsFrame.lua"]:171: in function <...dOns/WeakAurasOptions/OptionsFrames/OptionsFrame.lua:152>
[string "=[C]"]: in function `Hide'
[string "@Blizzard_UIParentPanelManager/Classic/UIParentPanelManager_Shared.lua"]:1246: in function <...PanelManager/Classic/UIParentPanelManager_Shared.lua:1241>
[string "@BigDebuffs/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua"]:1849: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:1848>
[string "=[C]"]: in function `securecall'
[string "@Blizzard_UIParentPanelManager/Classic/UIParentPanelManager_Shared.lua"]:1284: in function `CloseWindows'
[string "@Blizzard_UIParentPanelManager/Classic/UIParentPanelManager_Shared.lua"]:1309: in function <...PanelManager/Classic/UIParentPanelManager_Shared.lua:1299>
[string "=[C]"]: in function `securecall'
[string "@Blizzard_UIParent/Vanilla/UIParent.lua"]:1678: in function `ToggleGameMenu'
[string "TOGGLEGAMEMENU"]:1: in function <[string "TOGGLEGAMEMENU"]:1>

Locals:
region = Frame {
 iconSource = -1
 xOffset = 0
 yOffset = 0
 anchorPoint = "BOTTOMLEFT"
 inner = Frame {
 }
 keepAspectRatio = true
 toShow = false
 color_a = 1
 cloneId = ""
 progressType = "timed"
 regionType = "icon"
 minProgress = 0
 relativePoint = "BOTTOMLEFT"
 maxProgress = 0
 zoom = 0.300000
 scalex = 1
 color_b = 1
 alpha = 1
 color_r = 1
 button = Button {
 }
 values = <table> {
 }
 duration = 0
 expirationTime = 0
 cooldownSwipe = true
 cooldownEdge = false
 color_g = 1
 yOffsetRelative = 0
 progressSource = <table> {
 }
 subRegions = <table> {
 }
 height = 35
 startFormatters = <table> {
 }
 inverseDirection = true
 currentCoord = <table> {
 }
 frameId = "scroll_of_strength_iii"
 texXOffset = 0
 xOffsetAnim = 0
 yOffsetAnim = 0
 subRegionEvents = <table> {
 }
 icon = Texture {
 }
 scaley = 1
 relativeTo = Frame {
 }
 finishFormatters = <table> {
 }
 id = "Scroll of Strength III"
 width = 45
 xOffsetRelative = 0
 cooldown = WeakAurasCooldownscroll_of_strength_iii {
 }
 texYOffset = 0
}
hideRegion = false
id = "Scroll of Strength III"
cloneId = ""
state = nil
activatedConditions = <table> {
}
recheckTime = nil
now = 120195.973000
(*temporary) = 120195.973000
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'state' (a nil value)"
newActiveConditions = <table> {
}
nextTime = 119877.979000
uid = "ccSWuPg)8bp"
propertyChanges = <table> {
}

Reproduction Steps

1) Log in with a cache folder already created. 2) Log my warlock. 3) Bug appears.

Last Good Version

WeakAuras 5.17.3-7-g22013e0

Screenshots

Typing /wa does not open up the weakaura window but you can clearly see the "pet missing" WA loads up in the top screen.

WowClassic_DF7OdQISWq

Export String

No response

Bisector Report

No response

InfusOnWoW commented 18 hours ago

I couldn't reproduce the issue, though the aura name is in the debug trace. It is "scroll_of_strength_iii" which is part of the Merfin package you have installed.

That package creates lots of SecureActionButtons, which is something we strongly advise against and thus we cannot help you with your problem.