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

attempt to index local 'option' (a nil value) #1158

Open
3 of 4 tasks
AmenitradieDruidin opened this issue Jan 26, 2024 · 3 comments
Open
3 of 4 tasks

attempt to index local 'option' (a nil value) #1158

AmenitradieDruidin opened this issue Jan 26, 2024 · 3 comments

Comments

@AmenitradieDruidin
Copy link

AmenitradieDruidin commented Jan 26, 2024

Troubleshooting Steps

Unfortunately, this didn't help as the problem occurs in connection with the Masque add-on. I have already informed the addon author Masque about the error. But author told me that the error lies with ElvUI.

image
image2
image

1x_...nfig-3.0AceConfigDialog-3.0-86AceConfigDialog-3.0.lu.txt

Describe the expected behavior and what actually happened?

Sometimes BugSack reports the error when I open a window like the LFG. Or when I make settings for the groups, raid or player/target window in ElvUI.

Reproducing the issue.

Unfortunately, this is not that easy. But it often happens when you make group, player, target or raid frame settings. Or when you open windows in WoW. Such as. the LFG or a group is created in the custom tab. If I have/find out more information, I will edit the post.

Lua Errors

1x ...nfig-3.0/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua:184: attempt to index local 'option' (a nil value)
[string "@ElvUI_Libraries/Core/Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:184: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:164>
[string "@ElvUI_Libraries/Core/Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:1609: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:1588>
[string "=[C]"]: ?
[string "@Masque/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <Masque/Libs/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@Masque/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@Masque/Libs/AceGUI-3.0-41/widgets/AceGUIContainer-TreeGroup.lua"]:202: in function <...ibs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua:200>
[string "=[C]"]: ?

Locals:
membername = "name"
option = nil
options = <table> {
 childGroups = "ElvUI_HiddenTree"
 type = "group"
 name = "Version: |cff99ff3313.55|r + |TInterface\Addons\ElvUI_mMediaTag\media\logo\mmt_icon.tga:14:14|t |CFF6559F1m|r|CFF7A4DEFM|r|CFF8845ECe|r|CFFA037E9d|r|CFFA435E8i|r|CFFB32DE6a|r|CFFBC26E5T|r|CFFCB1EE3a|r|CFFDD14E0g|r |CFFFF006C&|r |CFFFF4C00T|r|CFFFF7300o|r|CFFFF9300o|r|CFFFFA800l|r|CFFFFC900s|r |cff99ff333.27|r + |TAddons/ElvUI_WindTools/Media/Textures/WindToolsSmall.tga:14:14:0:0:64:64:5:59:5:59|t |cff5385edW|r|cff5094eai|r|cff4da4e7n|r|cff4ab4e4d|r|cff47c0e1T|r|cff44cbdfo|r|cff41d7ddo|r|cff41d7ddl|r|cff41d7dds|r |cff00d1b23.48|r"
 args = <table> {
 }
}
path = <table> {
 1 = "fader"
}
appName = "ElvUI"
inherits = nil
member = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'option' (a nil value)"
isInherited = <table> {
 confirm = true
 disabled = true
 set = true
 hidden = true
 validate = true
 func = true
 get = true
}
GetSubOption = <function> defined @ElvUI_Libraries/Core/Ace3/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:116
allIsLiteral = <table> {
 descStyle = true
 type = true
 imageWidth = true
 imageHeight = true
}
type = <function> defined =[C]:-1
stringIsLiteral = <table> {
 tooltipHyperlink = true
 image = true
 name = true
 fontSize = true
 width = true
 usage = true
 icon = true
 desc = true
}
new = <function> defined @ElvUI_Libraries/Core/Ace3/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:74
MAJOR = "AceConfigDialog-3.0-ElvUI"
error = <function> defined =[C]:-1
format = <function> defined =[C]:-1
del = <function> defined @ElvUI_Libraries/Core/Ace3/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:92

Verification Steps

  • I have read the Changelog and verified ElvUI is up to date by checking /estatus
  • I have verified my issue doesn't exist in the Default UI or the Issue Tracker.
  • I have not read any of these steps, please close my issue when you see it.
  • I have done the Troubleshooting Steps and included the requested screenshots, which show the issue and status panel.
@kodewdle kodewdle changed the title ElvUI / Masque Error message (Masque author already informed. Was redirected here.) attempt to index local 'option' (a nil value) Feb 4, 2024
@kodewdle
Copy link
Member

kodewdle commented Feb 4, 2024

no relation to Masque, i know about this but don't have a fix currently. it has something to do with our custom ace layout.

@mikeyd-smith
Copy link

Also seems to happen on hovering over guild or friends list panel options near minimap. still occurring as of 11.0.2 / 11.0.5

@nihlathakzj
Copy link

Ace3-r1354-alpha
AceConfigDialog-3.0.lua
The cause of this issue appears to be: #line 1495

local function TreeOnButtonEnter(widget, event, uniquevalue, button)
	local user = widget:GetUserDataTable()
	if not user then return end
	local options = user.options
	local option = user.option
	local path = user.path
	local appName = user.appName
	local tooltip = AceConfigDialog.tooltip

	local feedpath = new()
	for i = 1, #path do
		feedpath[i] = path[i]
	end

	BuildPath(feedpath, ("\001"):split(uniquevalue))
	local group = options
	for i = 1, #feedpath do
		if not group then return end
		group = GetSubOption(group, feedpath[i]) -- #line 1495

		-- Issue: AceConfigDialog-3.0.lua:184: attempt to index local 'option' (a nil value)
		if not group then
			print(uniquevalue, feedpath[i]) -- group could be nil, the issue occurrence.
		end
	end

	local name = GetOptionsMemberValue("name", group, options, feedpath, appName)
	local desc = GetOptionsMemberValue("desc", group, options, feedpath, appName)

	tooltip:SetOwner(button, "ANCHOR_NONE")
	tooltip:ClearAllPoints()
	if widget.type == "TabGroup" then
		tooltip:SetPoint("BOTTOM",button,"TOP")
	else
		tooltip:SetPoint("LEFT",button,"RIGHT")
	end

	tooltip:SetText(name, 1, .82, 0, true)

	if type(desc) == "string" then
		tooltip:AddLine(desc, 1, 1, 1, true)
	end

	tooltip:Show()
end

https://www.wowace.com/projects/ace3/issues/672

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

No branches or pull requests

4 participants