seblindfors / ConsolePort

ConsolePort - Game Controller Addon for World of Warcraft
Artistic License 2.0
160 stars 38 forks source link

(Retail) Menu Addon Lua Error #69

Open nomadamo opened 1 year ago

nomadamo commented 1 year ago

This occurs with Interface Cursor enabled, and then opening the menu via esc/bound button and mousing over any object with a tooltip.

Message: ...nterface/AddOns/ConsolePort/Controller/UI/UINode.lua:412: script ran too long Time: Thu Jan 26 11:02:54 2023 Count: 1 Stack: ...nterface/AddOns/ConsolePort/Controller/UI/UINode.lua:412: script ran too long [string "@Interface/AddOns/ConsolePort/Controller/UI/UINode.lua"]:412: in function <...nterface/AddOns/ConsolePort/Controller/UI/UINode.lua:410> [string "@Interface/AddOns/ConsolePort/Controller/UI/UINode.lua"]:265: in function <...nterface/AddOns/ConsolePort/Controller/UI/UINode.lua:258> [string "@Interface/AddOns/ConsolePort/Controller/UI/UINode.lua"]:135: in function <...nterface/AddOns/ConsolePort/Controller/UI/UINode.lua:132> [string "@Interface/AddOns/ConsolePort/View/Cursors/Interface.lua"]:140: in functionScanUI' [string "@Interface/AddOns/ConsolePort/View/Cursors/Interface.lua"]:148: in function <...erface/AddOns/ConsolePort/View/Cursors/Interface.lua:146>

[string "@Interface/AddOns/ConsolePort/Controller/UI/UIStack.lua"]:171: in function `UpdateFrames' [string "@Interface/AddOns/ConsolePort/Controller/UI/UIStack.lua"]:48: in function <...terface/AddOns/ConsolePort/Controller/UI/UIStack.lua:44>

Locals: node = SpellbookMicroButton { 0 = OnEnter = defined @Interface/FrameXML/MainMenuBarMicroButtons.lua:422 FlashBorder = Texture { } QuickKeybindButtonOnShow = defined @Interface/FrameXML/QuickKeybind.lua:4 EvaluateAlertVisibility = defined @Interface/FrameXML/MainMenuBarMicroButtons.lua:529 QuickKeybindButtonOnEnter = defined @Interface/FrameXML/QuickKeybind.lua:22 DoModeChange = defined @Interface/FrameXML/QuickKeybind.lua:95 QuickKeybindButtonOnUpdate = defined @Interface/FrameXML/QuickKeybind.lua:75 tooltipText = "Spellbook & Professions (P)" QuickKeybindButtonOnLeave = defined @Interface/FrameXML/QuickKeybind.lua:33 FlashContent = Texture { } OnClick = defined @Interface/FrameXML/MainMenuBarMicroButtons.lua:506 QuickKeybindButtonSetTooltip = defined @Interface/FrameXML/QuickKeybind.lua:52 OnLoad = defined @Interface/FrameXML/MainMenuBarMicroButtons.lua:499 QuickKeybindHighlightTexture = Texture { } commandName = "TOGGLESPELLBOOK" OnEvent = defined @Interface/FrameXML/MainMenuBarMicroButtons.lua:519 oldSpecID = 1 layoutIndex = 2 UpdateMouseWheelHandler = defined @Interface/FrameXML/QuickKeybind.lua:86 QuickKeybindButtonOnHide = defined @Interface/FrameXML/QuickKeybind.lua:11 QuickKeybindButtonOnMouseWheel = defined @Interface/FrameXML/QuickKeybind.lua:46 QuickKeybindButtonOnClick = defined @Interface/FrameXML/QuickKeybind.lua:16 } rect = ActionButton11 { 0 = OnEnter = defined @Interface/FrameXML/ActionButton.lua:1180 FlyoutArrowContainer = Frame { } NewActionTexture = Texture { } RightDivider = Frame { } showButtonArt = true DoModeChange = defined @Interface/FrameXML/QuickKeybind.lua:95 UpdateButtonArt = defined @Interface/FrameXML/ActionButton.lua:1225 QuickKeybindButtonOnLeave = defined @Interface/FrameXML/QuickKeybind.lua:33 UpdateAction = defined @Interface/FrameXML/ActionButton.lua:337 OnReceiveDrag = defined @Interface/FrameXML/ActionButton.lua:1174 icon = ActionButton11Icon { } SlotArt = Texture { } AutoCastable = Texture { } UpdateState = defined @Interface/FrameXML/ActionButton.lua:474 UpdatePressAndHoldAction = defined @Interface/FrameXML/ActionButton.lua:320 HotKey = ActionButton11HotKey { } HighlightTexture = Texture { } UpdateOverlayGlow = defined @Interface/FrameXML/ActionButton.lua:687 GetPagedID = defined @Interface/FrameXML/ActionButton.lua:985 Update = defined @Interface/FrameXML/ActionButton.lua:353 ClearProfessionQuality = defined @Interface/FrameXML/ActionButto`

seblindfors commented 1 year ago

Not sure how to reproduce. How did you enable the interface cursor while having the game menu open?

nomadamo commented 1 year ago

Apparently it's only happening on one of my toons, and since I disabled all other addons except CP and CP Menu and it still does it, then I'm guessing it's WTF related. Thanks for the response, feel free to close.

seblindfors commented 1 year ago

I'm still curious what's causing it. The stack trace indicates some kind of infinite loop in the UI tree scanner, which I think can only happen if you have a cyclical dependency, or if the amount of frames it's scanning is numbered in the thousands.

nomadamo commented 1 year ago

It only happens when I hit escape and mouse over any object (perhaps just moving the mouse). Opening the menu with the gamepad doesn't trigger this.

nomadamo commented 1 year ago

Disabling Unlimited Navigation keeps this from happening.