
attempt to index field 'sets' (a nil value)
Mike160770 opened this issue ยท 6 comments
1x Interface/AddOns/PetTracker/addons/main/main.lua:69: attempt to index field 'sets' (a nil value)
[string "@Interface/AddOns/PetTracker/addons/main/main.lua"]:69: in function <Interface/AddOns/PetTracker/addons/main/main.lua:68>
[string "=(tail call)"]: ?
[string "@Interface/AddOns/Blizzard_Menu/DropdownButton.lua"]:32: in function op
[string "@Interface/AddOns/Blizzard_Menu/MenuUtil.lua"]:38: in function <Interface/AddOns/Blizzard_Menu/MenuUtil.lua:36>
[string "@Interface/AddOns/Blizzard_Menu/MenuUtil.lua"]:56: in function TraverseMenu
[string "@Interface/AddOns/Blizzard_Menu/DropdownButton.lua"]:27: in function <Interface/AddOns/Blizzard_Menu/DropdownButton.lua:17>
[string "@Interface/AddOns/Blizzard_Menu/DropdownButton.lua"]:285: in function SignalUpdate
[string "@Interface/AddOns/Blizzard_Menu/Menu.lua"]:2558: in function ModifyMenu
[string "@Interface/AddOns/BattlePetCompletionist/Modules/Map/MapModule.lua"]:209: in function InitializeDropDown
[string "@Interface/AddOns/BattlePetCompletionist/Modules/Map/MapModule.lua"]:218: in function <...Ons/BattlePetCompletionist/Modules/Map/MapModule.lua:216>
[string "=[C]"]: ?
[string "@Interface/AddOns/ChatCopyPaste/Lib/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...dOns/ChatCopyPaste/Lib/AceAddon-3.0/AceAddon-3.0.lua:61>
...
[string "@Interface/AddOns/Blizzard_UIParent/Mainline/UIParent.lua"]:628: in function MajorFactions_LoadUI
[string "@Interface/AddOns/Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:96: in function SetUpMajorFactionList
[string "@Interface/AddOns/Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:89: in function RefreshMajorFactionList
[string "@Interface/AddOns/Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:84: in function RefreshOverlay
[string "@Interface/AddOns/Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:76: in function <...pansionLandingPage/Blizzard_WarWithinLandingPage.lua:72>
[string "=[C]"]: ?
[string "=[C]"]: in function CreateFrame
[string "@Interface/AddOns/Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:48: in function CreateOverlay
[string "@Interface/AddOns/MissionReportButtonPlus/MissionReportButtonPlus.lua"]:1588: in function RefreshExpansionOverlay
[string "@Interface/AddOns/Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:37: in function <...pansionLandingPage/Blizzard_ExpansionLandingPage.lua:35>
Locals:
key = "showSpecies"
(*temporary) = "attempt to index field 'sets' (a nil value)"
Addon =
SpeciePin =
}
Enemy =
}
MaxLevel = 25
Entity =
}
Species =
}
JournalSlot =
}
Rival =
}
StablePin =
}
Tooltips =
}
MaxPlayerQuality = 4
MapCanvas =
}
Tracker =
}
SpecieLine =
}
AbilityDisplay =
}
Broker =
}
RivalInfo =
}
Pin =
}
Tag = "PetTracker."
BattleSlot =
}
Pet =
}
AbilityAction =
}
MaxQuality = 6
Stables =
}
ProgressBar =
}
SpecieStats =
}
RivalPin =
}
MultiTip =
}
Specie =
}
PetSlot =
}
Rivals =
}
Base =
}
Ability =
}
Predict =
}
SpecieBreeds =
}
Maps =
}
Breeds =
}
AbilityButton =
}
RivalOrder =
}
Name = "PetTracker"
Objectives = Frame {
}
}
I am seeing almost exactly the same exception, but since I have AngrierWorldQuests installed there are some differences. Here is part of what BugSack grabbed, everything from Locals: on down was the same:
8x PetTracker/addons/main/main.lua:69: attempt to index field 'sets' (a nil value)
[string "@PetTracker/addons/main/main.lua"]:69: in function <PetTracker/addons/main/main.lua:68>
[string "=(tail call)"]: ?
[string "@Blizzard_Menu/DropdownButton.lua"]:32: in function op' [string "@Blizzard_Menu/MenuUtil.lua"]:38: in function <Blizzard_Menu/MenuUtil.lua:36> [string "@Blizzard_Menu/MenuUtil.lua"]:56: in function
TraverseMenu'
[string "@Blizzard_Menu/DropdownButton.lua"]:27: in function <Blizzard_Menu/DropdownButton.lua:17>
[string "@Blizzard_Menu/DropdownButton.lua"]:285: in function SignalUpdate' [string "@Blizzard_Menu/Menu.lua"]:2558: in function
ModifyMenu'
**[string "@AngrierWorldQuests/Modules/QuestFrame/QuestFrameModule.lua"]:1003: in function OverrideShouldShowQuest' [string "@AngrierWorldQuests/Modules/QuestFrame/QuestFrameModule.lua"]:1025: in function <...rWorldQuests/Modules/QuestFrame/QuestFrameModule.lua:1024> [string "=[C]"]: ? [string "@AngrierWorldQuests/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...ngrierWorldQuests/Libs/AceAddon-3.0/AceAddon-3.0.lua:61>** ... [string "@Blizzard_UIParent/Mainline/UIParent.lua"]:420: in function
UIParentLoadAddOn'
[string "@Blizzard_UIParent/Mainline/UIParent.lua"]:628: in function MajorFactions_LoadUI' [string "@Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:96: in function
SetUpMajorFactionList'
[string "@Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:89: in function RefreshMajorFactionList' [string "@Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:84: in function
RefreshOverlay'
[string "@Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:76: in function <...pansionLandingPage/Blizzard_WarWithinLandingPage.lua:72>
[string "=[C]"]: in function CreateFrame' [string "@Blizzard_ExpansionLandingPage/Blizzard_WarWithinLandingPage.lua"]:48: in function
CreateOverlay'
[string "@Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:82: in function `RefreshExpansionOverlay'
[string "@Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:37: in function <...pansionLandingPage/Blizzard_ExpansionLandingPage.lua:35>
Locals:
}
Since both PetTracker and AngrierWorldQuests use the ACE libraries, perhaps it's some sort of interaction with that? The only common file I found was AceLocale-3.0.lua, and the version provided with PetTracker appears to differ from the one used by AngrierWorldQuests.
PS D:\Blizzard\World of Warcraft_retail_\Interface\addons\AngrierWorldQuests> ls ..\PetTracker\libs\AceLocale-3.0\
Directory: D:\Blizzard\World of Warcraft\_retail_\Interface\addons\PetTracker\libs\AceLocale-3.0
Mode LastWriteTime Length Name
-a--- 11/22/2024 7:19 PM 5774 AceLocale-3.0.lua
PS D:\Blizzard\World of Warcraft_retail_\Interface\addons\AngrierWorldQuests> ls .\Libs\AceLocale-3.0\
Directory: D:\Blizzard\World of Warcraft\_retail_\Interface\addons\AngrierWorldQuests\Libs\AceLocale-3.0
Mode LastWriteTime Length Name
-a--- 12/18/2024 6:10 PM 5607 AceLocale-3.0.lua
-a--- 12/18/2024 6:10 PM 215 AceLocale-3.0.xml
PS D:\Blizzard\World of Warcraft_retail_\Interface\addons\AngrierWorldQuests>
3x ...ddOns/PetTracker/addons/main/features/objectives.lua:49: bad argument #1 to 'ipairs' (table expected, got nil)
[string "=[C]"]: in function ipairs' [string "@PetTracker/addons/main/features/objectives.lua"]:49: in function
GetContent'
[string "@PetTracker/addons/main/features/objectives.lua"]:30: in function <...ddOns/PetTracker/addons/main/features/objectives.lua:28>
[string "=[C]"]: ?
[string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:144: in function <...eBlizzard_SharedXMLBase/CallbackRegistry.lua:143>
[string "=[C]"]: ?
[string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:147: in function TriggerEvent' [string "@PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:97: in function
SendSignal'
[string "@PetTracker/addons/config/options.lua"]:90: in function method' [string "@PetTracker/libs/Sushi-3.2-1/classes/core/Callable.lua"]:59: in function <.../PetTracker/libs/Sushi-3.2/classes/core/Callable.lua:55> [string "@PetTracker/libs/Sushi-3.2-1/Sushi-3.2.lua"]:28: in function
FireCalls'
[string "@PetTracker/libs/Sushi-3.2-1/classes/buttons/Clickable.lua"]:39: in function <...Tracker/libs/Sushi-3.2/classes/buttons/Clickable.lua:34>
Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"
1x PetTracker/addons/main/main.lua:69: attempt to index field 'sets' (a nil value)
[string "@PetTracker/addons/main/main.lua"]:69: in function <PetTracker/addons/main/main.lua:68>
[string "=(tail call)"]: ?
[string "@Blizzard_Menu/DropdownButton.lua"]:32: in function op' [string "@Blizzard_Menu/MenuUtil.lua"]:38: in function <Blizzard_Menu/MenuUtil.lua:36> [string "@Blizzard_Menu/MenuUtil.lua"]:56: in function
TraverseMenu'
[string "@Blizzard_Menu/DropdownButton.lua"]:27: in function <Blizzard_Menu/DropdownButton.lua:17>
[string "@Blizzard_Menu/DropdownButton.lua"]:285: in function SignalUpdate' [string "@Blizzard_Menu/Menu.lua"]:2558: in function
ModifyMenu'
[string "@BattlePetCompletionist/Modules/Map/MapModule.lua"]:209: in function InitializeDropDown' [string "@BattlePetCompletionist/Modules/Map/MapModule.lua"]:218: in function <...Ons/BattlePetCompletionist/Modules/Map/MapModule.lua:216> [string "=[C]"]: ? [string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <Ace3/AceAddon-3.0/AceAddon-3.0.lua:61> [string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function
EnableAddon'
[string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:536: in function `EnableAddon'
[string "@Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function <Ace3/AceAddon-3.0/AceAddon-3.0.lua:611>
Locals:
key = "showSpecies"
(*temporary) = nil
(*temporary) = "attempt to index field 'sets' (a nil value)"
Addon =
SpeciePin =
}
Enemy =
}
MaxLevel = 25
Entity =
}
Species =
}
JournalSlot =
}
Rival =
}
StablePin =
}
Tooltips =
}
MaxPlayerQuality = 4
MapCanvas =
}
Tracker =
}
SpecieLine =
}
AbilityDisplay =
}
Broker =
}
RivalInfo =
}
Pin =
}
Tag = "PetTracker."
BattleSlot =
}
Pet =
}
AbilityAction =
}
MaxQuality = 6
Stables =
}
ProgressBar =
}
SpecieStats =
}
RivalPin =
}
MultiTip =
}
Specie =
}
PetSlot =
}
Rivals =
}
Base =
}
Ability =
}
Predict =
}
SpecieBreeds =
}
Maps =
}
Breeds =
}
AbilityButton =
}
RivalOrder =
}
Name = "PetTracker"
Objectives = Frame {
}
}
Thank you everyone for the feedback. The issue with this error:
1x PetTracker/addons/main/main.lua:69: attempt to index field 'sets' (a nil value)
is that it is very unlikely for it to be the first error, but an error that occurs as a result of a previous error. Blizzard does this silly thing where they show the latest error by default, instead of the first one. Can any of you experiencing this error please verify that you cannot browse backwards to previous errors? I'd need to see the very first error message to understand the root cause.

Alternatively, it could be caused by another addon calling this method before PetTracker finished loading. Could you please verify the issue remains if you turn off other addons? If that does work, please let me know which addon is causing the interference.
3x ...ddOns/PetTracker/addons/main/features/objectives.lua:49: bad argument #1 to 'ipairs' (table expected, got nil) [string "=[C]"]: in function
ipairs' [string "@PetTracker/addons/main/features/objectives.lua"]:49: in function
GetContent' [string "@PetTracker/addons/main/features/objectives.lua"]:30: in function <...ddOns/PetTracker/addons/main/features/objectives.lua:28> [string "=[C]"]: ? [string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:144: in function <...eBlizzard_SharedXMLBase/CallbackRegistry.lua:143> [string "=[C]"]: ? [string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:147: in functionTriggerEvent' [string "@PetTracker/libs/WildAddon-1.0/WildAddon-1.0.lua"]:97: in function
SendSignal' [string "@PetTracker/addons/config/options.lua"]:90: in functionmethod' [string "@PetTracker/libs/Sushi-3.2-1/classes/core/Callable.lua"]:59: in function <.../PetTracker/libs/Sushi-3.2/classes/core/Callable.lua:55> [string "@PetTracker/libs/Sushi-3.2-1/Sushi-3.2.lua"]:28: in function
FireCalls' [string "@PetTracker/libs/Sushi-3.2-1/classes/buttons/Clickable.lua"]:39: in function <...Tracker/libs/Sushi-3.2/classes/buttons/Clickable.lua:34>Locals: (*temporary) = nil (*temporary) = "table expected, got nil"
this one is a different issue that is solved in the upcoming build