Mythic Plus Loot

Mythic Plus Loot

207k Downloads

attempt to call method 'SetBackdrop' (a nil value)

Beet4 opened this issue ยท 3 comments

commented

Starting today I get the following LUA Error upon login in.

11x ...lusLoot/libs/LibUIDropDownMenu/LibUIDropDownMenu.lua:252: attempt to call method 'SetBackdrop' (a nil value)
[string "@MythicPlusLoot/libs/LibUIDropDownMenu/LibUIDropDownMenu.lua"]:252: in function `creatre_UIDropDownList'
[string "@MythicPlusLoot/libs/LibUIDropDownMenu/LibUIDropDownMenu.lua"]:391: in main chunk

Locals:
name = "L_DropDownList1"
parent = nil
f = L_DropDownList1 {
 0 = <userdata>
 Button1 = L_DropDownList1Button1 {
 }
 MenuBackdrop = L_DropDownList1MenuBackdrop {
 }
 Backdrop = L_DropDownList1Backdrop {
 }
 Border = L_DropDownList1Border {
 }
}
fbd = L_DropDownList1Border {
 0 = <userdata>
 PixelSnapDisabled = true
 OnBackdropLoaded = <function> defined @SharedXML/Backdrop.lua:152
 Center = Texture {
 }
 GetBackdropColor = <function> defined @SharedXML/Backdrop.lua:390
 SetupTextureCoordinates = <function> defined @SharedXML/Backdrop.lua:214
 OnBackdropSizeChanged = <function> defined @SharedXML/Backdrop.lua:182
 HasBackdropInfo = <function> defined @SharedXML/Backdrop.lua:278
 SetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:422
 RightEdge = Texture {
 }
 backdropInfo = <table> {
 }
 BottomEdge = Texture {
 }
 GetEdgeSize = <function> defined @SharedXML/Backdrop.lua:188
 BottomLeftCorner = Texture {
 }
 BottomRightCorner = Texture {
 }
 TopEdge = Texture {
 }
 ApplyBackdrop = <function> defined @SharedXML/Backdrop.lua:294
 SetBackdrop = <function> defined @SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @SharedXML/Backdrop.lua:282
 TopRightCorner = Texture {
 }
 GetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @SharedXML/Backdrop.lua:347
 TopLeftCorner = Texture {
 }
 SetupPieceVisuals = <function> defined @SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @SharedXML/Backdrop.lua:399
 LeftEdge = Texture {
 }
 SetBorderBlendMode = <function> defined @SharedXML/Backdrop.lua:266
}
fmb = L_DropDownList1MenuBackdrop {
 SetBorderBlendMode = <function> defined @SharedXML/SharedTooltipTemplates.lua:203
 NineSlice = Frame {
 }
 TooltipBackdropOnLoad = <function> defined @SharedXML/SharedTooltipTemplates.lua:172
 GetBackdropColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:191
 backdropInfo = <table> {
 }
 0 = <userdata>
 GetBackdropBorderColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:199
 SetBackdropColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:187
 layoutType = "TooltipDefaultLayout"
 SetBackdropBorderColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:195
}
(*temporary) = nil
(*temporary) = L_DropDownList1MenuBackdrop {
 SetBorderBlendMode = <function> defined @SharedXML/SharedTooltipTemplates.lua:203
 NineSlice = Frame {
 }
 TooltipBackdropOnLoad = <function> defined @SharedXML/SharedTooltipTemplates.lua:172
 GetBackdropColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:191
 backdropInfo = <table> {
 }
 0 = <userdata>
 GetBackdropBorderColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:199
 SetBackdropColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:187
 layoutType = "TooltipDefaultLayout"
 SetBackdropBorderColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:195
}
(*temporary) = <table> {
 bgFile = "Interface\Tooltips\UI-Tooltip-Background"
 tileSize = 16
 edgeFile = "Interface\Tooltips\UI-Tooltip-Border"
 tile = true
 edgeSize = 16
 insets = <table> {
 }
}
(*temporary) = "attempt to call method 'SetBackdrop' (a nil value)"
_G = <table> {
 UpdateOnBarHighlightMarksBySpell = <function> defined =[C]:-1
 ERR_OUT_OF_CHI = "Not enough chi"
 DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded."
 MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
 }
 SettingsSliderOptionsMixin = <table> {
 }
 GetTrainerServiceTypeFilter = <function> defined =[C]:-1
 UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
 HUD_EDIT_MODE_SETTING_ACTION_BAR_HIDE_BAR_ART = "Hide Bar Art"
 LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 774
 SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance
commented

This was caused by WoW interface changes and should no longer be an issue.

commented

Seems SetBackdrop was replaced in latest LibUIDropDownMenu, manually downgrading the lib to v4.17.10000046801 (2022/11/29) works for now.

v4.18.10000046801 (2022/11/29)

  • Replace SetBackdrop with backdropInfo
commented

Still get the LUA error upon login in after updating to the new version.

17x ...lusLoot/libs/LibUIDropDownMenu/LibUIDropDownMenu.lua:252: attempt to call method 'SetBackdrop' (a nil value)
[string "@MythicPlusLoot/libs/LibUIDropDownMenu/LibUIDropDownMenu.lua"]:252: in function `creatre_UIDropDownList'
[string "@MythicPlusLoot/libs/LibUIDropDownMenu/LibUIDropDownMenu.lua"]:391: in main chunk

