Dungeon/Raid Constant Error #1938


Closed
  • pixelsforhire created this issue Jan 21, 2023

    It starts mainly when I'm in a dungeon or raid. It doesn't stop until I reload after the dungeon or raid.

    419334x ...aceShadowedUnitFrames/modules/indicators.lua:180: bad argument #1 to 'SetAlpha' (Usage: self:SetAlpha(alpha))
    [string "=[C]"]: in function `SetAlpha'
    [string "@ShadowedUnitFrames/modules/indicators.lua"]:180: in function <...aceShadowedUnitFrames/modules/indicators.lua:174>

    Locals:
    (*temporary) = Texture {
    enabled = true
    status = "ready"
    0 = <userdata>
    }
    (*temporary) = -0.000000

  • pixelsforhire posted a comment Jan 21, 2023

    wotlk 3.4.1.47720

  • simulatedsmarts posted a comment Jan 22, 2023

    The problem here is that the remaining time subtraction on line 179 of modules/indicators.lua occasionally goes negative and passing a negative value to SetAlpha produces the error, this fix is to change

     

    f.fadeList[fadeFrame] = timeLeft - elapsed

     

    to

     

    f.fadeList[fadeFrame] = math.max(0, timeLeft - elapsed)

  • gyurielf posted a comment Jan 22, 2023

    I can confirm this bug.

  • nevcairiel closed issue Feb 12, 2023

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