WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   MozzFullWorldMap: Technical Support (https://www.wowinterface.com/forums/forumdisplay.php?f=132)
-   -   FocusUnit() error (https://www.wowinterface.com/forums/showthread.php?t=40235)

bhaelochon 05-22-11 12:53 PM

FocusUnit() error
 
I occasionally receive this error when I attempt to focus a party member (usually the tank) in random 5-man dungeons.

Code:

Date: 2011-05-22 13:22:28
ID: 2
Error occured in: AddOn: MozzFullWorldMap
Count: 1
Message: Error: AddOn MozzFullWorldMap attempted to call a forbidden function (FocusUnit()) from a tainted execution path.
Debug:
  [C]: FocusUnit()
  ..\FrameXML\UnitPopup.lua:1504: func()
  ..\FrameXML\UIDropDownMenu.lua:638: UIDropDownMenuButton_OnClick()
  [string "*:OnClick"]:1:
      [string "*:OnClick"]:1
AddOns:
  Swatter, v5.11.5146 (DangerousDingo)
  WowheadLooter, v40017
  AckisRecipeList, v2.2.4
  Automaton, v1.3.10
  Babylonian, v5.1.DEV.130
  BankStack, vr203
  Castbars, v
  ChatSounds, v
  CloseUp, v4.1.001
  Configator, v5.1.DEV.299
  DebugLib, v5.1.DEV.275
  Decursive, v2.7.0.2
  Flightmap, v4.1.0-beta
  Gatherer, v3.2.3
  GathererDBWowhead, v1.0.2010-12-19
  Informant, v5.11.5146 (DangerousDingo)
  LightHeaded, v337
  LightHeadedDataC, v337
  LightHeadedDataQIDNames, v337
  Livestock, v1.3.9
  MapCoords, v0.9a
  MozzFullWorldMap, v3.4.01.00
  OmniCC, v4.1.pancakes6
  OneBag3, vv3.3.13
  OneBank3, vv3.3.10
  OneRing3, vv3.2.8     
  QuestCompletist, v97
  RaidFrameIcons, v1.0.1
  RaidFrameIndicators, v1.3
  Routes, vv1.4.0
  SlideBar, v5.11.5146 (DangerousDingo)
  Stubby, v5.11.5146 (DangerousDingo)
  TalentedInspect, vv3.0.2-beta5
  teksLoot, v3.3.0.9
  VodkaFlyers, v1.6
  BlizRuntimeLib_enUS v4.1.0.40100 <us>
  (ck=3a0)


Vlad 05-22-11 01:41 PM

As far as I can tell you can't focus a unit with addons, blizzard never made the appropriate secure handlers to handle this in combat, hence the error when the addon tries to focus in combat.

Torhal 05-22-11 01:48 PM

This is a problem with DropDownMenus and any UnitFrame AddOn (even Blizzard's own UnitFrames).

Since so many AddOns use DropDownMenus, and the buttons for the menus are recycled between uses, the DropDownMenus become tainted - and since the (non-secure) focus button calls FocusUnit(), which is a protection function, the tainted execution path produces the error.

There is no fix for this - Blizzard needs to overhaul either the DropDownMenus to prevent the taint or make the FocusUnit() function non-protected (which isn't going to happen). The only alternative is to target something and type "/focus"

spiel2001 05-22-11 01:55 PM

There's a FAQ on this error here: http://www.wowinterface.com/forums/s...ad.php?t=24655

Vlad 05-22-11 01:56 PM

Quote:

Originally Posted by Torhal (Post 237783)
This is a problem with DropDownMenus and any UnitFrame AddOn (even Blizzard's own UnitFrames).

Since so many AddOns use DropDownMenus, and the buttons for the menus are recycled between uses, the DropDownMenus become tainted - and since the (non-secure) focus button calls FocusUnit(), which is a protection function, the tainted execution path produces the error.

There is no fix for this - Blizzard needs to overhaul either the DropDownMenus to prevent the taint or make the FocusUnit() function non-protected (which isn't going to happen). The only alternative is to target something and type "/focus"

My mistake, I meant to say what Torhal just did. Another common problem is the world markers as the API is protected and no secure handlers to allow you and use them, since the dropdown menu is a recycled frame addons eventually taint it and you gotta /reload the UI to use markers once more -annoying idd. :(


All times are GMT -6. The time now is 02:00 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI