Butter Quest Tracker

Butter Quest Tracker

97.1k Downloads

Error when Switching Zones with Quest Proximity Sorting Enabled

Spiricore opened this issue ยท 3 comments

commented

I received this error after hearthing to a zone with a quest turn-in in it. I have Current Zone Only selected and filtering by Quest Proximity.

Cheers, and thanks for this addon!

ID: 1
Error occured in: Global
Count: 1
Message: ...ace\AddOns\ButterQuestTracker\ButterQuestTracker.lua line 500:
attempt to perform arithmetic on local 'order' (a nil value)
Debug:
...ace\AddOns\ButterQuestTracker\ButterQuestTracker.lua:500: Sort()
...ace\AddOns\ButterQuestTracker\ButterQuestTracker.lua:240:
...ace\AddOns\ButterQuestTracker\ButterQuestTracker.lua:229
..\SharedXML\C_TimerAugment.lua:16:
..\SharedXML\C_TimerAugment.lua:14
Locals:
self =

{
GetQuestHeader = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:457
SetDefaultModuleLibraries = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:367
ToggleContextMenu = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:774
OnInitialize = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:42
NewModule = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:235
EnableModule = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:332
modules =
{
}
GetModule = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:210
IterateEmbeds = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:442
RefreshView = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:510
defaultModuleLibraries =
{
}
ShowWowheadPopup = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:141
RefreshQuestWatch = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:253
GetQuestInfo = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:294
hiddenContainers =
{
}
SetDefaultModulePrototype = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:409
name = "ButterQuestTracker"
IsEnabled = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:451
orderedModules =
{
}
DisableModule = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:350
questContainers =
{
}
LogInfo = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:877
playerPosition =
{
}
questProximityTimer =
{
}
GetTrackerHeader = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:447
tracker = TrackerHelperFrame1 {
}
baseName = "ButterQuestTracker"
IsModule = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:468
db =
{
}
SetDefaultModuleState = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:387
LogTrace = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:881
LogWarn = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:873
SetEnabledState = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:424
Debug = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:863
enabledState = true
LogError = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:869
ShouldWatchQuest = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:274
Sort = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:473
questsContainer = TrackerHelperContainer4 {
}
Enable = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:294
ResetOverrides = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:857
IterateModules = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:437
UpdateQuestWatch = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:266
UpdateQuestProximityTimer = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:224
OnEnable = defined @interface\AddOns\ButterQuestTracker\ButterQuestTracker.lua:124
GetName = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:279
defaultModuleState = true
Disable = defined @interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:314
}
quests =
{
2500 =
{
}
}
keys =
{
1 = 2500
}
questIDToOrderMap =
{
2500 = 1
}
zoneToOrderMap =
{
Loch Modan = 1
}
(for generator) = defined =[C]:-1
(for state) =
{
1 = TrackerHelperContainer`

commented

Hey @Spiricore, thanks for taking the time to submit an issue.

This is actually a really interesting error.
I'm guessing this is a race condition between your zone changing and the quest proximity timer.

Basically the quests had already updated, but the view hadn't refreshed.

As such when it attempted to sort the (now outdated) zones it threw an
error since those zones no longer existed in your list of tracked quests.

commented

closed via ed94fb7

commented

Hey @Spiricore, a fix for this should now be available in 1.9.7.

Let me know if you run into any other issues!