Log in to ZYGOR
Log in with social media
OR
Log in with Zygor account

Announcement

Collapse
No announcement yet.

Error Initializing.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error Initializing.

    Sorry posted in wrong forum.

    Thanks


    After logging in:

    Zygor Guides Viewer reports:
    430 Guides are loaded
    Activated Guide: Tillers Dailies
    ERROR initializing, check LUA errors and report them please.

    Uninstalled and reloaded Zygor 4.05460 still get the error. Current Tillers Rep is Exalted 999/1000.

    Warcraft does not respond after handing in a quest, and the Waypoint Arrow does not show. When I switch to another dailies guide it seems to work. Disabled all addons and still get the error.

    Reverted back to 4.0.5453 and all is good.

    Errorlogger.lua

    local ZGV = ZygorGuidesViewer
    if not ZGV then return end
    do return end

    local L = ZGV.L

    local strfind = string.find

    local errorbase={}
    local errorlimit = 5

    function ZGV:ErrorLogger_GetErrors()
    local errors={}
    if BugGrabber then
    local db = BugGrabber:GetDB()
    for bi,bug in ipairs(db) do
    local str = bug.message
    if type(str)=="table" then str=table.concat(str) end
    --[[
    if strfind(str,"Zygor") then
    errors[#errors+1]=str
    end
    --]]
    errors[#errors+1] = {message=str,time=bug.time}
    end
    else
    -- no buggrabber, damn! gotta do it by hand.
    errors = errorbase
    end
    return errors
    end

    StaticPopupDialogs["ZYGORGUIDESVIEWER_ERROR"] = {
    text = L['static_caption']..L['static_error'],
    button1 = YES,
    button2 = IGNORE,
    hideOnEscape = 1,
    timeout = 0,
    whileDead = 1,
    OnAccept = function(self) ZGV:BugReport() end,
    }

    local buggrabber = GetAddOnMetadata("BugGrabber", "Version")
    local looping
    if not buggrabber then
    local origerrorhandler
    local function zygerrorhandler(err)
    -- kudos to the creators of BugGrabber.
    err = tostring(err)

    -- We're very very selfish (and it doesn't mean we vendor seafood).
    -- or maybe not... Errors may appear elsewhere...
    --if strfind(err,"Zygor") then
    if true then

    -- Get the full backtrace
    local real = err:find("^.-([^\\]+\\)([^\\]-)(:%d+).*)$")
    or err:find("^%[string \".-([^\\]+\\)([^\\]-)\"%](:%d+).*)$")
    or err:find("^%[string (\".-\")%](:%d+).*)$")
    or err:find("^%[C%].*)$")

    err = err .. "\n" .. debugstack(real and 4 or 3)

    -- Normalize the full paths into last directory component and filename.
    local errmsg = ""
    looping = false

    for trace in err:gmatch("(.-)\n") do
    local match, found, path, file, line, msg, _
    found = false

    -- First detect an endless loop so as to abort it below
    if trace:find("ErrorLogger") then
    looping = true
    break
    end

    -- "path\to\file-2.0.lua:linenum:message" -- library
    if not found then
    match, _, path, file, line, msg = trace:find("^.-([^\\]+\\)([^\\]-%-%d+%.%d+%.lua)(:%d+).*)$")
    local addon = trace:match("^.-[A%.][d%.][d%.][Oo]ns\\([^\\]-)\\")
    if match then
    if LibStub then
    local major = file:gsub("%.lua$", "")
    local lib, minor = LibStub(major, true)
    path = major .. "-" .. (minor or "?")
    if addon then
    file = " (" .. addon .. ")"
    else
    file = ""
    end
    end
    found = true
    end
    end

    -- "Interface\AddOns\path\to\file.lua:linenum:message "
    if not found then
    match, _, path, file, line, msg = trace:find("^.-[A%.][d%.][d%.][Oo]ns\\(.*)([^\\]-)(:%d+).*)$")
    if match then
    found = true
    local addon = path:gsub("\\.*$", "")
    local addonObject = _G[addon]
    if not addonObject then
    addonObject = _G[addon:match("^[^_]+_(.*)$")]
    end
    local version, revision = nil, nil
    if LibStub and LibStub(addon, true) then
    local _, r = LibStub(addon, true)
    version = r
    end
    if type(addonObject) == "table" then
    local v, r = scan(addonObject)
    if v then version = v end
    if r then revision = r end
    end
    local objectName = addon:upper()
    if not version then version = _G[objectName .. "_VERSION"] end
    if not revision then revision = _G[objectName .. "_REVISION"] or _G[objectName .. "_REV"] end
    if not version then version = GetAddOnMetadata(addon, "Version") end
    if not version and revision then version = revision
    elseif type(version) == "string" and revision and not version:find(revision) then
    version = version .. "." .. revision
    end
    if not version then version = GetAddOnMetadata(addon, "X-Curse-Packaged-Version") end
    if version then
    path = addon .. "-" .. version .. path:gsub("^[^\\]*", "")
    end
    end
    end

    -- "path\to\file.lua:linenum:message"
    if not found then
    match, _, path, file, line, msg = trace:find("^.-([^\\]+\\)([^\\])(:%d+).*)$")
    if match then
    found = true
    end
    end

    -- "[string \"path\\to\\file.lua:<foo>\":linenum:message"
    if not found then
    match, _, path, file, line, msg = trace:find("^%[string \".-([^\\]+\\)([^\\]-)\"%](:%d+).*)$")
    if match then
    found = true
    end
    end

    -- "[string \"FOO\":linenum:message"
    if not found then
    match, _, file, line, msg = trace:find("^%[string (\".-\")%](:%d+).*)$")
    if match then
    found = true
    path = "<string>:"
    end
    end

    -- "[C]:message"
    if not found then
    match, _, msg = trace:find("^%[C%].*)$")
    if match then
    found = true
    path = "<in C code>"
    file = ""
    line = ""
    end
    end

    --[[
    -- ADDON_ACTION_BLOCKED
    if not found then
    match, _, file, msg = trace:find(ADDON_CALL_PROTECTED_MATCH)
    if match then
    found = true
    path = "<event>"
    file = "ADDON_ACTION_BLOCKED"
    line = ""
    errorType = "event"
    end
    end
    --]]

    -- Anything else
    if not found then
    path = trace--"<unknown>"
    file = ""
    line = ""
    msg = line
    end

    -- Add it to the formatted error
    errmsg = errmsg .. path .. file .. line .. ":" .. msg .. "\n"
    end

    -- we have a fully formatted error now.

    local found
    for i=1,#errorbase do if errorbase[i].message==errmsg then found=errorbase[i] break end end
    if found then
    found.count=found.count+1
    found.time=date("%Y/%m/%d %H:%M:%S")
    else
    -- file the error away
    errorbase[#errorbase+1] = {message=errmsg,count=1,time=date("%Y/%m/%d %H:%M:%S")}
    if #errorbase>errorlimit then table.remove(errorbase,1) end

    -- if it's our bug, announce it.
    if strfind(err,"Zygor") then
    StaticPopup_Show("ZYGORGUIDESVIEWER_ERROR")
    end
    end

    -- err=nil
    -- always fall through. We're just a logger.

    end -- Zygor

    if err and origerrorhandler then origerrorhandler(err) end
    end

    -- install our own grabber, rickety as it may be.

    -- save original error handler
    origerrorhandler=geterrorhandler()
    -- replace error handler
    seterrorhandler(zygerrorhandler)

    -- save original handler setter
    local orig_seterrorhandler=seterrorhandler
    -- replace handler setter with one that keeps our handler, just changes the original pointer.
    seterrorhandler=function(newhandler)
    origerrorhandler = newhandler
    end
    end




    Thanks
    Last edited by sonomanapa; November 26, 2012, 11:54 PM. Reason: Posted in wrong forum

    #2
    I also get the same problem when i log on, i have re-installed it and tried to repair it but that didn't work.

    Date: 2012-11-27 17:47:50
    ID: 1
    Error occured in: Global
    Count: 1
    Message: ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua line 4051:
    [string "_Update() return not not (repval('The Till..."] line 1:
    attempt to call global 'compltetedq' (a nil value)
    in
    [string "_Update() return not not (repval('The Till..."] line 1:
    in main chunk
    (tail call): ?
    ..\AddOns\ZygorGuidesViewer\Goal.lua line 36:
    in function `GetStatus'
    ..\AddOns\ZygorGuidesViewer\Goal.lua line 49:
    in function `UpdateStatus'
    ..\AddOns\ZygorGuidesViewer\Step.lua line 40:
    in function `IsComplete'
    ..\AddOns\ZygorGuidesViewer\Guide.lua line 127:
    in function `GetCompletion'
    ...dOns\ZygorGuidesViewer\Skins\Default\ViewerFram e.lua line 82:
    in function `ZygorGuidesViewer_ProgressBar_Update'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua line 2654:
    in function `?'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua line 2234:
    in function `UpdateFrame'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua line 672:
    in function `FocusStepUnquiet'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua line 656:
    in function `FocusStep'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua line 490:
    in function `SetGuide'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua line 372:
    in function `OnFirstQuestLogUpdate'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua line 4040:
    in function <...rface\AddOns\ZygorGuidesViewer\ZygorGuidesView er.lua:3895>

    Debug:
    [C]: ?
    [C]: error()
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua:4051: StartupStep()
    ZygorGuidesViewer\MasterFrame.lua:9:
    ZygorGuidesViewer\MasterFrame.lua:4
    Locals:
    (*temporary) = "[string "_Update() return not not (repval('The Till..."]:1: attempt to call global 'compltetedq' (a nil value)
    in
    [string "_Update() return not not (repval('The Till..."]:1: in main chunk
    (tail call): ?
    Interface\AddOns\ZygorGuidesViewer\Goal.lua:36: in function `GetStatus'
    Interface\AddOns\ZygorGuidesViewer\Goal.lua:49: in function `UpdateStatus'
    Interface\AddOns\ZygorGuidesViewer\Step.lua:40: in function `IsComplete'
    Interface\AddOns\ZygorGuidesViewer\Guide.lua:127: in function `GetCompletion'
    ...dOns\ZygorGuidesViewer\Skins\Default\ViewerFram e.lua:82: in function `ZygorGuidesViewer_ProgressBar_Update'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua:2654: in function `?'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua:2234: in function `UpdateFrame'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua:672: in function `FocusStepUnquiet'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua:656: in function `FocusStep'
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe
    AddOns:
    Swatter, v5.14.5335 (KowariOnCrutches)
    NPCScan, v5.0.0.5
    ArkInventory, v30320
    ArkInventoryRules, v
    AtlasLootLoader, vv7.03.01
    AucAdvanced, v5.14.5335 (KowariOnCrutches)
    AucFilterBasic, v5.14.5335 (KowariOnCrutches)
    AucFilterOutlier, v5.14.5335.5335(5.14/embedded)
    AucMatchUndercut, v5.14.5335.5225(5.14/embedded)
    AucStatHistogram, v5.14.5335 (KowariOnCrutches)
    AucStatiLevel, v5.14.5335 (KowariOnCrutches)
    AucStatPurchased, v5.14.5335 (KowariOnCrutches)
    AucStatSales, v5.14.5335.5335(5.14/embedded)
    AucStatSimple, v5.14.5335 (KowariOnCrutches)
    AucStatStdDev, v5.14.5335 (KowariOnCrutches)
    AucStatWOWEcon, v5.14.5335.5335(5.14/embedded)
    AucUtilAHWindowControl, v5.14.5335.5133(5.14/embedded)
    AucUtilAppraiser, v5.14.5335.5335(5.14/embedded)
    AucUtilAskPrice, v5.14.5335.5160(5.14/embedded)
    AucUtilAutoMagic, v5.14.5335.5335(5.14/embedded)
    AucUtilCompactUI, v5.14.5335.5335(5.14/embedded)
    AucUtilEasyBuyout, v5.14.5335.5238(5.14/embedded)
    AucUtilFixAH, v5.14.5335 (KowariOnCrutches)
    AucUtilItemSuggest, v5.14.5335.5335(5.14/embedded)
    AucUtilPriceLevel, v5.14.5335.5237(5.14/embedded)
    AucUtilScanButton, v5.14.5335.5335(5.14/embedded)
    AucUtilScanFinish, v5.14.5335.5153(5.14/embedded)
    AucUtilScanProgress, v5.14.5335.4979(5.14/embedded)
    AucUtilScanStart, v5.14.5335.5153(5.14/embedded)
    AucUtilSearchUI, v5.14.5335.5335(5.14/embedded)
    AucUtilSimpleAuction, v5.14.5335.5208(5.14/embedded)
    AucUtilVendMarkup, v5.14.5335.4828(5.14/embedded)
    Babylonian, v5.1.DEV.312(/embedded)
    BeanCounter, v5.14.5335 (KowariOnCrutches)
    Configator, v5.1.DEV.330(/embedded)
    DBMCore, v
    DebugLib, v5.1.DEV.312(/embedded)
    Enchantrix, v5.14.5335 (KowariOnCrutches)
    EnchantrixBarker, v5.14.5335 (KowariOnCrutches)
    Informant, v5.14.5335 (KowariOnCrutches)
    LibExtraTip, v5.12.DEV.324(/embedded)
    SlideBar, v5.14.5335 (KowariOnCrutches)
    Stubby, v5.14.5335 (KowariOnCrutches)
    TipHelper, v5.12.DEV.315(/embedded)
    ZygorGuidesViewer, v4.0
    BlizRuntimeLib_enUS v5.0.5.50001 <us>
    (ck=7ee)

    Date: 2012-11-27 17:47:50
    ID: 2
    Error occured in: Global
    Count: 66
    Message: [string "_Update() return not not (repval('The Till..."] line 1:
    attempt to call global 'compltetedq' (a nil value)
    Debug:
    [C]: compltetedq()
    [string "_Update() return not not (repval('The Till..."]:1: in main chunk
    (tail call): ?
    ZygorGuidesViewer\Goal.lua:36: GetStatus()
    ZygorGuidesViewer\Goal.lua:49: UpdateStatus()
    ZygorGuidesViewer\Step.lua:40: IsComplete()
    ZygorGuidesViewer\Guide.lua:127: GetCompletion()
    ...dOns\ZygorGuidesViewer\Skins\Default\ViewerFram e.lua:82: ZygorGuidesViewer_ProgressBar_Update()
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua:2654: ?()
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua:2234: UpdateFrame()
    ...dOns\ZygorGuidesViewer\Skins\Default\ViewerFram e.lua:1064:
    ...dOns\ZygorGuidesViewer\Skins\Default\ViewerFram e.lua:1057
    [C]: GetHeight()
    ...rface\AddOns\ZygorGuidesViewer\ZygorGuidesViewe r.lua:2232: UpdateFrame()
    ...dOns\ZygorGuidesViewer\Skins\Default\ViewerFram e.lua:974:
    ...dOns\ZygorGuidesViewer\Skins\Default\ViewerFram e.lua:789
    Locals:
    (*temporary) = nil
    (*temporary) = 31946
    (*temporary) = "attempt to call global 'compltetedq' (a nil value)"

    AddOns:
    Swatter, v5.14.5335 (KowariOnCrutches)
    NPCScan, v5.0.0.5
    ArkInventory, v30320
    ArkInventoryRules, v
    AtlasLootLoader, vv7.03.01
    AucAdvanced, v5.14.5335 (KowariOnCrutches)
    AucFilterBasic, v5.14.5335 (KowariOnCrutches)
    AucFilterOutlier, v5.14.5335.5335(5.14/embedded)
    AucMatchUndercut, v5.14.5335.5225(5.14/embedded)
    AucStatHistogram, v5.14.5335 (KowariOnCrutches)
    AucStatiLevel, v5.14.5335 (KowariOnCrutches)
    AucStatPurchased, v5.14.5335 (KowariOnCrutches)
    AucStatSales, v5.14.5335.5335(5.14/embedded)
    AucStatSimple, v5.14.5335 (KowariOnCrutches)
    AucStatStdDev, v5.14.5335 (KowariOnCrutches)
    AucStatWOWEcon, v5.14.5335.5335(5.14/embedded)
    AucUtilAHWindowControl, v5.14.5335.5133(5.14/embedded)
    AucUtilAppraiser, v5.14.5335.5335(5.14/embedded)
    AucUtilAskPrice, v5.14.5335.5160(5.14/embedded)
    AucUtilAutoMagic, v5.14.5335.5335(5.14/embedded)
    AucUtilCompactUI, v5.14.5335.5335(5.14/embedded)
    AucUtilEasyBuyout, v5.14.5335.5238(5.14/embedded)
    AucUtilFixAH, v5.14.5335 (KowariOnCrutches)
    AucUtilItemSuggest, v5.14.5335.5335(5.14/embedded)
    AucUtilPriceLevel, v5.14.5335.5237(5.14/embedded)
    AucUtilScanButton, v5.14.5335.5335(5.14/embedded)
    AucUtilScanFinish, v5.14.5335.5153(5.14/embedded)
    AucUtilScanProgress, v5.14.5335.4979(5.14/embedded)
    AucUtilScanStart, v5.14.5335.5153(5.14/embedded)
    AucUtilSearchUI, v5.14.5335.5335(5.14/embedded)
    AucUtilSimpleAuction, v5.14.5335.5208(5.14/embedded)
    AucUtilVendMarkup, v5.14.5335.4828(5.14/embedded)
    Babylonian, v5.1.DEV.312(/embedded)
    BeanCounter, v5.14.5335 (KowariOnCrutches)
    Configator, v5.1.DEV.330(/embedded)
    DBMCore, v
    DebugLib, v5.1.DEV.312(/embedded)
    Enchantrix, v5.14.5335 (KowariOnCrutches)
    EnchantrixBarker, v5.14.5335 (KowariOnCrutches)
    Informant, v5.14.5335 (KowariOnCrutches)
    LibExtraTip, v5.12.DEV.324(/embedded)
    SlideBar, v5.14.5335 (KowariOnCrutches)
    Stubby, v5.14.5335 (KowariOnCrutches)
    TipHelper, v5.12.DEV.315(/embedded)
    ZygorGuidesViewer, v4.0
    BlizRuntimeLib_enUS v5.0.5.50001 <us>
    (ck=7ee)

    Sorry if i posted in the wrong place.

    Comment


      #3
      Check out my quick fix on the 2nd page in this thread.
      http://www.zygorguides.com/forum/sho...g-Errors/page2
      My Flight Path Follies guide

      A pessimist knows all women are bad... an optimist hopes they are.

      I reject your reality and substitute my own.

      All foreign languages are done with Google Translate.

      Comment

      Working...
      X