frozn / TipTac

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

TargetFrame SetPoint Lua Errors #235

Closed Kolmarwow closed 1 year ago

Kolmarwow commented 1 year ago

Bug description: A bunch of SetPoint Lua Errors related to Blizzard's TargetFrame show up when you mouse over it under certain conditions. Possibly other frames affected too but I've only been able to consistently reproduce this error with TargetFrame.

Steps to reproduce: This is assuming you only have TipTac & BugSack enabled.

  1. Right Click on TargetFrame -> Click on "Unlock Frame" -> Move it away from the default spot and click on "Lock Frame".
  2. Go into TipTac Options -> Anchors and set Frame Unit Type to Parent Anchor.
  3. Go into combat with a random mob and hover mouse over TargetFrame.
  4. Tooltip bugs out and BugSack starts showing SetPoint errors.

Version:

Error Log ``` 3x FrameXML/GameTooltip.lua:110: Action[SetPoint] failed because[SetPoint would result in anchor family connection]: attempted from: GameTooltip:SetPoint. [string "=[C]"]: in function `SetPoint' [string "@FrameXML/GameTooltip.lua"]:110: in function [string "=[C]"]: in function `GameTooltip_SetDefaultAnchor' [string "@FrameXML/UnitFrame.lua"]:304: in function `UpdateTooltip' [string "@FrameXML/GameTooltip.lua"]:444: in function [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? Locals: (*temporary) = GameTooltip { 0 = ttSetIconTextureAndText = defined @TipTacItemRef/ttItemRef.lua:309 SetSpellBookItem = defined =[C]:-1 OnBackdropLoaded = defined @SharedXML/Backdrop.lua:152 default = 1 GetBackdropColor = defined @SharedXML/Backdrop.lua:390 SetHyperlink = defined =[C]:-1 SetUnit = defined =[C]:-1 hasMoney = 1 TopLeftCorner = Texture { } RightEdge = Texture { } SetOwner = defined =[C]:-1 SetBackdropBorderColor = defined @SharedXML/Backdrop.lua:422 ApplyBackdrop = defined @SharedXML/Backdrop.lua:294 SetBackdrop = defined @SharedXML/Backdrop.lua:329 ClearBackdrop = defined @SharedXML/Backdrop.lua:282 TopOverlay = Texture { } GetBackdropBorderColor = defined @SharedXML/Backdrop.lua:409 GetBackdrop = defined @SharedXML/Backdrop.lua:347 SetUnitDebuff = defined =[C]:-1 SetQuestItem = defined =[C]:-1 BottomLeftCorner = Texture { } SetBorderBlendMode = defined @SharedXML/Backdrop.lua:266 FadeOut = defined =[C]:-1 numMoneyFrames = 1 BottomEdge = Texture { } SetPetAction = defined =[C]:-1 comparing = false SetQuestCurrency = defined =[C]:-1 shoppingTooltips = { } SetQuestLogCurrency = defined =[C]:-1 SetQuestLogItem = defined =[C]:-1 Center = Texture { } OnBackdropSizeChanged = defined @SharedXML/Backdrop.lua:182 HasBackdropInfo = defined @SharedXML/Backdrop.lua:278 backdropInfo =
{ } BottomOverlay = Texture { } SetAction = defined =[C]:-1 ttIcon = Texture { } GetEdgeSize = defined @SharedXML/Backdrop.lua:188 NineSlice = Frame { } SetupTextureCoordinates = defined @SharedXML/Backdrop.lua:214 TopEdge = Texture { } ttCount = FontString { } TooltipBackdropOnLoad = defined @SharedXML/SharedTooltipTemplates.lua:172 SetUnitAura = defined =[C]:-1 TopRightCorner = Texture { } updateTooltip = 0.200000 SetUnitBuff = defined =[C]:-1 needsReset = true BottomRightCorner = Texture { } SetBackdropColor = defined @SharedXML/Backdrop.lua:399 LeftEdge = Texture { } SetupPieceVisuals = defined @SharedXML/Backdrop.lua:246 } (*temporary) = "BOTTOMRIGHT" (*temporary) = "UIParent" (*temporary) = "BOTTOMRIGHT" (*temporary) = -13 (*temporary) = 70 ```
frozn commented 1 year ago

Thanks for reporting and describing the steps to reproduce this! Without this information it would probably be impossible to solve this. 👍

Indeed the error message regarding SetPoint() only pops up for parent anchored tooltips if the target frame has been moved away and only in combat. Unbelievable... 😄

I have been able to fix this. Will be included in the next release.