tukui-org / ElvUI

User Interface replacement AddOn for World of Warcraft.
https://tukui.org
Other
455 stars 152 forks source link

'ElvUI' tried to call the protected function 'OnOpen()' #1056

Closed RealHawkBat closed 7 months ago

RealHawkBat commented 1 year ago

What is the issue you are having?

Note: I'm raising this ticket as the original tickets (#989 and #1054) were closed, but the issue persists. I am using ElvUI v13.42

When I access the Dungeon Journal for Aberrus raid, and I check the loot tab for the Raid, the BugSack addon detects the bug:

[ADDON_ACTION_FORBIDDEN] AddOn 'ElvUI' tried to call the protected function 'OnOpen()'.

What is the expected behavior?

This bug should not occur and should not trigger BugSack.

Other that the error appearing in BugSack, there doesn't appear to be any other observable unexpected behavior.

I have tried using the "/edebug on" command. However, as the bug is only picked up by the BugSack addon and there isn't any other observable unexpected behaviour, I cannot tell if the issue persists when using the "/edebug on" command.

What actually happened?

The BugSack addon detects the bug:

[ADDON_ACTION_FORBIDDEN] AddOn 'ElvUI' tried to call the protected function 'OnOpen()'.

Other that the error appearing in BugSack, there doesn't appear to be any other observable unexpected behavior.

I tried again by disabling every addon I had EXCEPT ElvUI and BugSack/BugGrabber, and the error occurred.

I then disabled ElvUI so the ONLY addons I had active were BugSack/BugGrabber, and the error DID NOT occur.

Suggested Solution/Workaround

I tried by disabling every addon I had EXCEPT ElvUI and BugSack/BugGrabber, and the error occurred. I then disabled ElvUI so the ONLY addons I had active were BugSack/BugGrabber, and the error DID NOT occur.

I have tried using the "/edebug on" command. However, as the bug is only picked up by the BugSack addon and there isn't any other observable unexpected behaviour, I cannot tell if the issue persists when using the "/edebug on" command.

Errors

67x [ADDON_ACTION_FORBIDDEN] AddOn 'ElvUI' tried to call the protected function 'OnOpen()'.
[string "@!BugGrabber/BugGrabber.lua"]:480: in function <!BugGrabber/BugGrabber.lua:480>
[string "=[C]"]: in function `OnOpen'
[string "@Blizzard_EncounterJournal/Blizzard_EncounterJournal.lua"]:587: in function <...zzard_EncounterJournal/Blizzard_EncounterJournal.lua:576>
[string "=[C]"]: in function `Show'
[string "@FrameXML/UIParent.lua"]:2943: in function `SetUIPanel'
[string "@FrameXML/UIParent.lua"]:2786: in function `ShowUIPanel'
[string "@FrameXML/UIParent.lua"]:2651: in function <FrameXML/UIParent.lua:2647>
[string "=[C]"]: in function `SetAttribute'
[string "@FrameXML/UIParent.lua"]:3253: in function `ShowUIPanel'
[string "@FrameXML/UIParent.lua"]:3214: in function `ToggleFrame'
[string "@FrameXML/UIParent.lua"]:1150: in function `ToggleEncounterJournal'
[string "@FrameXML/MainMenuBarMicroButtons.lua"]:1162: in function <FrameXML/MainMenuBarMicroButtons.lua:1160>
[string "=[C]"]: ?

Locals:
_ = Frame {
 RegisterEvent = <function> defined @!BugGrabber/BugGrabber.lua:486
 0 = <userdata>
 UnregisterEvent = <function> defined @!BugGrabber/BugGrabber.lua:486
 SetScript = <function> defined @!BugGrabber/BugGrabber.lua:486
}
event = "ADDON_ACTION_FORBIDDEN"
events = <table> {
 ADDON_ACTION_BLOCKED = <function> defined @!BugGrabber/BugGrabber.lua:552
 ADDON_ACTION_FORBIDDEN = <function> defined @!BugGrabber/BugGrabber.lua:552
 PLAYER_LOGIN = <function> defined @!BugGrabber/BugGrabber.lua:546
 LUA_WARNING = <function> defined @!BugGrabber/BugGrabber.lua:561
 ADDON_LOADED = <function> defined @!BugGrabber/BugGrabber.lua:506
}

ElvUI Changelog & Troubleshooting

rezpower commented 7 months ago

I am having the exact same annoying problem. I wish you guys would fix it or at least find a way to bypass it by removing the functionality causing it for people who are disturbed by this problem.

kodewdle commented 7 months ago

thank you, should be fixed in dev 🌼

this was not related to https://github.com/tukui-org/ElvUI/issues/989 or https://github.com/tukui-org/ElvUI/issues/1054 the issue was another thing causing a similar problem