Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LUA Error upon UI load/reload that prevents the addon from working #2148

Closed
kirbuslee opened this issue Feb 6, 2024 · 1 comment
Closed

Comments

@kirbuslee
Copy link

kirbuslee commented Feb 6, 2024

WoW Version

Classic/Classic SoM

TellMeWhen Version

10.2.2

Describe the bug

The WoW Classic Era client got updated today and now when you load into the game (or do a /reload while in-game) the following error shows up:

Message: TellMeWhen: ...e/AddOns/TellMeWhen/Components/Core/Common/Auras.lua:342: attempt to call upvalue 'UnitAuraSlots' (a nil value)
Time: Tue Feb  6 14:24:54 2024
Count: 1
Stack: TellMeWhen: ...e/AddOns/TellMeWhen/Components/Core/Common/Auras.lua:342: attempt to call upvalue 'UnitAuraSlots' (a nil value)
[string "@Interface/AddOns/TellMeWhen/TellMeWhen.lua"]:2820: in function <Interface/AddOns/TellMeWhen/TellMeWhen.lua:2777>

Locals: self = TMW {
 0 = <userdata>
 OnGCD = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:376
 Vararg = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:1036
 SlashCommand = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:3023
 modules = <table> {
 }
 CancelTimer = <function> defined @Interface/AddOns/AngryEra/libs/AceTimer-3.0/AceTimer-3.0.lua:147
 GroupsToUpdate = <table> {
 }
 GetBaseUpgrades = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:1514
 GCDSpell = 53
 InNLengthTable = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:1060
 InIconSettings = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:926
 GetSpells = <function> defined 			local cachemeta = { __mode = 'kv' }
			local cache = setmetatable({}, cachemeta)
			local nilKey = {}
			local func = ...
			return function(arg1,arg2,arg3, ...)
	local next, prev, key = cache
	
 key = arg1 == nil and nilKey or arg1
 prev = next; next = prev[key]
 if not next then next = setmetatable({}, cachemeta) prev[key] = next end
 key = arg2 == nil and nilKey or arg2
 prev = next; next = prev[key]
 if not next then next = setmetatable({}, cachemeta) prev[key] = next end
 key = arg3 == nil and nilKey or arg3
 prev = next; next = prev[key]	if next ~= nil then return next end
	local ret = func(arg1,arg2,arg3, ...)
		prev[key] = ret
		return ret;
	end, cache
	:5
 SetDefaultModulePrototype = <function> defined @Interface/AddOns/AngryEra/libs/AceAddon-3.0/AceAddon-3.0.lua:405
 TryGetNPCName = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:1610
 Classes = <table> {
 }
 DS = <table> {
 }
 TT_Parse = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:1245
 IsEnabled = <function> defined @Interface/AddOns/AngryEra/libs/AceAddon-3.0/AceAddon-3.0.lua:447
 HSVToRGB = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:716
 isRetail = false
 UnregisterMessage = <function> defined @Interface/AddOns/AngryEra/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
 Update = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:2865
 AnimateHeightChange = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:1332
 toSeconds = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:476
 isClassic = true
 Group_Defaults = <table> {
 }
 GetParser = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:1573
 GetDataOwner = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:1329
 SetEnabledState = <function> defined @Interface/AddOns/AngryEra/libs/AceAddon-3.0/AceAddon-3.0.lua:420
 CopyWithMetatable = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:924
 ValidateType = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:551
 SpellTexturesMetaIndex = <table> {
 }
 InGroups = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:1002
 tDeleteItem = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:827
 RegisterLuaImportDetector = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:1646
 tContains = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Utils.lua:808
 Fire = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:823
 InGroupSettings = <function> defined @Interface/AddOns/TellMeWhen/TellMeWhen.lua:964
 Initialized = true
 EquivFirstIDLookup = <table> {
 }
 tRemoveDuplicates = <function> defined @Interface/AddOns/TellMeW

You can get the addon to work by opening the options via command /TMW which then launches this LUA error:

Message: ...e/AddOns/TellMeWhen/Components/Core/Common/Auras.lua:342: attempt to call upvalue 'UnitAuraSlots' (a nil value)
Time: Tue Feb  6 14:28:22 2024
Count: 1
Stack: ...e/AddOns/TellMeWhen/Components/Core/Common/Auras.lua:342: attempt to call upvalue 'UnitAuraSlots' (a nil value)
[string "@Interface/AddOns/TellMeWhen/Components/Core/Common/Auras.lua"]:342: in function <...e/AddOns/TellMeWhen/Components/Core/Common/Auras.lua:330>
[string "@Interface/AddOns/TellMeWhen/Components/IconTypes/IconType_buff/buff.lua"]:427: in function `UpdateFunction'
[string "@Interface/AddOns/TellMeWhen/Components/Core/Icon.lua"]:784: in function `Update'
[string "@Interface/AddOns/TellMeWhen/Components/IconTypes/IconType_buff/buff.lua"]:859: in function <...llMeWhen/Components/IconTypes/IconType_buff/buff.lua:776>
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "safecall Dispatcher[2]"]:9: in function <[string "safecall Dispatcher[2]"]:5>
[string "=(tail call)"]: ?
[string "@Interface/AddOns/TellMeWhen/Components/Core/Icon.lua"]:1038: in function <Interface/AddOns/TellMeWhen/Components/Core/Icon.lua:937>
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5>
...
[string "=(tail call)"]: ?
[string "@Interface/AddOns/TellMeWhen/TellMeWhen.lua"]:2728: in function `UpdateNormally'
[string "@Interface/AddOns/TellMeWhen/TellMeWhen.lua"]:2877: in function `Update'
[string "@Interface/AddOns/TellMeWhen/TellMeWhen.lua"]:3019: in function `LockToggle'
[string "@Interface/AddOns/TellMeWhen/TellMeWhen.lua"]:3137: in function `?'
[string "@Interface/AddOns/AngryEra/libs/AceConsole-3.0/AceConsole-3.0.lua"]:90: in function `?'
[string "@Interface/FrameXML/ChatFrame.lua"]:4975: in function `ChatEdit_ParseText'
[string "@Interface/FrameXML/ChatFrame.lua"]:4638: in function `ChatEdit_SendText'
[string "@Interface/FrameXML/ChatFrame.lua"]:4674: in function `ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:121_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:121_OnEnterPressed"]:1>

Locals: unit = "player"
unitData = <table> {
 lookup = <table> {
 }
 instances = <table> {
 }
}
instances = <table> {
}
lookup = <table> {
}
(*temporary) = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Common/Auras.lua:298
(*temporary) = "player"
(*temporary) = <table> {
}
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = "player"
(*temporary) = "HELPFUL"
(*temporary) = "attempt to call upvalue 'UnitAuraSlots' (a nil value)"
data = <table> {
 target = <table> {
 }
 player = <table> {
 }
}
UpdateAuras = <function> defined @Interface/AddOns/TellMeWhen/Components/Core/Common/Auras.lua:298
UnitAuraSlots = nil

Closing this error then allows the addon to work properly, from what I can tell.

Export Strings

N/A
@ascott18
Copy link
Owner

ascott18 commented Feb 7, 2024

Looks like Blizzard merged in the 10.2.5 API changes without bringing over the deprecations...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants