Details! Damage Meter

Details! Damage Meter

250M Downloads

Lua error immediately when logging in: "attempt to get length of local 'optionsTable" (a nil value)

brittyazel opened this issue · 5 comments

commented

After updating Details today to version 12188 RELEASE 10.2.0 I received this error immediately after logging in. It happens consistently each and every time I /reload or relog.

2x Details/Libs/DF/dropdown.lua:402: attempt to get length of local 'optionsTable' (a nil value)
[string "@Details/Libs/DF/dropdown.lua"]:402: in function `Select'
[string "@Details/Libs/DF/dropdown.lua"]:1330: in function `NewDropDown'
[string "@Details_EncounterDetails/frames.lua"]:485: in function `EncounterDetailsTempWindow'
[string "@Details_EncounterDetails/Details_EncounterDetails.lua"]:355: in function <...etails_EncounterDetails/Details_EncounterDetails.lua:71>
[string "@Details_EncounterDetails/Details_EncounterDetails.lua"]:836: in function <...etails_EncounterDetails/Details_EncounterDetails.lua:829>

Locals:
self = <table> {
 menus = <table> {
 }
 label = Details_EncounterDetailsSegmentsDropdown_Text {
 }
 scroll = Slider {
 }
 func = <function> defined @Details_EncounterDetails/frames.lua:466
 realsizeW = 165
 statusbar = Details_EncounterDetailsSegmentsDropdown_StatusBarTexture {
 }
 opened = false
 icon = Details_EncounterDetailsSegmentsDropdown_IconTexture {
 }
 container = Details_EncounterDetails {
 }
 type = "dropdown"
 realsizeH = 300
 dropdown = Details_EncounterDetailsSegmentsDropdown {
 }
 HookList = <table> {
 }
 ShowScroll = <function> defined @Details/Libs/DF/dropdown.lua:1299
 HideScroll = <function> defined @Details/Libs/DF/dropdown.lua:1293
 dframework = true
 widget = Details_EncounterDetailsSegmentsDropdown {
 }
}
optionName = 1
byOptionNumber = nil
bOnlyShown = nil
runCallback = nil
optionsTable = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = <table> {
 menus = <table> {
 }
 label = Details_EncounterDetailsSegmentsDropdown_Text {
 }
 scroll = Slider {
 }
 func = <function> defined @Details_EncounterDetails/frames.lua:466
 realsizeW = 165
 statusbar = Details_EncounterDetailsSegmentsDropdown_StatusBarTexture {
 }
 opened = false
 icon = Details_EncounterDetailsSegmentsDropdown_IconTexture {
 }
 container = Details_EncounterDetails {
 }
 type = "dropdown"
 realsizeH = 300
 dropdown = Details_EncounterDetailsSegmentsDropdown {
 }
 HookList = <table> {
 }
 ShowScroll = <function> defined @Details/Libs/DF/dropdown.lua:1299
 HideScroll = <function> defined @Details/Libs/DF/dropdown.lua:1293
 dframework = true
 widget = Details_EncounterDetailsSegmentsDropdown {
 }
}
(*temporary) = <table> {
 CooldownToClass = <table> {
 }
 CreateFrameContainer = <function> defined @Details/Libs/DF/containers.lua:484
 SavePositionOnScreen = <function> defined @Details/Libs/DF/panel.lua:2235
 CreateTabContainer = <function> defined @Details/Libs/DF/tabcontainer.lua:262
 IsUnitTapDenied = <function> defined @Details/Libs/DF/fw.lua:4671
 internalFunctions = <table> {
 }
 NewLabel = <function> defined @Details/Libs/DF/label.lua:306
 SavedVars = <table> {
 }
 AdjustmentSliderOptions = <table> {
 }
 BuildStatusbarAuthorInfo = <function> defined @Details/Libs/DF/panel.lua:4560
 PanelCounter = 375175
 MakeFunctionSecure = <function> defined @Details/Libs/DF/fw.lua:4915
 debug = false
 LabelNameCounter = 375385
 CreateTextureInfo = <function> defined @Details/Libs/DF/fw.lua:1331
 DefaultMetaFunctionsSet = <table> {
 }
 GetCurrentSpec = <function> defined @Details/Libs/DF/fw.lua:3834
 alias_text_colors = <table> {
 }
 ScriptHookMixin = <table> {
 }
 UnitFrameFunctions = <table> {
 }
 BackdropUtil = <table> {
 }
 CreateFontListGenerator = <function> defined @Details/Libs/DF/dropdown.lua:1099
 CreateCastBar = <function> defined @Details/Libs/DF/unitframe.lua:1875
 RegisterScriptComm = <function> defined @Details/Libs/DF/fw.lua:4613
 ShowPanicWarning = <function> defined @Details/Libs/DF/panel.lua:1867
 UnitGroupRolesAssigned = <function> defined @Details/Libs/DF/fw.lua:243
 SetAutoCompleteWithSpells = <function> defined @Details/Libs/DF/auras.lua:999
 ShowTutorialAlertFrame = <function> defined @Details/Libs/DF/fw.lua:2209
 CooldownsExternals = <table> {
 }
 GetSpecializationRole = <function> defined @Details/Libs/DF/fw.lua:309
 SpecListByClass = <table> {
 }
 FRAMELEVEL_BACKGROUND = 150
 CreateHealthBar = <function> defined @Details/Libs/DF/unitframe.lua:445
 StatusBarFunctions = <table> {
 }
 button_templates = <table> {
 }
 HeaderMixin = <table> {
 }
 FrameMixin = <table> {
 }
 SplitTextInLines = <function> defined @Details/Libs/DF/fw.lua:917
 ColorPick = <function> defined @Details/Libs/DF/p
commented

Resetting the data seems to have worked. I did it on each of my toons and none of them seem to have the error any longer. Strange...

commented
commented
commented

[EDIT: Noticed that the errors reference plug-ins (ChartViewer (mine); EncounterDetails (Britt's)) - might be a factor?]

To add a bit to this, I've also been getting a similar error (below; including it in case the differences are useful) for the past couple of versions (the new version didn't change anything) but only on a few toons... on those toons it happens every time, on others it doesn't happen at all. Resetting the data does seem to have worked for me as well.

4x Details/Libs/DF/dropdown.lua:402: attempt to get length of local 'optionsTable' (a nil value)
[string "@Details/Libs/DF/dropdown.lua"]:402: in function Select' [string "@Details/Libs/DF/dropdown.lua"]:1330: in function <Details/Libs/DF/dropdown.lua:1222> [string "=(tail call)"]: ? [string "@Details_ChartViewer/frames.lua"]:116: in function CreateSegmentDropdown'
[string "@Details_ChartViewer/Details_ChartViewer.lua"]:459: in function `OnEvent'
[string "@Details/core/plugins.lua"]:326: in function <Details/core/plugins.lua:323>

