Progress.lua:431: attempt to index local 'prev' (a nil value)
Tiiara opened this issue · 3 comments
Describe the bug
Whenever I log in or use a teleport / portal / hearthstone or somesuch I get the following error msg:
Do you have an error log of what happened?
22x SavedInstances\Modules\Progress.lua:431: attempt to index local 'prev' (a nil value)
[string "@SavedInstances\Modules\Progress.lua"]:431: in function 'OnWeeklyReset'
[string "@SavedInstances\Core\Core.lua"]:1408: in function 'UpdateToonData'
[string "@SavedInstances\Core\Core.lua"]:2570: in function <SavedInstances\Core\Core.lua:2566>
[string "=[C]"]: ?
[string "@datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:29: in function <...ore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:25>
[string "@datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:64: in function 'Fire'
[string "@datastore\libs\AceEvent-3.0\AceEvent-3.0-4.lua"]:120: in function <DataStore\libs\AceEvent-3.0\AceEvent-3.0.lua:119>
1x SavedInstances\Modules\Progress.lua:431: attempt to index local 'prev' (a nil value)
[string "@SavedInstances\Modules\Progress.lua"]:431: in function 'OnWeeklyReset'
[string "@SavedInstances\Core\Core.lua"]:1408: in function 'UpdateToonData'
[string "@SavedInstances\Core\Core.lua"]:3450: in function 'ShowTooltip'
[string "@SavedInstances\Core\Core.lua"]:2531: in function <SavedInstances\Core\Core.lua:2529>
[string "@titan\LDBToTitan.lua"]:327: in function <Titan\LDBToTitan.lua:286>
Locals:
self =
SetDefaultModuleLibraries = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:367
Enable = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:294
UnregisterAllEvents = defined @datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
EnableModule = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:332
modules =
}
GetModule = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:210
IterateEmbeds = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:442
ShowTooltip = defined @SavedInstances\Modules\Progress.lua:478
defaultModuleLibraries =
}
UpdateAll = defined @SavedInstances\Modules\Progress.lua:368
BuildOptions = defined @SavedInstances\Modules\Progress.lua:442
GetName = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:279
name = "SavedInstances_Progress"
TrackedQuest =
}
IsEnabled = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:451
orderedModules =
}
DisableModule = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:350
RegisterMessage = defined @datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
UnregisterMessage = defined @datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
IsModule = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:217
OnWeeklyReset = defined @SavedInstances\Modules\Progress.lua:421
SetDefaultModuleState = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:387
questMap =
}
SetEnabledState = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:424
OnDailyReset = defined @SavedInstances\Modules\Progress.lua:400
enabledState = true
baseName = "SavedInstances"
RegisterEvent = defined @datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
UnregisterAllMessages = defined @datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
Disable = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:314
OnEnable = defined @SavedInstances\Modules\Progress.lua:361
SetDefaultModulePrototype = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:409
IterateModules = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:437
NewModule = defined @datastore\libs\AceAddon-3.0\AceAddon-3.0.lua:235
defaultModuleState = true
SendMessage = defined @datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:59
moduleName = "Progress"
UnregisterEvent = defined @datastore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
QuestEnabled = defined @SavedInstances\Modules\Progress.lua:454
}
toon = "Anastasìia - Antonidas"
t =
Paragon =
}
IL = 177.437500
LastSeen = 1593548630
Emissary =
}
Class = "MAGE"
WeeklyResetTime = 1619593199
Progress =
}
DailyResetTime = 1619679599
Race = "Human"
oRace = "Human"
Warmode = false
LClass = "Mage"
Level = 110
XP = 10452
RBGrating = 0
MythicKeyBest =
}
RestXP = 806332
MythicKey =
}
Zone = "Nagrand"
Money = 4596409748
Order = 50
currency =
}
PlayedTotal = 353254
Show = "saved"
MaxXP = 537730
PlayedLevel = 188524
Faction = "Alliance"
ILe = 151.750000
Skills =
}
Quests =
}
isResting = false
}
(for generator) = defined =[C]:-1
(for state) =
1 =
}
2 = <ta
To Reproduce
- Log In
- Error shows up
- Use hearthsone
- Error shows up
- Hover over the SavedInstances options in Titan Panel
- Error shows up
- etc.
Did you try having SavedInstances as the only enabled addon and everything else (especially something like ElvUI) disabled?
No
Which version of SavedInstances are you using?
SavedInstances-9.0.7-10-g2446c91.zip
Was it working in a previous version? If yes, which was the last good one?
Yes. First time I got this error. Monday was still fine.
I find your error line is in old version of SI. You might need to reload after update.
Phew, for a minute there I thought my changes were causing this. Anyhow, can confirm your changes in 2446c91 fix this.