frozn / TipTac

WoW AddOn TipTac Reborn
GNU General Public License v3.0
108 stars 20 forks source link

ttStyle error (script ran too long) #245

Open JoeyJFranklin opened 1 year ago

JoeyJFranklin commented 1 year ago

Describe the bug I get an error about a script running too long but the addon continues to work correctly.

To Reproduce I'm not sure how to reproduce this, I've only ever gotten it in dungeons while in combat.

Expected behavior

Screenshots

TipTac Reborn (please complete the following information):

WoW (please complete the following information):

Additional context 1x Interface/AddOns/TipTac/ttStyle.lua:428: script ran too long [string "@Interface/AddOns/TipTac/ttStyle.lua"]:428: in function ModifyUnitTooltip' [string "@Interface/AddOns/TipTac/ttStyle.lua"]:614: in function?' [string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0-11/LibFroznFunctions-1.0.lua"]:885: in function FireGroupEvent' [string "@Interface/AddOns/TipTac/ttCore.lua"]:2612: in functionSetUnitAppearanceToTip' [string "@Interface/AddOns/TipTac/ttCore.lua"]:2715: in function ?' [string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0-11/LibFroznFunctions-1.0.lua"]:885: in functionFireGroupEvent' [string "@Interface/AddOns/TipTac/ttCore.lua"]:1472: in function `SetCurrentDisplayParams' [string "@Interface/AddOns/TipTac/ttCore.lua"]:1359: in function <Interface/AddOns/TipTac/ttCore.lua:1358> [string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0-11/LibFroznFunctions-1.0.lua"]:209: in function <...libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:207>

[string "=[C]"]: in function securecallfunction' [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:162: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:157> [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:182: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:178> [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:218: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:208> [string "=[C]"]: in functionSetAttribute' [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:243: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:236> [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:389: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:339> [string "=[C]"]: in function securecallfunction' [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:336: in functionProcessInfo' [string "@Interface/FrameXML/GameTooltip.lua"]:1092: in function `SetWorldCursor' [string "@Interface/FrameXML/UIParent.lua"]:1498: in function <Interface/FrameXML/UIParent.lua:1421>

Locals: self =

{ GenerateTargetLines = defined @Interface/AddOns/TipTac/ttStyle.lua:181 OnTipResetCurrentDisplayParams = defined @Interface/AddOns/TipTac/ttStyle.lua:617 OnConfigLoaded = defined @Interface/AddOns/TipTac/ttStyle.lua:586 GenerateNpcLines = defined @Interface/AddOns/TipTac/ttStyle.lua:338 GeneratePetLines = defined @Interface/AddOns/TipTac/ttStyle.lua:306 OnTipSetCurrentDisplayParams = defined @Interface/AddOns/TipTac/ttStyle.lua:592 GeneratePlayerLines = defined @Interface/AddOns/TipTac/ttStyle.lua:239 ModifyUnitTooltip = defined @Interface/AddOns/TipTac/ttStyle.lua:360 GenerateTargetedByLines = defined @Interface/AddOns/TipTac/ttStyle.lua:207 OnTipStyle = defined @Interface/AddOns/TipTac/ttStyle.lua:599 RemoveUnwantedLinesFromTip = defined @Interface/AddOns/TipTac/ttStyle.lua:147 } tip = GameTooltip { 0 = ItemTooltip = Frame { } SetHyperlink = defined =[C]:-1 SetAzeriteEssence = defined =[C]:-1 SetVoidDepositItem = defined =[C]:-1 SetTraitEntry = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:539 ClearBackdrop = defined =[C]:-1 SetLootCurrency = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:539 SetWorldCursor = defined @Interface/FrameXML/GameTooltip.lua:1074 SetLootItem = defined =[C]:-1 GetSpell = defined @Interface/FrameXML/GameTooltip.lua:1112 SetQuestLogSpecialItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:539 SetRecipeReagentItem = defined @Interface/AddOns/Altoholic/Services/Tooltip.lua:621 SetMerchantItem = defined =[C]:-1 BottomOverlay = Texture { } SetSocketedRelic = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:539 ProcessInfo = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:335 NineSlice = Frame { } SetInventoryItem = defined =[C]:-1 TopEdge = Texture { } SetUnitDebuffByAuraInstanceID = defined =[C]:-1 GetProcessingTooltipInfo = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:488 SetBackdropColor = defined =[C]:-1 LeftEdge = Texture { } AddLineDataText = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:429 AppendInfo = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:525 SetSpellBookItem = defined =[C]:-1 textLeft1Font = "GameTooltipHeaderText" AppendInfoWithSpacer = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:531 SetShapeshift = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:539 SetArtifactPowerByID = defined =[C]:-1 textRight2Font = "GameTooltipText" TopOverlay = Texture { } SetSocketedItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:539 SetUnitDebuff = defined =[C]:-1 SetMountBySpellID = defined =[C]:-1 SetBorderBlendMode = defined @Interface/SharedXML/Backdrop.lua:266 SetToyByItemID = defined =[C]:-1 processingInfo =
{ } infoList =
{ } TextLeft1 = GameTooltipTextLeft1 { } GetTooltipData = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:505 IsTooltipType = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:509 OnBackdropSizeChanged = defined @Interface/SharedXML/Backdrop.lua:182 ClearHandlerInfo = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444 SetArtifactItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:539 StatusBar = GameTooltipStatusBar { } SetPossession = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:539 SetUnitAura = defined =[C]:-1 SetUnitBuffByAuraInstanceID = defined =[C]:-1 SetConduit = defined =[C]:-1 SetupPieceVisuals = d

frozn commented 1 year ago

Thanks for reporting this! 👍

Unfortunately I don't have a clue what to do in this case. I can't see a problem with the code and it seems it isn't some kind of infinite loop.

I suggest to leave this bug open for a while and see, if this error pops up again somewhere... 🤔

JoeyJFranklin commented 11 months ago

Been a while /wave :) Since I've posted this I still get the error but I also get the "script ran too long" error from Can-I-Mogit, ArkInventory, and BigWigs so I went looking for open issues on GitHub with that as the error and found this https://github.com/BigWigsMods/LittleWigs/issues/882#issuecomment-1427121399 thought you'd be interested in knowing 👍

frozn commented 11 months ago

Interesting, thanks for sharing! 👍

It seems that other addon authors don't have a clue too how to fix this or what caused this error.