PetTracker

PetTracker

13M Downloads

ipairs error

deadlydag opened this issue ยท 7 comments

commented

Running latest PetTracker from Curse.

The following error pops up now and then, but especially when changing spec.

20x ...ddOns/PetTracker/addons/main/features/objectives.lua:54: bad argument #1 to 'ipairs' (table expected, got nil)
[string "=[C]"]: in function ipairs' [string "@PetTracker/addons/main/features/objectives.lua"]:54: in function GetContent'
[string "@PetTracker/addons/main/features/objectives.lua"]:30: in function Layout' [string "@PetTracker/addons/main/features/objectives.lua"]:24: in function <...ddOns/PetTracker/addons/main/features/objectives.lua:23> [string "=[C]"]: in function Update'
[string "@Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua"]:2088: in function OnAnyEditModeSystemAnchorChanged' [string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:888: in function <...ddOns/Blizzard_EditMode/Mainline/EditModeManager.lua:887> [string "=[C]"]: in function secureexecuterange'
[string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:890: in function InvokeOnAnyEditModeSystemAnchorChanged' [string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:875: in function UpdateLayoutInfo'
[string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:155: in function <...ddOns/Blizzard_EditMode/Mainline/EditModeManager.lua:152>

Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"

commented

I get this same error, tho my GetContent call is on line 49, same file (I haven't looked in the file).

commented

Getting the same error:

2x ...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/main/main.lua"]:65: in function SetOption'
[string "@PetTracker/addons/main/main.lua"]:60: in function <PetTracker/addons/main/main.lua:59>
[string "=(tail call)"]: ?
[string "=[C]"]: in function securecallfunction' [string "@Blizzard_Menu/Menu.lua"]:868: in function Pick'
[string "@Blizzard_Menu/MenuTemplates.lua"]:74: in function <Blizzard_Menu/MenuTemplates.lua:68>

Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"
`

commented

Got the same issue everydays
["message"] = "...ddOns/PetTracker/addons/main/features/objectives.lua:49: bad argument #1 to 'ipairs' (table expected, got nil)", ["time"] = "2024/10/03 11:45:32", ["locals"] = "(*temporary) = nil\n(*temporary) = \"table expected, got nil\"\n", ["stack"] = "[string \"=[C]\"]: in function ipairs'\n[string "@Interface/AddOns/PetTracker/addons/main/features/objectives.lua"]:49: in function GetContent'\n[string \"@Interface/AddOns/PetTracker/addons/main/features/objectives.lua\"]:30: in function Layout'\n[string "@Interface/AddOns/PetTracker/addons/main/features/objectives.lua"]:24: in function <...ddOns/PetTracker/addons/main/features/objectives.lua:23>\n[string "=[C]"]: in function Update'\n[string \"@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua\"]:2088: in function OnAnyEditModeSystemAnchorChanged'\n[string "@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeManager.lua"]:888: in function <...ddOns/Blizzard_EditMode/Mainline/EditModeManager.lua:887>\n[string "=[C]"]: in function secureexecuterange'\n[string \"@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeManager.lua\"]:890: in function InvokeOnAnyEditModeSystemAnchorChanged'\n[string "@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeManager.lua"]:875: in function UpdateLayoutInfo'\n[string \"@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeManager.lua\"]:155: in function <...ddOns/Blizzard_EditMode/Mainline/EditModeManager.lua:152>", ["session"] = 28, ["counter"] = 22,

commented

Piggy backing on here as I'm getting the same error every login/reloadui.

...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 Layout'
[string "@PetTracker/addons/main/features/objectives.lua"]:24: in function <...ddOns/PetTracker/addons/main/features/objectives.lua:23>
[string "=[C]"]: in function Update' [string "@Blizzard_ObjectiveTracker/Blizzard_ObjectiveTrackerContainer.lua"]:17: in function <...ectiveTracker/Blizzard_ObjectiveTrackerContainer.lua:16> [string "=[C]"]: in function GetHeight'
[string "@PetTracker/libs/CustomTutorials-2.1-13/CustomTutorials-2.1.lua"]:57: in function <...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:36>
[string "@PetTracker/libs/CustomTutorials-2.1-13/CustomTutorials-2.1.lua"]:118: in function <...ker/libs/CustomTutorials-2.1/CustomTutorials-2.1.lua:117>

Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"`

commented

Same error here - are you using ElvUI?
I only get the error when I log in while ElvUI and Pettracker are both enabled.

commented

I'm getting this error even with most recent PetTracker 11.0.9 version:

2x ...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 `Layout'
[string "@PetTracker/addons/main/features/objectives.lua"]:24: in function <...ddOns/PetTracker/addons/main/features/objectives.lua:23>
[string "=[C]"]: in function `Update'
[string "@Blizzard_ObjectiveTracker/Blizzard_ObjectiveTrackerContainer.lua"]:17: in function <...ectiveTracker/Blizzard_ObjectiveTrackerContainer.lua:16>
[string "=[C]"]: in function `GetSize'
[string "@Blizzard_SharedXML/LayoutFrame.lua"]:251: in function `LayoutChildren'
[string "@Blizzard_SharedXML/LayoutFrame.lua"]:217: in function <Blizzard_SharedXML/LayoutFrame.lua:215>
[string "=[C]"]: in function `Layout'
[string "@Blizzard_UIParentPanelManager/Mainline/UIParentPanelManager.lua"]:829: in function `UIParentManageFramePositions'
[string "@Blizzard_UIParentPanelManager/Mainline/UIParentPanelManager.lua"]:183: in function <...ParentPanelManager/Mainline/UIParentPanelManager.lua:169>
...
[string "=[C]"]: in function `UIParent_ManageFramePositions'
[string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:559: in function `UpdateRightActionBarPositions'
[string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:510: in function `UpdateActionBarLayout'
[string "@Blizzard_ActionBar/Mainline/ActionBar.lua"]:364: in function `UpdateVisibility'
[string "@Blizzard_ActionBar/Mainline/ActionBar.lua"]:331: in function `HideOverride'
[string "@Blizzard_ActionBar/Mainline/ActionBar.lua"]:312: in function `SetShown'
[string "@Blizzard_ActionBar/Mainline/MultiActionBars.lua"]:67: in function <...dOns/Blizzard_ActionBar/Mainline/MultiActionBars.lua:62>
[string "@Blizzard_ActionBar/Mainline/MultiActionBars.lua"]:76: in function `MultiActionBar_Update'
[string "@Blizzard_UIParent/Mainline/UIParent.lua"]:1605: in function <...rfaceBlizzard_UIParent/Mainline/UIParent.lua:1293>
[string "=[C]"]: ?

Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"

commented

vSame or similar - no ElvUI - happens every ui reload

Message: ...ddOns/PetTracker/addons/main/features/objectives.lua:49: bad argument #1 to 'ipairs' (table expected, got nil)
Time: Fri Nov 29 21:32:26 2024
Count: 1
Stack: ...ddOns/PetTracker/addons/main/features/objectives.lua:49: bad argument #1 to 'ipairs' (table expected, got nil)
[string "@Interface/AddOns/PetTracker/addons/main/features/objectives.lua"]:49: in function GetContent' [string "@Interface/AddOns/PetTracker/addons/main/features/objectives.lua"]:30: in function Layout'
[string "@Interface/AddOns/PetTracker/addons/main/features/objectives.lua"]:24: in function <...ddOns/PetTracker/addons/main/features/objectives.lua:23>
[string "=[C]"]: in function Update' [string "@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua"]:2128: in function OnAnyEditModeSystemAnchorChanged'
[string "@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeManager.lua"]:888: in function <...ddOns/Blizzard_EditMode/Mainline/EditModeManager.lua:887>
[string "=[C]"]: in function secureexecuterange' [string "@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeManager.lua"]:890: in function InvokeOnAnyEditModeSystemAnchorChanged'
[string "@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeManager.lua"]:875: in function `UpdateLayoutInfo'
[string "@Interface/AddOns/Blizzard_EditMode/Mainline/EditModeManager.lua"]:155: in function <...ddOns/Blizzard_EditMode/Mainline/EditModeManager.lua:152>

Locals: self = Frame {
Lines =

{
}
.....