HeroRotation

HeroRotation

5M Downloads

[BUG]: Hunter / BM. Error when entering 'Edit Mode'

mattwillms opened this issue ยท 3 comments

commented

What version of HeroRotation are you using?

10.1.5.17

What version of HeroLib are you using?

10.1.5.02

What version of HeroDBC are you using?

10.1.5.03

What is the issue?

When opening 'Edit Mode' I receive the following error. I'm also using the addon 'Edit Mode Expanded'

1x [ADDON_ACTION_FORBIDDEN] AddOn 'HeroRotation_Hunter' tried to call the protected function 'TargetUnit()'.
[string "@!BugGrabber/BugGrabber.lua"]:481: in function <!BugGrabber/BugGrabber.lua:481>
[string "=[C]"]: in function `TargetUnit'
[string "@FrameXML/EditModeManager.lua"]:1836: in function `RefreshTargetAndFocus'
[string "@FrameXML/EditModeManager.lua"]:1746: in function `OnEditModeEnter'
[string "@FrameXML/EditModeManager.lua"]:186: in function <FrameXML/EditModeManager.lua:181>
[string "=[C]"]: in function `EnterEditMode'
[string "@FrameXML/EditModeManager.lua"]:211: in function <FrameXML/EditModeManager.lua:209>
[string "=[C]"]: ?
[string "=[C]"]: in function `Show'
[string "@FrameXML/UIParent.lua"]:2936: in function `SetUIPanel'
[string "@FrameXML/UIParent.lua"]:2740: in function `ShowUIPanel'
[string "@FrameXML/UIParent.lua"]:2644: in function <FrameXML/UIParent.lua:2640>
[string "=[C]"]: in function `SetAttribute'
[string "@FrameXML/UIParent.lua"]:3246: in function `ShowUIPanel'
[string "*GameMenuFrame.xml:94_OnClick"]:2: in function <[string "*GameMenuFrame.xml:94_OnClick"]:1>

Locals:
_ = Frame {
 RegisterEvent = <function> defined @!BugGrabber/BugGrabber.lua:487
 0 = <userdata>
 UnregisterEvent = <function> defined @!BugGrabber/BugGrabber.lua:487
 SetScript = <function> defined @!BugGrabber/BugGrabber.lua:487
}
event = "ADDON_ACTION_FORBIDDEN"
events = <table> {
 ADDON_ACTION_BLOCKED = <function> defined @!BugGrabber/BugGrabber.lua:553
 ADDON_ACTION_FORBIDDEN = <function> defined @!BugGrabber/BugGrabber.lua:553
 PLAYER_LOGIN = <function> defined @!BugGrabber/BugGrabber.lua:547
 LUA_WARNING = <function> defined @!BugGrabber/BugGrabber.lua:562
 ADDON_LOADED = <function> defined @!BugGrabber/BugGrabber.lua:507
}

Icon Behavior

N/A

commented

I'm unable to replicate this. We use a variable named TargetUnit, but never actually call the API function TargetUnit(), which this error is claiming. It looks like it might be originating from Edit Mode.

commented

The bug is intermittent. Usually occurring after long sessions. I can't reliably preproduce it, but I've encountered it enough to consider reporting it. ๐Ÿ‘

commented

We literally don't use the TargetUnit() API call, and the third line of your call stack points to Edit Mode. Try replicating the issue with Edit Mode Expanded disabled.

[string "@FrameXML/EditModeManager.lua"]:1836: in function `RefreshTargetAndFocus'

Edit: Corrected the name of the addon Edit Mode Expanded.