The addon stopped working. #192


Open
  • Natlyz created this issue May 9, 2023

    Hello!

    Yesterday the addon worked fine, today I logged in to this:

    <p>1x ...ddOns/WeakAuras/Libs/LibDBIcon-1.0-50/LibDBIcon-1.0.lua:400: attempt to index local 'button' (a nil value)<br />[string "@WeakAuras/Libs/LibDBIcon-1.0-50/LibDBIcon-1.0.lua"]:400: in function `Refresh'<br />[string "@ElkBuffBars/ElkBuffBars.lua"]:385: in function `OnProfileEnable'<br />[string "@ElkBuffBars/ElkBuffBars.lua"]:305: in function &lt;ElkBuffBars/ElkBuffBars.lua:304&gt;<br />[string "=[C]"]: ?<br />[string "@Alts/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function &lt;...rfaceAlts/Libs/AceAddon-3.0/AceAddon-3.0.lua:61&gt;<br />[string "@Alts/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function `EnableAddon'<br />[string "@Alts/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function &lt;...rfaceAlts/Libs/AceAddon-3.0/AceAddon-3.0.lua:611&gt;<br />[string "=[C]"]: ?<br />[string "=[C]"]: in function `LoadAddOn'<br />[string "@FrameXML/UIParent.lua"]:545: in function `UIParentLoadAddOn'<br />[string "@FrameXML/UIParent.lua"]:754: in function `MajorFactions_LoadUI'<br />[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:100: in function `SetUpMajorFactionList'<br />[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:93: in function `RefreshMajorFactionList'<br />[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:88: in function `RefreshOverlay'<br />[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:80: in function &lt;...sionLandingPage/Blizzard_DragonflightLandingPage.lua:76&gt;<br />[string "=[C]"]: ?<br />[string "=[C]"]: in function `CreateFrame'<br />[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:49: in function `CreateOverlay'<br />[string "@Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:63: in function `RefreshExpansionOverlay'<br />[string "@Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:35: in function &lt;...pansionLandingPage/Blizzard_ExpansionLandingPage.lua:33&gt;</p>
    <p>Locals:<br />self = &lt;table&gt; {<br /> Register = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:350<br /> callbacks = &lt;table&gt; {<br /> }<br /> Unlock = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:368<br /> IsButtonInCompartment = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:483<br /> Lock = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:356<br /> ShowOnEnter = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:442<br /> SetButtonToPosition = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:475<br /> SetButtonRadius = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:466<br /> UnregisterAllCallbacks = &lt;function&gt; defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164<br /> notCreated = &lt;table&gt; {<br /> }<br /> radius = 5<br /> GetMinimapButton = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:417<br /> RemoveButtonFromCompartment = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:512<br /> IsRegistered = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:393<br /> tooltip = LibDBIconTooltip {<br /> }<br /> AddButtonToCompartment = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:491<br /> RegisterCallback = &lt;function&gt; defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80<br /> Show = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:385<br /> GetButtonList = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:458<br /> UnregisterCallback = &lt;function&gt; defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143<br /> Refresh = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:397<br /> objects = &lt;table&gt; {<br /> }<br /> callbackRegistered = true<br /> Hide = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:380<br /> IconCallback = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:24<br />}<br />name = "ElkBuffBars"<br />db = &lt;table&gt; {<br /> minimapPos = 314.999927<br /> hide = true<br />}<br />button = nil<br />(*temporary) = nil<br />(*temporary) = nil<br />(*temporary) = nil<br />(*temporary) = nil<br />(*temporary) = "attempt to index local 'button' (a nil value)"<br />lib = &lt;table&gt; {<br /> Register = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:350<br /> callbacks = &lt;table&gt; {<br /> }<br /> Unlock = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:368<br /> IsButtonInCompartment = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:483<br /> Lock = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:356<br /> ShowOnEnter = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:442<br /> SetButtonToPosition = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:475<br /> SetButtonRadius = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:466<br /> UnregisterAllCallbacks = &lt;function&gt; defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164<br /> notCreated = &lt;table&gt; {<br /> }<br /> radius = 5<br /> GetMinimapButton = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:417<br /> RemoveButtonFromCompartment = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:512<br /> IsRegistered = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:393<br /> tooltip = LibDBIconTooltip {<br /> }<br /> AddButtonToCompartment = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:491<br /> RegisterCallback = &lt;function&gt; defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80<br /> Show = &lt;function&gt; defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:385<br /> GetButtonList = &lt;function&gt; defined @Wea</p>

     

     

  • Natlyz posted a comment May 9, 2023

    1x ...ddOns/WeakAuras/Libs/LibDBIcon-1.0-50/LibDBIcon-1.0.lua:400: attempt to index local 'button' (a nil value)
    [string "@WeakAuras/Libs/LibDBIcon-1.0-50/LibDBIcon-1.0.lua"]:400: in function `Refresh'
    [string "@ElkBuffBars/ElkBuffBars.lua"]:385: in function `OnProfileEnable'
    [string "@ElkBuffBars/ElkBuffBars.lua"]:305: in function <ElkBuffBars/ElkBuffBars.lua:304>
    [string "=[C]"]: ?
    [string "@Alts/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...rfaceAlts/Libs/AceAddon-3.0/AceAddon-3.0.lua:61>
    [string "@Alts/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function `EnableAddon'
    [string "@Alts/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function <...rfaceAlts/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>
    [string "=[C]"]: ?
    [string "=[C]"]: in function `LoadAddOn'
    [string "@FrameXML/UIParent.lua"]:545: in function `UIParentLoadAddOn'
    [string "@FrameXML/UIParent.lua"]:754: in function `MajorFactions_LoadUI'
    [string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:100: in function `SetUpMajorFactionList'
    [string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:93: in function `RefreshMajorFactionList'
    [string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:88: in function `RefreshOverlay'
    [string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:80: in function <...sionLandingPage/Blizzard_DragonflightLandingPage.lua:76>
    [string "=[C]"]: ?
    [string "=[C]"]: in function `CreateFrame'
    [string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:49: in function `CreateOverlay'
    [string "@Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:63: in function `RefreshExpansionOverlay'
    [string "@Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:35: in function <...pansionLandingPage/Blizzard_ExpansionLandingPage.lua:33>

    Locals:
    self = <table> {
    Register = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:350
    callbacks = <table> {
    }
    Unlock = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:368
    IsButtonInCompartment = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:483
    Lock = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:356
    ShowOnEnter = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:442
    SetButtonToPosition = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:475
    SetButtonRadius = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:466
    UnregisterAllCallbacks = <function> defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
    notCreated = <table> {
    }
    radius = 5
    GetMinimapButton = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:417
    RemoveButtonFromCompartment = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:512
    IsRegistered = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:393
    tooltip = LibDBIconTooltip {
    }
    AddButtonToCompartment = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:491
    RegisterCallback = <function> defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
    Show = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:385
    GetButtonList = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:458
    UnregisterCallback = <function> defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
    Refresh = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:397
    objects = <table> {
    }
    callbackRegistered = true
    Hide = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:380
    IconCallback = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:24
    }
    name = "ElkBuffBars"
    db = <table> {
    minimapPos = 314.999927
    hide = true
    }
    button = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to index local 'button' (a nil value)"
    lib = <table> {
    Register = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:350
    callbacks = <table> {
    }
    Unlock = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:368
    IsButtonInCompartment = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:483
    Lock = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:356
    ShowOnEnter = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:442
    SetButtonToPosition = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:475
    SetButtonRadius = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:466
    UnregisterAllCallbacks = <function> defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
    notCreated = <table> {
    }
    radius = 5
    GetMinimapButton = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:417
    RemoveButtonFromCompartment = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:512
    IsRegistered = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:393
    tooltip = LibDBIconTooltip {
    }
    AddButtonToCompartment = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:491
    RegisterCallback = <function> defined @Alts/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
    Show = <function> defined @WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:385
    GetButtonList = <function> defined @Wea

  • BelegCufea posted a comment May 9, 2023

    quick fix ...

     

    change code on line 385 of ElkBuffBars.lua:

     

    LDBIcon:Refresh(ELKBUFFBARS, self.db.profile.minimap)

     

     

    with:

     

    if LDBIcon:IsRegistered(ELKBUFFBARS) then LDBIcon:Refresh(ELKBUFFBARS, self.db.profile.minimap) end

     

  • Natlyz posted a comment May 9, 2023

    Thanks, I will try it!

  • Natlyz posted a comment May 9, 2023

     It seems to be working now 🥳

  • Elkano posted a comment May 10, 2023

    It's a bug with LibDBIcon-1.0 v10.1.2 which is not correctly upgrading from older versions.

    I forwarded that issue to its author and an updated version of that library should be in the wild soon.

     


To post a comment, please login or register a new account.