[BUG] Character dropdown results in lua error
keflatbn opened this issue ยท 9 comments
Describe the bug
In the addon when viewing a main window from for example shadowlands, trying to change character in the top banner dropdown results in lua error
To Reproduce
Steps to reproduce the behavior:
In addon try to switch characters in the dropdown menu
Addon version:
- Version 10.2.5
Lua eror (if any):
<1x ...rfaceCompanionsTracker/GUI/OverviewFrame.lua:260: attempt to index field 'owner' (a nil value)
[string "@CompanionsTracker/GUI/OverviewFrame.lua"]:260: in function func' [string "@Blizzard_FrameXML/Mainline/NavigationBar.lua"]:298: in function <Blizzard_FrameXML/Mainline/NavigationBar.lua:294> [string "=(tail call)"]: ? [string "=[C]"]: in function
securecallfunction'
[string "@Blizzard_Menu/Menu.lua"]:854: in function `Pick'
[string "@Blizzard_Menu/MenuTemplates.lua"]:64: in function <Blizzard_Menu/MenuTemplates.lua:58>
Locals:
self = Button {
menuPointX = 0
Event =
}
intrinsic = "DropdownButton"
Art = Texture {
}
callbackTables =
Hi, thanks for a quick feedback!
I removed all other addons except for the buggrabber and your addon.
I do not get an error with the minimap button anymore, but when I use the dropdown to select another character I get this error:
1x ...rfaceCompanionsTracker/GUI/OverviewFrame.lua:260: attempt to index field 'owner' (a nil value) [string "@CompanionsTracker/GUI/OverviewFrame.lua"]:260: in function
func'
[string "@Blizzard_FrameXML/Mainline/NavigationBar.lua"]:298: in function <Blizzard_FrameXML/Mainline/NavigationBar.lua:294>
[string "=(tail call)"]: ?
[string "=[C]"]: in function securecallfunction' [string "@Blizzard_Menu/Menu.lua"]:854: in function
Pick'
[string "@Blizzard_Menu/MenuTemplates.lua"]:64: in function <Blizzard_Menu/MenuTemplates.lua:58>
Locals:
self = Button {
menuPointX = 0
Event =
}
intrinsic = "DropdownButton"
Art = Texture {
}
callbackTables =
}
menuRelativePoint = "BOTTOMLEFT"
menuPointY = 0
menuDescription =
}
menuAnchor =
}
PushedTexture = Texture {
}
NormalTexture = Texture {
}
menuPoint = "TOPLEFT"
menu = Frame {
}
}
id = "Ratbull-Deathwing"
_navNar = Frame {
overlay = Frame {
}
template = "NavButtonTemplate"
homeButton = TopHomeButton {
}
overflowButton = TopOverflowButton {
}
navList =
}
KioskOverlay = Frame {
}
freeButtons =
}
widthBuffer = 20
home = TopHomeButton {
}
overflow = TopOverflowButton {
}
}
(*temporary) =
characterListFrame = Frame {
}
tabsData =
}
expanionBackground = Texture {
}
base =
}
AceGUIWidgetVersion = 1
buttonsFrameGroup =
}
localstatus =
}
content = Frame {
}
missionsTabGroup =
}
userdata =
}
scrollFrame =
}
type = "ExpansionOverviewFrame"
events =
}
children =
}
subFrameRenderFrame =
}
expansionTitle = FontString {
}
navBar = Frame {
}
frame = CompanionsTrackerExpansionOverviewFrame1 {
}
selectedTab = 111
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'owner' (a nil value)"
frame =
characterListFrame = Frame {
}
tabsData =
}
expanionBackground = Texture {
}
base =
}
AceGUIWidgetVersion = 1
buttonsFrameGroup =
}
localstatus =
}
content = Frame {
}
missionsTabGroup =
}
userdata =
}
scrollFrame =
}
type = "ExpansionOverviewFrame"
events =
}
children =
}
subFrameRenderFrame =
}
expansionTitle = FontString {
}
navBar = Frame {
}
frame = CompanionsTrackerExpansionOverviewFrame1 {
}
selectedTab = 111
}
`
If I click from In Progress tab to Available I get this error:
1x ...acker/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-Label.lua:151: bad argument #1 to 'SetJustifyV' (Usage: self:SetJustifyV(justifyV)) [string "=[C]"]: in function
SetJustifyV'
[string "@CompanionsTracker/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-Label.lua"]:151: in function SetJustifyV' [string "@CompanionsTracker/GUI/OverviewFrame.lua"]:124: in function <...rfaceCompanionsTracker/GUI/OverviewFrame.lua:74> [string "=[C]"]: ? [string "@CompanionsTracker/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <...Ons/CompanionsTracker/Libs/AceGUI-3.0/AceGUI-3.0.lua:64> [string "@CompanionsTracker/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function
Fire'
[string "@CompanionsTracker/Libs/AceGUI-3.0-41/widgets/AceGUIContainer-TabGroup.lua"]:342: in function `SelectTab'
[string "@CompanionsTracker/Libs/AceGUI-3.0-41/widgets/AceGUIContainer-TabGroup.lua"]:200: in function <...Libs/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua:197>
Locals:
(*temporary) = FontString {
}
(*temporary) = "CENTER"
`
I see you have serveral errors regarding the same, can you give me a list of active addons to maybe check any incompatibilities? ALso I would suggest you reinstall the addon itself maybe something did go wrong.
No need to install the dependencies, they install themselves. I was able to reproduce the error on my end will look into it over the days ^^ It seems an issue of the dependencies, maybe it's just a case of updating them. Will let you know once I have an update
@keflatbn Got a dev version up here https://github.com/peti446/CompanionsTracker/actions/runs/10176251854/artifacts/1759003806 that should solve some dependencies but I have not tested it yet, will test it in depth tonight ^^
Thanks! Just tried the dev version, but still same lua errors selecting character and switching tabs.