World Quest Tracker

World Quest Tracker

70M Downloads

Lua error with newest update

Nils89 opened this issue · 6 comments

commented

Hi got this error during the game:

1246x bad argument #2 to '?' (Usage: C_Timer.After(seconds, callback))
[string "=[C]"]: in function After' [string "@WorldQuestTracker/WorldQuestTracker_Core.lua"]:377: in function <WorldQuestTracker/WorldQuestTracker_Core.lua:376> [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: in function Hide'
[string "@FrameXML/UIParent.lua"]:2828: in function SetUIPanel' [string "@FrameXML/UIParent.lua"]:2859: in function MoveUIPanel'
[string "@FrameXML/UIParent.lua"]:2902: in function HideUIPanel' [string "@FrameXML/UIParent.lua"]:2556: in function <FrameXML/UIParent.lua:2548> [string "=[C]"]: in function SetAttribute'
[string "@FrameXML/UIParent.lua"]:3170: in function HideUIPanel' [string "@FrameXML/UIParent.lua"]:3326: in function CloseWindows'
[string "@FrameXML/UIParent.lua"]:3364: in function <FrameXML/UIParent.lua:3362>
[string "=[C]"]: in function securecall' [string "@FrameXML/UIParent.lua"]:4013: in function ToggleGameMenu'
[string "TOGGLEGAMEMENU"]:1: in function <[string "TOGGLEGAMEMENU"]:1>

Locals:
(*temporary) = "bad argument #2 to '?' (Usage: C_Timer.After(seconds, callback))"

commented
commented

toc file:

Interface: 100000

Title: World Quest Tracker

Notes: An addon by Terciob. Make more easy to see world quests

SavedVariables: WQTrackerDB

SavedVariablesPerCharacter: WQTrackerDBChr

X-Curse-Project-ID: 100610

X-Wago-ID: lQNlrEKe

Version: v10.0.2.455-Retail

commented
commented

with the latest update is is not gone, only the lines are changed:

644x bad argument #2 to '?' (Usage: C_Timer.After(seconds, callback))
[string "=[C]"]: in function After' [string "@WorldQuestTracker/WorldQuestTracker_Core.lua"]:379: in function <WorldQuestTracker/WorldQuestTracker_Core.lua:378> [string "=[C]"]: ? [string "=[C]"]: ? [string "=[C]"]: in function Hide'
[string "@FrameXML/UIParent.lua"]:2837: in function SetUIPanel' [string "@FrameXML/UIParent.lua"]:2917: in function HideUIPanel'
[string "@FrameXML/UIParent.lua"]:2565: in function <FrameXML/UIParent.lua:2557>
[string "=[C]"]: in function SetAttribute' [string "@FrameXML/UIParent.lua"]:3179: in function HideUIPanel'
[string "@FrameXML/QuestLogOwnerMixin.lua"]:101: in function SetDisplayState' [string "@FrameXML/QuestLogOwnerMixin.lua"]:41: in function HandleUserActionToggleSelf'
[string "@Blizzard_WorldMap/Blizzard_WorldMap.lua"]:440: in function <...rfaceBlizzard_WorldMap/Blizzard_WorldMap.lua:439>
[string "=[C]"]: in function `ToggleWorldMap'
[string "TOGGLEWORLDMAP"]:1: in function <[string "TOGGLEWORLDMAP"]:1>

commented

ok seams to be a add-on skin problem from my add-on, I hook to that function and that seams to cause this issue but I do not know why:

hooksecurefunc(WorldQuestTrackerAddon, "RefreshTrackerWidgets", function() addWQTTrackerQuest(fWQT) end)

commented

@Tercioo ok this error can be fixed if you change the C_Timer.After function which called the "RefreshTrackerWidgets" to this one:
C_Timer.After (0.2, function() WorldQuestTracker.RefreshTrackerWidgets() end)

Can you maybe do this in this two places?
WorldQuestTracker_Core.lua line 380 & 437

Thanks in advance :)