Kiatra / ChocolateBar

ChocolateBar is a World of Warcraft addons to display plugins in a bar on top or bottom of your screen
https://www.wowace.com/projects/chocolatebar
18 stars 9 forks source link

[Plater] TBC issues and LUA errors when moving Plugins/Displays on a bar everything disappears. #14

Closed PsiloCA closed 1 year ago

PsiloCA commented 3 years ago

Here are a few LUA errors I have encountered recently in the Classic version of TBC. When trying to move any of the plugins displays on the bar the whole thing seems to crash and all the bars vanish and I receive these lua errors. I can only get the bars back after doing a UI reload. been a big fan of this app and its customization for many many years now.

here are the 2 lua errors taken from the game.

LUA error #1

6x ChocolateBar\Chocolate.lua:325: Action[FrameMeasurement] failed because[Can't measure restricted regions]: attempted from: NamePlate1PlaterUnitFrame:GetPoint(). [string "=[C]"]: in function `GetPoint' [string "@ChocolateBar\Chocolate.lua"]:325: in function <ChocolateBar\Chocolate.lua:307>

Locals: (*temporary) = NamePlate1PlaterUnitFrame { UpdateUnitFrame = defined @Details\Libs\DF\panel.lua:9179 UnitFrameEvents =

{ } Plater = true ActorType = "friendlyplayer" InExecuteRange = false namePlateThreatOffTankIsTanking = false OnBackdropLoaded = defined @SharedXML\Backdrop.lua:239 namePlateUnitReaction = 5 castBar = NamePlate1PlaterUnitFrameCastBar { } GetBackdropColor = defined @SharedXML\Backdrop.lua:477 IsProtected = defined @Plater\Plater.lua:9790 SetUnit = defined @Details\Libs\DF\panel.lua:8956 namePlateUnitGUID = "Player-4373-01C90016" Top3DFrame = NamePlate13DFrame { } CustomIndicators =
{ } namePlateUnitNameLower = "stimmyme" TargetTextures4Sides =
{ } targetOverlay = { } CanCheckAggro = false ClearBackdrop = defined @SharedXML\Backdrop.lua:369 PlaterRaidTargetFrame = { } ScriptGetContainer = defined @Plater\Plater.lua:9543 PlayerCannotAttack = true SetAlphaTo = defined @Plater\Plater.lua:7667 ActorNameSpecial = { } UNIT_EXITED_VEHICLE = defined @Details\Libs\DF\panel.lua:9214 UNIT_CONNECTION = defined @Details\Libs\DF\panel.lua:9224 aggroGlowUpper = { } OnHideWidget = defined @Plater\Plater.lua:9714 UpdateHealthColor = defined @Details\Libs\DF\panel.lua:9039 0 = OnTick = defined @Details\Libs\DF\panel.lua:8929 isNamePlate = true unit = "nameplate1" HasHideHookRegistered = true UnregisterEvents = defined @Details\Libs\DF\panel.lua:8917 SetupTextureCoordinates = defined @SharedXML\Backdrop.lua:301 QuestInfo =
{ } HasBackdropInfo = defined @SharedXML\Backdrop.lua:365 WidgetType = "unitFrame" IsTarget = false unitName = { } isPlayer = true GetEdgeSize = defined @SharedXML\Backdrop.lua:275 RegisterEvents = defined @Details\Libs\DF\panel.lua:8891 TargetNeonDown = { } powerBar = NamePlate1PlaterUnitFramePowerBar { } IsUnitNameplate = true ExtraIconFrame = NamePlate1PlaterUnitFrameExtraIconRow { } ScriptRunInitialization = defined @Plater\Plater.lua:9668 RefreshID = 6 namePlateUnitToken = "nameplate1" ScriptRunOnShow = defined @Plater\Plater.lua:9634 UpdateAllWidgets = defined @Details\Libs\DF\panel.lua:9155 namePlateUnitName = "Stimmyme" ScriptRunNoAttach = defined @Plater\Plater.lua:9702 displayedUnit = "nameplate1" InCombat = false TargetNeonUp = { } IsUnitEvent =
{ } IsUIParent = true namePlateThreatPercent = 0 PlateFrame = NamePlate1 { } PLAYER_ENTERING_WORLD = defined @Details\Libs\DF\panel.lua:9189 CheckVehiclePossession = defined @Details\Libs\DF\panel.lua:9005 namePlateIsQuestObjective = false namePlateInRange = true HighlightFrame = NamePlate1PlaterUnitFrameHealthBarHighlightOverlay { } AuraCache =
{ } blizzardPlateFrameID = "table: 00000123AFD99E70" ScriptHotReload = defined @Plater\Plater.lua:9595 ScriptRunOnUpdate = defined @Plater\Plater.lua:9614 GetBackdrop = defined @SharedXML\Backdrop.lua:434 castBar2 = NamePlate1PlaterUnitFrameCastBar2 { } ApplyBackdrop = defined @SharedXML\Backdrop.lua:381 PARTY_MEMBER_ENABLE = defined @Details\Libs\DF\panel.lua:9229 healthBar = NamePlate1PlaterUnitFrameHealthBar { } FocusIndicator = { } BossModIconFrame = NamePlate1PlaterUnitFrameHealthBarBossModIconRow { } BodyFlashFrame =


LUA error #2

6x ChocolateBar\DragAndDrop.lua:86: attempt to index upvalue 'focus' (a nil value) [string "@ChocolateBar\DragAndDrop.lua"]:86: in function `Stop' [string "@ChocolateBar\Chocolate.lua"]:347: in function <ChocolateBar\Chocolate.lua:341>

Locals: self =

{ Start = defined @ChocolateBar\DragAndDrop.lua:67 UnregisterFrame = defined @ChocolateBar\DragAndDrop.lua:63 Stop = defined @ChocolateBar\DragAndDrop.lua:79 RegisterFrame = defined @ChocolateBar\DragAndDrop.lua:54 } frame = ChocolateBartender4 { BottomLeftCorner = { } OnBackdropLoaded = defined @SharedXML\Backdrop.lua:239 GetBackdropColor = defined @SharedXML\Backdrop.lua:477 SetBackdropBorderColor = defined @SharedXML\Backdrop.lua:509 icon = { } obj =
{ } text = { } SetBackdrop = defined @SharedXML\Backdrop.lua:416 ClearBackdrop = defined @SharedXML\Backdrop.lua:369 GetBackdropBorderColor = defined @SharedXML\Backdrop.lua:496 GetBackdrop = defined @SharedXML\Backdrop.lua:434 bar = ChocolateBar1 { } SetBorderBlendMode = defined @SharedXML\Backdrop.lua:353 highlight = defined @ChocolateBar\Chocolate.lua:355 Update = defined @ChocolateBar\Chocolate.lua:300 isMoving = false settings =
{ } OnBackdropSizeChanged = defined @SharedXML\Backdrop.lua:269 HasBackdropInfo = defined @SharedXML\Backdrop.lua:365 Center = { } RightEdge = { } GetEdgeSize = defined @SharedXML\Backdrop.lua:275 labelText = "" 0 = TopEdge = { } BottomEdge = { } name = "Bartender4" BottomRightCorner = { } TopRightCorner = { } TopLeftCorner = { } SetupTextureCoordinates = defined @SharedXML\Backdrop.lua:301 backdropInfo =
{ } SetupPieceVisuals = defined @SharedXML\Backdrop.lua:333 SetBackdropColor = defined @SharedXML\Backdrop.lua:486 LeftEdge = { } ApplyBackdrop = defined @SharedXML\Backdrop.lua:381 } (temporary) = nil (temporary) = nil (temporary) = "OnUpdate" (temporary) = nil (temporary) = (temporary) = nil (*temporary) = ChocolateBar3 { 0 = UpdateBar = defined @ChocolateBar\Bar.lua:428 GetFocus = defined @ChocolateBar\Bar.lua:421 OnBackdropLoaded = defined @SharedXML\Backdrop.lua:239 GetBackdropColor = defined @SharedXML\Backdrop.lua:477 autohide = false Drop = defined @ChocolateBar\Bar.lua:394 UpdateColors = defined @ChocolateBar\Bar.lua:121 SetBackdropBorderColor = defined @SharedXML\Backdrop.lua:509 UpdateStrata = defined @ChocolateBar\Bar.lua:76 New = defined @ChocolateBar\Bar.lua:28 EatChocolatePiece = defined @ChocolateBar\Bar.lua:184 tempHide = false chocoMostRight = ChocolateGuild { } chocolist =
{ } ApplyBackdrop = defined @SharedXML\Backdrop.lua:381 SetBackdrop = defined @SharedXML\Backdrop.lua:416 ClearBackdrop = defined @SharedXML\Backdrop.lua:369 LoseFocus = defined @ChocolateBar\Bar.lua:417 GetBackdropBorderColor = defined @SharedXML\Backdrop.lua:496 GetBackdrop = defined @SharedXML\Backdrop.lua:434 listCenter =
{ } chocoMostLeft = ChocolateGold { } UpdateDragChocolate = defined @ChocolateBar\Bar.lua:346 SetBorderBlendMode = defined @SharedXML\Backdrop.lua:353 Center = { } RightEdge = { } UpdateScale = defined @ChocolateBar\Bar.lua:105 LeftEdge = { } Drag = defined @Interface

plater commented 3 years ago

Hi, I'm user plater and I would like you to refrain from using @plater in your issues as it spams me with emails that have nothing to do with me. My name is Dave Plater unfortunately

alexandre-mckinnon commented 1 year ago

Seems to be a duplicate of issue #2, in the comment I added a workaround.

Kiatra commented 1 year ago

Dublicate of #2