Angrier World Quests

Angrier World Quests

181k Downloads

Error: tried to call the protected function

Benflag opened this issue ยท 1 comments

commented

Here is two LUA error I got today:

First one: 1x [ADDON_ACTION_BLOCKED] AddOn 'AngrierWorldQuests' tried to call the protected function 'Button:SetPassThroughButtons()'. [string "@!BugGrabber/BugGrabber.lua"]:485: in function <!BugGrabber/BugGrabber.lua:485> [string "=[C]"]: in function SetPassThroughButtons'
[string "@Blizzard_MapCanvas/Blizzard_MapCanvas.lua"]:189: in function AcquirePin' [string "@Blizzard_SharedMapDataProviders/QuestDataProvider.lua"]:228: in function AddQuest'
[string "@Blizzard_FlightMap/FM_QuestDataProvider.lua"]:12: in function AddQuest' [string "@Blizzard_SharedMapDataProviders/QuestDataProvider.lua"]:142: in function CheckAddQuest'
[string "@Blizzard_SharedMapDataProviders/QuestDataProvider.lua"]:153: in function RefreshAllData' [string "@Blizzard_SharedMapDataProviders/QuestDataProvider.lua"]:106: in function OnEvent'
[string "@Blizzard_MapCanvas/MapCanvas_DataProviderBase.lua"]:99: in function SignalEvent' [string "@Blizzard_MapCanvas/Blizzard_MapCanvas.lua"]:106: in function <...aceBlizzard_MapCanvas/Blizzard_MapCanvas.lua:105> [string "=[C]"]: in function secureexecuterange'
[string "@Blizzard_MapCanvas/Blizzard_MapCanvas.lua"]:109: in function `OnEvent'
[string "@Blizzard_FlightMap/Blizzard_FlightMap.lua"]:116: in function <...aceBlizzard_FlightMap/Blizzard_FlightMap.lua:111>

Locals:
_ = Frame {
RegisterEvent = defined @!BugGrabber/BugGrabber.lua:491
0 =
UnregisterEvent = defined @!BugGrabber/BugGrabber.lua:491
SetScript = defined @!BugGrabber/BugGrabber.lua:491
}
event = "ADDON_ACTION_BLOCKED"
events =

{
ADDON_ACTION_BLOCKED = defined @!BugGrabber/BugGrabber.lua:557
ADDON_ACTION_FORBIDDEN = defined @!BugGrabber/BugGrabber.lua:557
PLAYER_LOGIN = defined @!BugGrabber/BugGrabber.lua:551
LUA_WARNING = defined @!BugGrabber/BugGrabber.lua:566
ADDON_LOADED = defined @!BugGrabber/BugGrabber.lua:511
}
`

Second one:

1x [ADDON_ACTION_BLOCKED] AddOn 'AngrierWorldQuests' tried to call the protected function 'Frame:SetPassThroughButtons()'. [string "@!BugGrabber/BugGrabber.lua"]:485: in function <!BugGrabber/BugGrabber.lua:485> [string "=[C]"]: in function SetPassThroughButtons'
[string "@Blizzard_MapCanvas/Blizzard_MapCanvas.lua"]:189: in function AcquirePin' [string "@Blizzard_SharedMapDataProviders/AreaPOIDataProvider.lua"]:62: in function RefreshAllData'
[string "@Blizzard_MapCanvas/MapCanvas_DataProviderBase.lua"]:76: in function OnMapChanged' [string "@Blizzard_MapCanvas/Blizzard_MapCanvas.lua"]:587: in function <...aceBlizzard_MapCanvas/Blizzard_MapCanvas.lua:586> [string "=[C]"]: in function secureexecuterange'
[string "@Blizzard_MapCanvas/Blizzard_MapCanvas.lua"]:590: in function OnMapChanged' [string "@Blizzard_WorldMap/Blizzard_WorldMap.lua"]:282: in function OnMapChanged'
[string "@Blizzard_MapCanvas/Blizzard_MapCanvas.lua"]:60: in function SetMapID' [string "@Blizzard_MapCanvas/Blizzard_MapCanvas.lua"]:798: in function NavigateToParentMap'
[string "@Blizzard_MapCanvas/MapCanvas_ScrollContainerMixin.lua"]:130: in function <...lizzard_MapCanvas/MapCanvas_ScrollContainerMixin.lua:102>

Locals:
_ = Frame {
RegisterEvent = defined @!BugGrabber/BugGrabber.lua:491
0 =
UnregisterEvent = defined @!BugGrabber/BugGrabber.lua:491
SetScript = defined @!BugGrabber/BugGrabber.lua:491
}
event = "ADDON_ACTION_BLOCKED"
events =

{
ADDON_ACTION_BLOCKED = defined @!BugGrabber/BugGrabber.lua:557
ADDON_ACTION_FORBIDDEN = defined @!BugGrabber/BugGrabber.lua:557
PLAYER_LOGIN = defined @!BugGrabber/BugGrabber.lua:551
LUA_WARNING = defined @!BugGrabber/BugGrabber.lua:566
ADDON_LOADED = defined @!BugGrabber/BugGrabber.lua:511
}
`

commented

Hey,

This is a false positive - the problem is, that if some addon breaks something, and another tries to call it (or call something that calls it), it will fail, and the error will point to that addon, instead of the one that broke it.
The SetPassThroughButtons function is not used anywhere in this addon, even though the error points to it trying to call that function - this is the exact case, where something breaks something, and later down the line, something else trips over it ๐Ÿ™‚

Unfortunately, there is no way to see, what caused the problem in the first case.
Can you please try and see if you can reproduce the issue with only this addon and BugGrabber/BugSack loaded - if so, please provide the error message from there, and reopen the ticket ๐Ÿ™‚