Lua error on Wrath #344


Closed
  • bsmorgan created this issue Jun 4, 2023

    Please ensure you have searched open and closed issues for your problem or request. Ensure you've read the FAQ as well.

     

    IceHUD version: 1.14.21-wrath

    Game version (Retail, PTR, Classic, BC-Classic, etc.): Classic

    Description of issue/feature request: 

     

    13x IceHUD/IceCastBar.lua:468: bad argument #1 to 'SetAlpha' (Usage: self:SetAlpha(alpha))
    [string "=[C]"]: in function `SetAlpha'
    [string "@IceHUD/IceCastBar.lua"]:468: in function `FlashBar'
    [string "@IceHUD/IceCastBar.lua"]:399: in function `MyOnUpdate'
    [string "@IceHUD/IceBarElement.lua"]:977: in function `func'
    [string "@IceHUD/IceCore.lua"]:997: in function `HandleUpdates'
    [string "@IceHUD/IceCore.lua"]:1023: in function <IceHUD/IceCore.lua:1023>

    Locals:
    (*temporary) = IceHUD_CastBar {
    0 = <userdata>
    bottomLowerText = FontString {
    }
    bg = Texture {
    }
    bottomUpperText = FontString {
    }
    }
    (*temporary) = 1.126000

     

  • Parnic posted a comment Jun 5, 2023

    What causes this issue? How can I reproduce the problem myself?

     

    If I log into Wrath Classic and cast some spells, it works fine with no errors.

  • bsmorgan posted a comment Jun 5, 2023

    I'm not exactly sure what causes it. I'll have to be more attentive next time. My guess is that alpha is nil when the error occurs.

     

    I'm playing Wrath for a few hours almost everyday and for the most part, IceHUD behaves. If you were to provide me with some debug / troubleshooting code to add to that function when alpha is nil, then I can hopefully capture more information the next time it happens.

     

  • Parnic posted a comment Jun 5, 2023

    I'm not sure any additional code would reveal anything helpful. I went ahead and pushed an alpha v1.14.22-alpha1 version to see if that fixes it. It'll be available on the CurseForge app if you switch IceHUD to alpha builds or at https://github.com/parnic/ice-hud/releases.

  • bsmorgan posted a comment Jun 6, 2023

    I've updated to the alpha. I'll let you know what I find.

  • Parnic posted a comment Jun 14, 2023

    Did this work?

  • bsmorgan posted a comment Jun 15, 2023

    I haven't had any reoccurrence so I think its fixed. 

  • Parnic closed issue Jul 5, 2023

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