View Bug Report
Not working lua error at login
Bug #: 2473
File: AwesomeGuildStore
Date: 07/28/19 08:16 AM
By: melcor333
Status: Not a Bug
Hello,

thanks for your awesome work, but since changes in guild store interface, I've getting this two lua errors on login or /reloadui (when addon is enabled):

Code:
user:/AddOns/LibDebugLogger/LibDebugLogger.lua:108: attempt to index a nil value
stack traceback:
user:/AddOns/LibDebugLogger/LibDebugLogger.lua:108: in function 'FormatTime'
<Locals> timestamp = 1564319934417 </Locals>
user:/AddOns/LibDebugLogger/LibDebugLogger.lua:401: in function '(main chunk)'
<Locals> LIB_IDENTIFIER = "LibDebugLogger", lib = tbl, TAG_INGAME = "UI", LOG_LEVEL_DEBUG = "D", LOG_LEVEL_INFO = "I", LOG_LEVEL_WARNING = "W", LOG_LEVEL_ERROR = "E", NUM_MAX_ENTRIES = 10000, LOG_PRUNE_THRESHOLD = 11000, MAX_ENTRY_AGE = 86400000, MAX_SAVE_DATA_LENGTH = 1999, ENTRY_TIME_INDEX = 1, ENTRY_FORMATTED_TIME_INDEX = 2, ENTRY_OCCURENCES_INDEX = 3, ENTRY_LEVEL_INDEX = 4, ENTRY_TAG_INDEX = 5, ENTRY_MESSAGE_INDEX = 6, ENTRY_STACK_INDEX = 7, STARTUP_LOG_TRACES = true, STARTUP_LOG_LEVEL = "D" </Locals>
Code:
user:/AddOns/LibDateTime/LibDateTime.lua:106: operator + is not supported for number + nil
stack traceback:
user:/AddOns/LibDateTime/LibDateTime.lua:106: in function 'lib:CombineIsoWeekAndYear'
<Locals> self = tbl, year = 2019 </Locals>
user:/AddOns/LibDateTime/LibDateTime.lua:144: in function 'lib:GetTraderWeek'
<Locals> self = tbl, weekOffset = 0, _ = 1564340100, endTime = 1564340400, startTime = 1563735600, isoWeekTime = 1563908400, year = 2019 </Locals>
user:/AddOns/AwesomeGuildStore/guildstorelist/OwnerList.lua:85: in function 'OwnerList:GetCurrentWeek'
<Locals> self = tbl </Locals>
user:/AddOns/AwesomeGuildStore/guildstorelist/OwnerList.lua:59: in function 'OwnerList:Initialize'
<Locals> self = tbl, saveData = tbl, guildIdMapping = tbl, weekOrder = tbl </Locals>
user:/AddOns/AwesomeGuildStore/guildstorelist/OwnerList.lua:10: in function 'OwnerList:New'
<Locals> self = tbl, object = tbl </Locals>
user:/AddOns/AwesomeGuildStore/guildstorelist/GuildStoreList.lua:601: in function 'InitializeGuildStoreList'
<Locals> globalSaveData = tbl, KioskData = tbl, StoreData = tbl, saveData = tbl, lang = "en", guildIdMapping = tbl </Locals>
user:/AddOns/AwesomeGuildStore/StartUp.lua:247: in function 'callback'
<Locals> saveData = tbl </Locals>
user:/AddOns/AwesomeGuildStore/StartUp.lua:47: in function '(anonymous)'
<Locals> event = 65536, name = "AwesomeGuildStore" </Locals>
I have all needed libraries installed.
Thank you for your time

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: sirinsidiator - 08/11/19 07:55 AM
These errors are quite strange and shouldn't be possible. What operating system are you playing on? For me it looks like the os.date function is returning nil for some calls where it should actually return formatted strings.
By: melcor333 - 08/12/19 11:12 AM
Hi, actually it's on Manjaro Linux, running under wine. Can I do anything to get it work? f you can point me somewhere to look for.

Thanks a lot
By: sirinsidiator - 08/12/19 11:46 AM
Unfortunately I don't have a solution for that problem. I can think of two ways how this could be solved though.
1) somehow get wine to use the correct strftime function which is used by eso on windows and macos
2) implement a Lua wrapper for os.date which handles the unsupported modifiers

Someone did work on a os.date replacement for linux users some time ago, but I haven't heard from them since, so it's probably not finished. Maybe check the comments for AGS if you can find who it was and write them a pm.