Locals:
self =

{
menus =
{
}
label = DetailsFrameworkDropDownNumber780721_Text {
}
scroll = Slider {
}
func = defined @Details_ChartViewer/frames.lua:91
realsizeW = 165
statusbar = DetailsFrameworkDropDownNumber780721_StatusBarTexture {
}
opened = false
icon = DetailsFrameworkDropDownNumber780721_IconTexture {
}
container = ChartViewerWindowFrame {
}
type = "dropdown"
realsizeH = 300
dropdown = DetailsFrameworkDropDownNumber780721 {
}
HookList =
{
}
ShowScroll = defined @Details/Libs/DF/dropdown.lua:1299
HideScroll = defined @Details/Libs/DF/dropdown.lua:1293
dframework = true
widget = DetailsFrameworkDropDownNumber780721 {
}
}
optionName = 1
byOptionNumber = nil
bOnlyShown = nil
runCallback = nil
optionsTable = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) =
{
menus =
{
}
label = DetailsFrameworkDropDownNumber780721_Text {
}
scroll = Slider {
}
func = defined @Details_ChartViewer/frames.lua:91
realsizeW = 165
statusbar = DetailsFrameworkDropDownNumber780721_StatusBarTexture {
}
opened = false
icon = DetailsFrameworkDropDownNumber780721_IconTexture {
}
container = ChartViewerWindowFrame {
}
type = "dropdown"
realsizeH = 300
dropdown = DetailsFrameworkDropDownNumber780721 {
}
HookList =
{
}
ShowScroll = defined @Details/Libs/DF/dropdown.lua:1299
HideScroll = defined @Details/Libs/DF/dropdown.lua:1293
dframework = true
widget = DetailsFrameworkDropDownNumber780721 {
}
}
(*temporary) =
{
CooldownToClass =
{
}
CreateFrameContainer = defined @Details/Libs/DF/containers.lua:484
SavePositionOnScreen = defined @Details/Libs/DF/panel.lua:2235
CreateTabContainer = defined @Details/Libs/DF/tabcontainer.lua:262
IsUnitTapDenied = defined @Details/Libs/DF/fw.lua:4671
internalFunctions =
{
}
NewLabel = defined @Details/Libs/DF/label.lua:306
SavedVars =
{
}
AdjustmentSliderOptions =
{
}
BuildStatusbarAuthorInfo = defined @Details/Libs/DF/panel.lua:4560
PanelCounter = 780721
MakeFunctionSecure = defined @Details/Libs/DF/fw.lua:4915
debug = false
LabelNameCounter = 780748
CreateTextureInfo = defined @Details/Libs/DF/fw.lua:1331
DefaultMetaFunctionsSet =
{
}
GetCurrentSpec = defined @Details/Libs/DF/fw.lua:3834
alias_text_colors =
{
}
ScriptHookMixin =
{
}
UnitFrameFunctions =
{
}
BackdropUtil =
{
}
CreateFontListGenerator = defined @Details/Libs/DF/dropdown.lua:1099
CreateCastBar = defined @Details/Libs/DF/unitframe.lua:1875
RegisterScriptComm = defined @Details/Libs/DF/fw.lua:4613
ShowPanicWarning = defined @Details/Libs/DF/panel.lua:1867
UnitGroupRolesAssigned = defined @Details/Libs/DF/fw.lua:243
SetAutoCompleteWithSpells = defined @Details/Libs/DF/auras.lua:999
ShowTutorialAlertFrame = defined @Details/Libs/DF/fw.lua:2209
CooldownsExternals =
{
}
GetSpecializationRole = defined @Details/Libs/DF/fw.lua:309
SpecListByClass =
{
}
FRAMELEVEL_BACKGROUND = 150
CreateHealthBar = defined @Details/Libs/DF/unitframe.lua:445
StatusBarFunctions =
{
}
button_templates =
{
}
HeaderMixin =
{
}
FrameMixin =
{
}
SplitTextInLines = defined @Details/Libs/DF/fw.lua:917
ColorPick = defined @Details/Libs/DF/panel.lua:1498
CreateSwitch = defined @Interf

commented

Disabling Details_ChartViewer on an affected toon resolves the issue so for me it seems to be an interaction between that plugin and the main addon causing the issue.