266 - Global error

Grail version:

Date: 2013-07-29 13:18:05
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Grail\Grail.lua line 3138:
   bad argument #1 to 'strsub' (string expected, got function)
   [C]: ?
   Grail\Grail.lua:3138 f()
   Grail\Grail.lua:1753 _AllEvaluateTrueF()
   Grail\Grail.lua:1843 _AnyEvaluateTrueF()
   Grail\Grail.lua:1782 _AllEvaluateTrueS()
   (tail call): ?
   (tail call): ?
   Grail\Grail.lua:4275 MeetsPrerequisites()
   Grail\Grail.lua:6059 StatusCode()
   Grail\Grail.lua:2066 ClassificationOfQuestCode()
   Wholly\Wholly.lua:918 _ClassifyQuestsInMap()
   Wholly\Wholly.lua:1202 _ForcePanelMapArea()
   Wholly\Wholly.lua:3372 UpdateQuestCaches()
   Wholly\Wholly.lua:562 ?()
   Wholly\Wholly.lua:1706 _OnEvent()
(*temporary) = <function> defined @Interface\AddOns\DugisGuideViewerZ\WorldMapTracking.lua:225
(*temporary) = 1
(*temporary) = 1
(*temporary) = "string expected, got function"

  Swatter, v4.3.1 (<%codename%>)
  WowheadLooter, v50011
  NPCScan, v5.0.0.5
  NPCScanOverlay, v5.0.0.3
  AckisRecipeList, v2.5.0
  ArmoryQuickLink, v2.2
  Atlas, v1.25.00
  AtlasBattlegrounds, v1.25.01
  AtlasBurningCrusade, v1.25.00
  AtlasCataclysm, v1.25.00
  AtlasClassicWoW, v1.25.00
  AtlasDungeonLocs, v1.25.00
  AtlasOutdoorRaids, v1.25.00
  AtlasScenarios, v1.25.01
  AtlasTransportation, v1.25.01
  AtlasWorldEvents, v3.04
  AtlasWrathoftheLichKing, v1.25.00
  AtlasLootLoader, vv7.06.00
  AtlasQuest, v4.8.4
  AucAdvanced, v5.17.5413 (NeedyNoddy)
  AucFilterBasic, v5.17.5413 (NeedyNoddy)
  AucFilterOutlier, v5.17.5413.5347(5.17/embedded)
  AucMatchUndercut, v5.17.5413.5364(5.17/embedded)
  AucScanData, v5.17.5413 (NeedyNoddy)
  AucStatHistogram, v5.17.5413 (NeedyNoddy)
  AucStatiLevel, v5.17.5413 (NeedyNoddy)
  AucStatPurchased, v5.17.5413 (NeedyNoddy)
  AucStatSales, v5.17.5413.5376(5.17/embedded)
  AucStatSimple, v5.17.5413 (NeedyNoddy)
  AucStatStdDev, v5.17.5413 (NeedyNoddy)
  AucStatWOWEcon, v5.17.5413.5323(5.17/embedded)
  AucUtilAHWindowControl, v5.17.5413.5347(5.17/embedded)
  AucUtilAppraiser, v5.17.5413.5393(5.17/embedded)
  AucUtilAskPrice, v5.17.5413.5347(5.17/embedded)
  AucUtilAutoMagic, v5.17.5413.5392(5.17/embedded)
  AucUtilCompactUI, v5.17.5413.5400(5.17/embedded)
  AucUtilEasyBuyout, v5.17.5413.5347(5.17/embedded)
  AucUtilFixAH, v5.17.5413 (NeedyNoddy)
  AucUtilItemSuggest, v5.17.5413.5365(5.17/embedded)
  AucUtilPriceLevel, v5.17.5413.5365(5.17/embedded)
  AucUtilScanButton, v5.17.5413.5403(5.17/embedded)
  AucUtilScanFinish, v5.17.5413.5347(5.17/embedded)
  AucUtilScanProgress, v5.17.5413.4979(5.17/embedded)
  AucUtilScanStart, v5.17.5413.5347(5.17/embedded)
  AucUtilSearchUI, v5.17.5413.5373(5.17/embedded)
  AucUtilSimpleAuction, v5.17.5413.5388(5.17/embedded)
  AucUtilVendMarkup, v5.17.5413.4828(5.17/embedded)
  Babylonian, v5.1.DEV.332(/embedded)
  BagBrother, v
  Bagnon, v5.3.6
  Bartender4, v4.5.10
  BeanCounter, v5.17.5413 (NeedyNoddy)
  Configator, v5.1.DEV.344(/embedded)
  DBMCore, v
  DebugLib, v5.1.DEV.337(/embedded)
  DugisGuideViewerZ, v2.649
  Enchantrix, v5.17.5413 (NeedyNoddy)
  EnchantrixBarker, v5.17.5413 (NeedyNoddy)
  Gatherer, v4.3.1
  GatherMate2, v1.26
  Grail, v051
  GrailAchievements, v007
  GrailReputations, v006
  Informant, v5.17.5413 (NeedyNoddy)
  LibExtraTip, v5.12.DEV.350(/embedded)
  NPCScanEx, v1.2.2
  Omen, v3.1.8
  OmniCC, v5.3.1
  PetTracker, v
  PetTrackerAlerts, v
  PetTrackerSwitcher, v
  Postal, v3.5.1
  Quartz, v3.1.3
  SlideBar, v4.3.1 (<%codename%>)
  Stubby, v5.17.5413 (NeedyNoddy)
  TipHelper, v5.12.DEV.351(/embedded)
  TomTom, vv50300-1.0.1
  Wholly, v035
  BlizRuntimeLib_enUS v5.3.0.50300 <us>

If you think it beneficial, please attach your Grail.lua saved variables file when you submit this ticket.

GrailDatabase = {
    ["NewQuests"] = {
        [0] = {
            "K0000 A:18261", -- [1]
            "51/16/15/0", -- [2]
            ["enUS"] = "NO TITLE PROVIDED BY BLIZZARD",
    ["delayEvents"] = true,
    ["SpecialQuests"] = {
        ["More Obsidian Warbeads"] = true,
        ["Path of the Violet Mage"] = true,
        ["More Warbeads"] = true,
        ["Path of the Violet Assassin"] = true,
    ["delayEventsHandled"] = true,
    ["BadQuestData"] = {
        "G51|US|17128|G[9982][6]={'3D2350'}", -- [1]
        "G51|US|17128|G[9938][6]={'3D2250'}", -- [2]
        "G51|US|17128|G[27726][6]={'04810','1D52','02F2','0362','0452','3A22','46E2','5492'}", -- [3]
        "G51|US|17128|G[543][6]={'048500','1D5125','02F125','036125','045125','3A2125','46E125','549125'}", -- [4]
        "G51|US|17128|G[25317][6]={'486150'}", -- [5]

User When Change
Nimhfree Oct 24, 2013 at 22:14 UTC Changed status from Waiting to Fixed
Nimhfree Sep 16, 2013 at 15:17 UTC Changed status from Replied to Waiting
LudovicusMaior Aug 21, 2013 at 13:20 UTC Changed status from Waiting to Replied
Nimhfree Aug 08, 2013 at 12:34 UTC Changed status from New to Waiting
magalis Jul 29, 2013 at 18:26 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Nimhfree Nimhfree Sep 16, 2013 at 15:16 UTC - 0 likes

    I believe I have solved the issue. There were two problems: (1) Grail was using a variable of the wrong name, and (2) Dugi guides is leaking a variable into the global namespace. I have put up a prerelease version that hopefully fixes the issue if you are interested in trying it out. It can be found at

  • Avatar of LudovicusMaior LudovicusMaior Aug 21, 2013 at 13:20 UTC - 0 likes

    From DugisGuideViewerZ\WorldMapTracking.lua (v2.649):

    	function DataProviders.Vendor:ProvidesFor(trackingType)
    		return trackingType==1 or trackingType==5 or trackingType==6  or trackingType==7 or
    			trackingType==9 or trackingType==11 or trackingType==12
    	function DataProviders.Vendor:ShouldShow(trackingType, location, npc, subZone, ...)  --LFO Line 225
    		ValidateNumber(npc, trackingType, location, npc, subZone, ...)
    		if not DGV:CheckRequirements(...) then return end
    		local class = select(2,UnitClass("player"))
    		if (trackingType==9 and class~="ROGUE") then return false end
    		return true
  • Avatar of Nimhfree Nimhfree Jul 29, 2013 at 20:08 UTC - 0 likes

    Can you show me the code from the Dugi addon Interface\AddOns\DugisGuideViewerZ\WorldMapTracking.lua around line 225? Like 10 lines before that and 10 lines after that?

    Do you remember what you were doing when this happened? Were you turning in a quest, changing zones, etc.?



Last updated
Oct 24, 2013
Jul 29, 2013
Fixed - Developer made requested changes. QA should verify.
Defect - A shortcoming, fault, or imperfection
Medium - Normal priority.

Reported by

Possible assignees