BagSync

BagSync

3M Downloads

Occasional ADDON_ACTION_FORBIDDEN

0xfeeddeadbeef opened this issue ยท 2 comments

commented

This happens sometimes after a new item is added to bags and I try to use this new item (right click). I don't have reproducible steps for this, it happens randomly. Goes away after /reload

Message: [ADDON_ACTION_FORBIDDEN] AddOn 'BagSync' tried to call the protected function 'UNKNOWN()'.
Time: Wed Dec 27 12:27:33 2023
Count: 1
Stack: [ADDON_ACTION_FORBIDDEN] AddOn 'BagSync' tried to call the protected function 'UNKNOWN()'.
[string "@Interface/FrameXML/ContainerFrame.lua"]:1424: in function `ContainerFrameItemButton_OnClick'
[string "@Interface/FrameXML/ContainerFrame.lua"]:1476: in function <Interface/FrameXML/ContainerFrame.lua:1463>

Locals: self = ContainerFrame4Item32 {
 0 = <userdata>
 OnLeave = <function> defined @Interface/FrameXML/ContainerFrame.lua:1493
 SetItem = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:544
 IconOverlay = Texture {
 }
 SetAlpha = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:631
 UpdateCooldown = <function> defined @Interface/FrameXML/ContainerFrame.lua:1704
 showMatchHighlight = true
 OnDragStart = <function> defined @Interface/FrameXML/ContainerFrame.lua:1591
 OnReceiveDrag = <function> defined @Interface/FrameXML/ContainerFrame.lua:1595
 icon = ContainerFrame4Item32IconTexture {
 }
 isExtended = false
 UpdateTooltip = <function> defined @Interface/FrameXML/ContainerFrame.lua:1504
 SetReadable = <function> defined @Interface/FrameXML/ContainerFrame.lua:1696
 CheckUpdateTooltip = <function> defined @Interface/FrameXML/ContainerFrame.lua:1720
 UpdateNewItem = <function> defined @Interface/FrameXML/ContainerFrame.lua:1642
 IsReadable = <function> defined @Interface/FrameXML/ContainerFrame.lua:1700
 count = 1
 UpdateItemContextMatching = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:450
 SetItemButtonCount = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:614
 SetItemInternal = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:549
 UpdateCraftedProfessionsQualityShown = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:461
 HighlightTexture = Texture {
 }
 PostOnShow = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:414
 UpdateItemContextOverlayTextures = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:499
 SetItemSource = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:528
 IconQuestTexture = ContainerFrame4Item32IconQuestTexture {
 }
 hasItem = 1
 SetBagID = <function> defined @Interface/FrameXML/ContainerFrame.lua:1599
 IsExtended = <function> defined @Interface/FrameXML/ContainerFrame.lua:1734
 UpdateItemContextOverlay = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:488
 CheckForTutorials = <function> defined @Interface/FrameXML/ContainerFrame.lua:1764
 PushedTexture = Texture {
 }
 emptyBackgroundAtlas = "bags-item-slot64"
 Count = ContainerFrame4Item32Count {
 }
 SetItemButtonAnchorPoint = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:618
 searchOverlay = ContainerFrame4Item32SearchOverlay {
 }
 GetItemLocation = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:610
 IconOverlay2 = Texture {
 }
 OnModifiedClick = <function> defined @Interface/FrameXML/ContainerFrame.lua:1550
 matchesSearch = true
 PostOnEvent = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:427
 bagID = 3
 OnItemContextChanged = <function> defined @Interface/FrameXML/ItemButtonTemplate.lua:410
 GetItemContextMatchResult = <function> defined @Interface/FrameXML/ContainerFrame.lua:1450
 UpdateExtended = <function> defined @Interface/FrameXML/ContainerFrame.lua:1738
 ExtendedSlot = Texture {
 }
 UpdateJunkItem = <function> defined @Interface/FrameXML/ContainerFrame.lua:1674
 HasItem = <function> defined @Interface/FrameXML/ContainerFrame.lua:1692
 OnClick = <function> defined @Interface/FrameXML/ContainerFrame.lua:1463
 isProfessionItem = false
 itemContextMatchResult = 3
 GetDebugReportInfo = <function> defined @Interface/FrameXML/ContainerFrame.lua:1242
 timeSinceUpgradeCheck = 0
 flashAnim = AnimationGroup {
 }
 newitemglowAnim = AnimationGroup {
 }
 NormalTexture = ContainerFrame4Item32NormalTexture {
 }
 SetItemButtonScale =
commented

This seems like a standard generic Blizzard UI error. It usually bugs out with some random stuff as they seriously have a lot of taint issues even in their code. I'm not sure what addons you use or if you use any UI addons like EveUI or TukUI. But if you look at the error, its so generic, that I don't even where to start.

AddOn 'BagSync' tried to call the protected function 'UNKNOWN()'.
Time: Wed Dec 27 12:27:33 2023
Count: 1
Stack: [ADDON_ACTION_FORBIDDEN] AddOn 'BagSync' tried to call the protected function 'UNKNOWN()'.

specfically here
tried to call the protected function 'UNKNOWN()'.

UNKNOWN()? there is no function in BagSync called UNKNOWN(). Which leads me to believe this is just some sort of generic error being triggered by either Blizzards UI or some other UI modified element you may have for the bags. The fact that you have to do /reload to fix it, sort of supports this. Otherwise, sadly that error doesn't really give me an idea of where or what caused the issue. One clue is that blizzards "ContainerFrame.lua" was the root culprit, triggered by ContainerFrameItemButton_OnClick. Which is their default frame for things like bags and such. This also supports my assumption that it's a Blizzard UI bug.

I wish I could be of more help :(

commented

I looked into this bug a bit more and there doesn't seem to be a lot of documentation in regards to it. Other developers have said the same thing I said though, it's so generic with UNKNOWN() that it's sort of impossible to track it down completely. Considering it's being triggered in the ContainerFrame. As a suggestion, if you have any UI mods installed, try disabling them and see if it still occurs.