1. #1

    Weak Aura Lua Error

    Let me start off by saying that I do understand that I am able to turn off the LUA Error display if the addon in question is still working. I do also keep getting the "Your addons are experiencing a large number of errors..." popup and I'm just curious as to what is causing the issue here. Is this a problem with one of my WA's, or something else?

    Message: [string "return function()..."]:3: attempt to perform arithmetic on local 'x' (a nil value)
    Time: 10/22/13 13:08:25
    Count: 12034
    Stack: [string "*:OnLoad"]:6: in function <[string "*:OnLoad"]:1>
    [C]: ?
    [string "return function()..."]:3: in function <[string "return function()..."]:1>
    Interface\AddOns\WeakAuras\RegionTypes\aurabar.lua:907: in function `UpdateCustomText'
    Interface\AddOns\WeakAuras\WeakAuras.lua:4931: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:4927>

    Locals: msg = nil
    self = <unnamed> {
    0 = <userdata>
    origErrorHandler = <function> defined Interface\FrameXML\BasicControls.xml:<Scripts>:4
    errorHandler = <function> defined @Interface\AddOns\TradeSkillMaster\Util\ErrorHandler.lua:223
    handler = <function> defined *:OnLoad:1
    }
    Hoofshoes - of <BIG SUSHI> US (H) Area 52
    Now Recruiting!

  2. #2
    It's a little difficult to tell, but I think your best option is going to be to disable TSM (TradeSkillMaster) and log in to see if you still get the error.

    If you do still get it then you know it's a WeakAura. Then you've just got to find out which WA is giving you trouble; which will be a bit more difficult task.
    Virtualize <Solution> @ Greymane | virtual#1157 | Web | YouTube | Twitter | Facebook
    Hermes - Share cooldown status with raid/party.
    Skada: Survivability - Show when a character died during a specific attempt.
    AffDots - Track the potency of your DoTs on a target.

  3. #3
    Yeah still getting the error. Just to get a bit more information, could this error come from a Weak Aura that is not currently loaded? Also, if it helps, when I click on any Weak Aura group with the lua error window up, the errors stop. When I close Weak Auras again, they start. Not sure if it's helpful.

    And just in case it's useful, here's the error with TSM closed.

    Message: [string "return function()..."]:3: attempt to perform arithmetic on local 'x' (a nil value)
    Time: 10/22/13 16:18:43
    Count: 6222
    Stack: [C]: ?
    [string "return function()..."]:3: in function <[string "return function()..."]:1>
    Interface\AddOns\WeakAuras\RegionTypes\aurabar.lua:907: in function `UpdateCustomText'
    Interface\AddOns\WeakAuras\WeakAuras.lua:4931: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:4927>

    Locals:
    Thanks for the help!
    Hoofshoes - of <BIG SUSHI> US (H) Area 52
    Now Recruiting!

  4. #4
    It's doubtful that it would come from an Aura that is not loaded, but I can't say with 100% certainty.

    Your next option is probably to go in to any of your auras and go to the "Load" tab and click "Never". Do that one by one until you get the error to go away.

    You could also target auras that contain progress bars as "aurabar.lua" in the error, leads me to believe that it has something to do with an aura that has a progress bar.
    Virtualize <Solution> @ Greymane | virtual#1157 | Web | YouTube | Twitter | Facebook
    Hermes - Share cooldown status with raid/party.
    Skada: Survivability - Show when a character died during a specific attempt.
    AffDots - Track the potency of your DoTs on a target.

  5. #5
    Try to go through your progress bar textures that use a custom text (%c and a lua function) in the display tab, there's likely some "local x = ..." and later some aritmethic using x in there without error checks.

    Edit: You could probably just search for "local x" in your WeakAuras.lua savedvariables file:

    1. Open <Your WoW Folder>\WTF\Account\<YourAccountName>\SavedVariables\WeakAuras.lua in any editor you want
    2. Search for "local x"
    3. the line containing the match will probably have ["customText"] at the beginning
    4. The aura name containing that is in ["..."] at the top of that block, for example:
    Code:
            ["My Cool Aura"] = {                                        <<< This is the aura name that's likely causing you trouble
    ... stuff ...
                ["customText"] = "... stuff with local x ...",          <<< This is the line you found
    ... stuff ...
            },
    5. Link back your aura so we can take a look at it
    Last edited by ccKep; 2013-10-22 at 10:02 PM.

  6. #6
    this is why you don't copy custom weakauras from other people

  7. #7
    OK, I think I found the one causing the issue. It is a progress bar for my DK's blood shield value. Here is the export. I'm not sure what to change to resolve this error.

    Code:
    dyeekaGiI0LOK0OiItrOwLsGELss1Sii3sjj7sjXVOKQHbKJrvwgLspJsX0GkDnOGTbvrFJsIXbvjNdQsDpLOoivflKqEiuKjQeYfHIAJuv6JkHAKqHoPsQvc4Lkb1mHQWnvIStI6NqvzOkbSuOQ6PctvIUkb6RkjL5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3GVShEJ3pkIVHbE2xgxm8WpKTt2Acp7l79yx5JgAX1ti5XAsNSb6mfy9es4ceJPXyzrjTbVWKQDWTfrUEcoz2(G30jo8fawj9dr4RSeFlH)1lgJLVFWFy7kGEu4YE46b69p
    Thanks again for the assistance here!
    Hoofshoes - of <BIG SUSHI> US (H) Area 52
    Now Recruiting!

  8. #8
    open its custom text, and change
    Code:
    GetTime()-x
    to
    Code:
    GetTime()-(x or GetTime())

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •