Thread Tools Display Modes
07-27-18, 10:13 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
RightClicked another player and got this Lua error

https://imgur.com/a/OgxGMtf
https://imgur.com/a/88sYbtA

Lua Code:
  1. Message: Interface\FrameXML\UnitPopup.lua:1251: bad argument #1 to 'IsPlayerUsingVoice' (Usage: local isUsingVoice = C_VoiceChat.IsPlayerUsingVoice(playerLocation))
  2. Time: Fri Jul 27 18:11:22 2018
  3. Count: 1
  4. Stack: Interface\FrameXML\UnitPopup.lua:1251: bad argument #1 to 'IsPlayerUsingVoice' (Usage: local isUsingVoice = C_VoiceChat.IsPlayerUsingVoice(playerLocation))
  5. [C]: in function `IsPlayerUsingVoice'
  6. Interface\FrameXML\UnitPopup.lua:1251: in function `UnitPopup_HideButtons'
  7. Interface\FrameXML\UnitPopup.lua:306: in function `UnitPopup_ShowMenu'
  8. Interface\FrameXML\SecureTemplates.lua:237: in function `initFunction'
  9. Interface\FrameXML\UIDropDownMenu.lua:77: in function `UIDropDownMenu_Initialize'
  10. Interface\FrameXML\UIDropDownMenu.lua:1085: in function `ToggleDropDownMenu'
  11. Interface\FrameXML\SecureTemplates.lua:308: in function `handler'
  12. Interface\FrameXML\SecureTemplates.lua:623: in function `SecureActionButton_OnClick'
  13. Interface\FrameXML\SecureTemplates.lua:663: in function <Interface\FrameXML\SecureTemplates.lua:655>
  14.  
  15. Locals: (*temporary) = <table> {
  16.  IsBattleNetGUID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:63
  17.  SetGUID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:47
  18.  IsCommunityData = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:129
  19.  IsBattlefieldScoreIndex = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:99
  20.  SetUnit = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:71
  21.  IsGUID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:59
  22.  unit = "targettarget"
  23.  IsChatLineID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:87
  24.  Clear = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:144
  25.  IsValid = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:51
  26.  SetVoiceID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:107
  27.  IsVoiceID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:113
  28.  GetBattlefieldScoreIndex = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:103
  29.  IsUnit = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:75
  30.  SetCommunityInvitation = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:133
  31.  GetVoiceID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:117
  32.  IsCommunityInvitation = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:139
  33.  GetChatLineID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:91
  34.  ClearAndSetField = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:158
  35.  GetGUID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:67
  36.  GetUnit = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:79
  37.  SetChatLineID = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:83
  38.  SetBattlefieldScoreIndex = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:95
  39.  SetCommunityData = <function> defined @Interface\FrameXML\ObjectAPI\PlayerLocation.lua:121
  40. }

Is that something with the default UI? It has some wierd !Voice Chat dropdown button.

I could get it by right clicking on my ToT in combat.

Does not happen all the time...GRMPF

*edit* Only seem to happen when right clicking a target of target unit.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 07-27-18 at 10:39 AM.
  Reply With Quote
07-27-18, 02:32 PM   #2
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
It's a Blizz's bug.

Unit popups are kinda broken atm, esp for UF addons... I've already reported few unit popups' bugs.

Got a reply from our fav Blizz dev:
03:33:51 TheDanW > ls-: thanks for the research, a fix for the guid stuff will be coming soon, the units being "invalid" are trickier to solve
__________________

Last edited by lightspark : 07-27-18 at 02:38 PM.
  Reply With Quote
07-27-18, 05:24 PM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Thank you.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » RightClicked another player and got this Lua 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