CraftSim

CraftSim

2M Downloads

LUA Error when Upgrading Item (Not crafting)

jasonlearst opened this issue ยท 3 comments

commented

I receive the following error when trying to upgrade armor with Flightstones.

1x [ADDON_ACTION_FORBIDDEN] AddOn 'CraftSim' tried to call the protected function 'UpgradeItem()'.
[string "@!BugGrabber/BugGrabber.lua"]:480: in function <!BugGrabber/BugGrabber.lua:480>
[string "=[C]"]: in function `UpgradeItem'
[string "@Blizzard_ItemUpgradeUI/Blizzard_ItemUpgradeUI.lua"]:110: in function `OnConfirm'
[string "@FrameXML/StaticPopup.lua"]:356: in function `OnAccept'
[string "@FrameXML/StaticPopup.lua"]:5315: in function `StaticPopup_OnClick'
[string "*StaticPopup.xml:24_OnClick"]:1: in function <[string "*StaticPopup.xml:24_OnClick"]:1>

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
}

Reloading my UI fixes it. I don't know what triggers it to happen in the first place.

commented

There seems to be a blizz bug with dropdowns

commented

You should do this:

/console taintLog 2

And then post World of Warcraft/_retail_/Logs/taint.log after reproducing the issue. You should make sure that you can reproduce it with only CraftSim enabled as well. This kind of issue isn't easy to investigate, and the bare minimum to help would be to post this file and tell exactly what you did to reproduce it.

When you're done:

/console taintLog 0
commented

I also got this when on the Loamm entry quest [Flightstones]. Unfortunately, after clicking to Disable Craftsim, reloading, reading this issue and reloading Craftsim, the error did not appear a second time. However it DID re-appear when I was trying to complete the follow-up quest [Catching Up with Friends]. This from the Taint log:

7/25 21:27:41.455  Execution tainted by CraftSim while reading UIDROPDOWNMENU_MENU_LEVEL - Interface/SharedXML/UIDropDownMenu.lua:811 UIDropDownMenu_Refresh()
7/25 21:27:41.455      Interface/SharedXML/UIDropDownMenu.lua:933 UIDropDownMenu_SetSelectedValue()
7/25 21:27:41.455      Interface/AddOns/Blizzard_ItemUpgradeUI/Blizzard_ItemUpgradeUI.lua:156 ItemUpgradeFrame:Update()
7/25 21:27:41.455      Interface/AddOns/Blizzard_ItemUpgradeUI/Blizzard_ItemUpgradeUI.lua:89
7/25 21:27:41.455      SetItemUpgradeFromLocation()
7/25 21:27:41.455      Interface/AddOns/Blizzard_ItemUpgradeUI/Blizzard_ItemUpgradeUI.lua:821 onClickFunc()
7/25 21:27:41.455      Interface/FrameXML/EquipmentFlyout.lua:547
7/25 21:27:45.728  Interface/FrameXML/StaticPopup.lua:5283 StaticPopup_OnClick()
7/25 21:27:45.728  An action was blocked because of taint from CraftSim - UpgradeItem()
7/25 21:27:45.728      Interface/AddOns/Blizzard_ItemUpgradeUI/Blizzard_ItemUpgradeUI.lua:110 ItemUpgradeFrame:OnConfirm()
7/25 21:27:45.728      Interface/FrameXML/StaticPopup.lua:356 OnAccept()
7/25 21:27:45.728      Interface/FrameXML/StaticPopup.lua:5315 StaticPopup_OnClick()
7/25 21:27:45.728      StaticPopup1Button1:taticPopup.xml:24_OnClick()

There was also this from earlier in the log:

7/25 21:22:47.593  Global variable UIDROPDOWNMENU_MENU_LEVEL tainted by CraftSim - Interface/SharedXML/UIDropDownMenu.lua:39
7/25 21:22:47.593      securecall()
7/25 21:22:47.593      Interface/SharedXML/UIDropDownMenu.lua:75 UIDropDownMenu_Initialize()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Libs/GGUI-1.0/GGUI.lua:877 SetData()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/Frames.lua:141 ResetDropdown()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/Frames.lua:95 SetCustomer()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/CustomerHistory.lua:41 ?()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:114
7/25 21:22:47.593      xpcall()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:24 Dispatch()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:59 Fire()
7/25 21:22:47.593      Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua:120
7/25 21:22:47.593      CastSpell()
7/25 21:22:47.593      Interface/FrameXML/SpellBookFrame.lua:720
7/25 21:22:47.593  Execution tainted by CraftSim while reading UIDROPDOWNMENU_MENU_LEVEL - Interface/SharedXML/UIDropDownMenu.lua:49
7/25 21:22:47.593      securecall()
7/25 21:22:47.593      Interface/SharedXML/UIDropDownMenu.lua:75 UIDropDownMenu_Initialize()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Libs/GGUI-1.0/GGUI.lua:877 SetData()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/Frames.lua:141 ResetDropdown()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/Frames.lua:95 SetCustomer()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/CustomerHistory.lua:41 ?()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:114
7/25 21:22:47.593      xpcall()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:24 Dispatch()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:59 Fire()
7/25 21:22:47.593      Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua:120
7/25 21:22:47.593      CastSpell()
7/25 21:22:47.593      Interface/FrameXML/SpellBookFrame.lua:720
7/25 21:22:47.593  Execution tainted by CraftSim while reading UIDROPDOWNMENU_MENU_LEVEL - Interface/SharedXML/UIDropDownMenu.lua:49
7/25 21:22:47.593      securecall()
7/25 21:22:47.593      Interface/SharedXML/UIDropDownMenu.lua:75 UIDropDownMenu_Initialize()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Libs/GGUI-1.0/GGUI.lua:877 SetData()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/Frames.lua:141 ResetDropdown()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/Frames.lua:95 SetCustomer()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/CustomerHistory.lua:41 ?()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:114
7/25 21:22:47.593      xpcall()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:24 Dispatch()
7/25 21:22:47.593      Interface/AddOns/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:59 Fire()
7/25 21:22:47.593      Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua:120
7/25 21:22:47.593      CastSpell()
7/25 21:22:47.593      Interface/FrameXML/SpellBookFrame.lua:720
7/25 21:22:47.593  Execution tainted by CraftSim while reading UIDROPDOWNMENU_MENU_LEVEL - Interface/SharedXML/UIDropDownMenu.lua:49
7/25 21:22:47.593      securecall()
7/25 21:22:47.593      Interface/SharedXML/UIDropDownMenu.lua:75 UIDropDownMenu_Initialize()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Libs/GGUI-1.0/GGUI.lua:877 SetData()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/Frames.lua:141 ResetDropdown()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/Frames.lua:95 SetCustomer()
7/25 21:22:47.593      Interface/AddOns/CraftSim/Modules/CustomerHistory/CustomerHistory.lua:41 ?()

There's a fuller extract of the log (it was too big to post the entire thing) with the posts immediately prior to, and after, the Craftsim section here: https://pastebin.com/JQhnYVyQ