Thread Tools Display Modes
Unread 05-22-11, 12:53 PM   #1
bhaelochon
A Defias Bandit
 
bhaelochon's Avatar
Join Date: Jan 2006
Posts: 2
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)
__________________
"Never hold your farts in. They travel up your spine and into your brain, and that's where you get crappy ideas from." - Unknown
bhaelochon is offline  
Unread 05-22-11, 01:41 PM   #2
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 766
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.
Vlad is offline  
Unread 05-22-11, 01:48 PM   #3
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,078
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"
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of Revelation, Spamalyzer, TravelAgent, Volumizer, and many other AddOns.
Torhal is offline  
Unread 05-22-11, 01:55 PM   #4
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
There's a FAQ on this error here: http://www.wowinterface.com/forums/s...ad.php?t=24655
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Unread 05-22-11, 01:56 PM   #5
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 766
Originally Posted by Torhal View Post
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.
Vlad is offline  
 

Go BackWoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » MozzFullWorldMap: Technical Support » FocusUnit() error

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off