Locals:
name = "L_DropDownList1"
parent = nil
f = L_DropDownList1 {
 0 = <userdata>
 Button1 = L_DropDownList1Button1 {
 }
 MenuBackdrop = L_DropDownList1MenuBackdrop {
 }
 Backdrop = L_DropDownList1Backdrop {
 }
 Border = L_DropDownList1Border {
 }
}
fbd = L_DropDownList1Border {
 0 = <userdata>
 PixelSnapDisabled = true
 OnBackdropLoaded = <function> defined @SharedXML/Backdrop.lua:152
 Center = Texture {
 }
 GetBackdropColor = <function> defined @SharedXML/Backdrop.lua:390
 SetupTextureCoordinates = <function> defined @SharedXML/Backdrop.lua:214
 OnBackdropSizeChanged = <function> defined @SharedXML/Backdrop.lua:182
 HasBackdropInfo = <function> defined @SharedXML/Backdrop.lua:278
 SetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:422
 RightEdge = Texture {
 }
 backdropInfo = <table> {
 }
 BottomEdge = Texture {
 }
 GetEdgeSize = <function> defined @SharedXML/Backdrop.lua:188
 BottomLeftCorner = Texture {
 }
 BottomRightCorner = Texture {
 }
 TopEdge = Texture {
 }
 ApplyBackdrop = <function> defined @SharedXML/Backdrop.lua:294
 SetBackdrop = <function> defined @SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @SharedXML/Backdrop.lua:282
 TopRightCorner = Texture {
 }
 GetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @SharedXML/Backdrop.lua:347
 TopLeftCorner = Texture {
 }
 SetupPieceVisuals = <function> defined @SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @SharedXML/Backdrop.lua:399
 LeftEdge = Texture {
 }
 SetBorderBlendMode = <function> defined @SharedXML/Backdrop.lua:266
}
fmb = L_DropDownList1MenuBackdrop {
 SetBorderBlendMode = <function> defined @SharedXML/SharedTooltipTemplates.lua:203
 NineSlice = Frame {
 }
 TooltipBackdropOnLoad = <function> defined @SharedXML/SharedTooltipTemplates.lua:172
 GetBackdropColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:191
 backdropInfo = <table> {
 }
 0 = <userdata>
 GetBackdropBorderColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:199
 SetBackdropColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:187
 layoutType = "TooltipDefaultLayout"
 SetBackdropBorderColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:195
}
(*temporary) = nil
(*temporary) = L_DropDownList1MenuBackdrop {
 SetBorderBlendMode = <function> defined @SharedXML/SharedTooltipTemplates.lua:203
 NineSlice = Frame {
 }
 TooltipBackdropOnLoad = <function> defined @SharedXML/SharedTooltipTemplates.lua:172
 GetBackdropColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:191
 backdropInfo = <table> {
 }
 0 = <userdata>
 GetBackdropBorderColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:199
 SetBackdropColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:187
 layoutType = "TooltipDefaultLayout"
 SetBackdropBorderColor = <function> defined @SharedXML/SharedTooltipTemplates.lua:195
}
(*temporary) = <table> {
 bgFile = "Interface\Tooltips\UI-Tooltip-Background"
 tileSize = 16
 edgeFile = "Interface\Tooltips\UI-Tooltip-Border"
 tile = true
 edgeSize = 16
 insets = <table> {
 }
}
(*temporary) = "attempt to call method 'SetBackdrop' (a nil value)"
_G = <table> {
 UpdateOnBarHighlightMarksBySpell = <function> defined =[C]:-1
 ERR_OUT_OF_CHI = "Not enough chi"
 DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded."
 MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
 }
 SettingsSliderOptionsMixin = <table> {
 }
 GetTrainerServiceTypeFilter = <function> defined =[C]:-1
 UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
 HUD_EDIT_MODE_SETTING_ACTION_BAR_HIDE_BAR_ART = "Hide Bar Art"
 LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 774
 SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance