Addon behaving chaotically with constant LUA errors #1479


Closed
  • snoopyandthebunnywunnies created this issue Apr 22, 2026

    What version of Grid2  are you using (Version is displayed in General/About Tab) ? 

    -3.3.21 beta

     

    What game client version, classic or retail, windows or mac and language are you using ?

    -12.0.5 retail, Windows, English

     

    What steps will reproduce the problem?

    -I basically get it non-stop

      
    Did you try having Grid2 as the only enabled addon and everything else disabled?

    -no

      

    Was it working in a previous version? If yes, which was the last good one?

    -I've been getting tons of errors of all sorts (one every few seconds or even multiple per second) with every version since 3.3.11. I downgraded to that and used it but I started having new errors today with the 0.5 patch, so I upgraded, and this is what I'm getting now.

      

    Do you have an error log of what happened? If you don't see any errors, make sure that error reporting is enabled (`/console scriptErrors 1`) or install [BugSack](https://mods.curse.com/addons/wow/BugSack).

    223x Grid2/modules/IndicatorText.lua:141: bad argument #1 to 'SetAlpha' (Usage: self:SetAlpha(alpha))
    [Grid2/modules/IndicatorText.lua]:141: in function <Grid2/modules/IndicatorText.lua:138>
    [Grid2/modules/IndicatorText.lua]:232: in function 'OnUpdate'
    [Grid2/GridIndicator.lua]:107: in function 'Update'
    [Grid2/GridFrame.lua]:194: in function 'UpdateIndicators'
    [Grid2/GridFrame.lua]:89: in function <Grid2/GridFrame.lua:81>
    [C]: in function 'SetAttribute'
    [Blizzard_RestrictedAddOnEnvironment/SecureGroupHeaders.lua]:209: in function <...rd_RestrictedAddOnEnvironment/SecureGroupHeaders.lua:129>
    [Blizzard_RestrictedAddOnEnvironment/SecureGroupHeaders.lua]:492: in function <...rd_RestrictedAddOnEnvironment/SecureGroupHeaders.lua:391>
    [C]: in function 'Show'
    [Grid2/GridLayout.lua]:734: in function 'ForceFramesCreation'
    [Grid2/GridLayout.lua]:721: in function 'FixHeaderAttributes'
    [Grid2/GridLayout.lua]:593: in function 'AddHeader'
    ...[C]: ?
    [BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:19: in function <...igs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:54: in function 'SendMessage'
    [Grid2/GridRoster.lua]:404: in function 'GroupChanged'
    [Grid2/GridRoster.lua]:343: in function '?'
    [BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:109: in function <...igs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>
    [C]: ?
    [BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:19: in function <...igs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:54: in function 'Fire'
    [Grid2/Libs/AceEvent-3.0/AceEvent-3.0.lua]:120: in function <...faceGrid2/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>

     

    Locals:
    self=<table>{
    anchorRel="TOP"
    framesCreated=true
    sideKick=<table>
    priorities=<table>
    anchor="TOP"
    textlength=20
    dbx=<table>
    shadowAlpha=1
    offsety=-10
    statuses=<table>
    prototype=<table>
    textsize=13
    textfont="Fonts\FRIZQT__.TTF"
    frameLevel=7
    name="text-up"
    offsetx=0
    }
    Frame=Frame <GridIndicator.lua:42>{
    Text=FontString <IndicatorText.lua:114>
    }
    unit="party1"
    status=<table>{
    enabled=true
    indicators=<table>
    priorities=<table>
    name="custom-name"
    dbx=<table>
    }
    text="XXXXXXXX"
    value="XXXXXXX"

      

    And here's a second one

     

    228x Grid2/modules/IndicatorText.lua:141: bad argument #1 to 'SetAlpha' (Usage: self:SetAlpha(alpha))
    [Grid2/modules/IndicatorText.lua]:141: in function <Grid2/modules/IndicatorText.lua:138>
    [Grid2/modules/IndicatorText.lua]:232: in function 'OnUpdate'
    [Grid2/GridIndicator.lua]:107: in function 'Update'
    [Grid2/GridFrame.lua]:194: in function 'UpdateIndicators'
    [Grid2/GridFrame.lua]:89: in function <Grid2/GridFrame.lua:81>
    [C]: in function 'SetAttribute'
    [Blizzard_RestrictedAddOnEnvironment/SecureGroupHeaders.lua]:209: in function <...rd_RestrictedAddOnEnvironment/SecureGroupHeaders.lua:129>
    [Blizzard_RestrictedAddOnEnvironment/SecureGroupHeaders.lua]:492: in function <...rd_RestrictedAddOnEnvironment/SecureGroupHeaders.lua:391>
    [C]: in function 'Hide'
    [Blizzard_UIParentPanelManager/Shared/UIParentPanelManager.lua]:1046: in function <...UIParentPanelManager/Shared/UIParentPanelManager.lua:1041>
    [Grid2Options/Libs/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua]:1857: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:1856>
    [C]: in function 'securecall'
    [Blizzard_UIParentPanelManager/Shared/UIParentPanelManager.lua]:1087: in function 'CloseWindows'
    [Blizzard_UIParentPanelManager/Shared/UIParentPanelManager.lua]:1101: in function <...UIParentPanelManager/Shared/UIParentPanelManager.lua:1099>
    [C]: in function 'securecall'
    [Blizzard_UIParent/Mainline/UIParent.lua]:2383: in function 'ToggleGameMenu'
    [TOGGLEGAMEMENU]:1: in function <[string "TOGGLEGAMEMENU"]:1>

     

    Locals:
    self=<table>{
    anchorRel="TOP"
    framesCreated=true
    sideKick=<table>
    priorities=<table>
    anchor="TOP"
    textlength=20
    dbx=<table>
    shadowAlpha=1
    offsety=-10
    statuses=<table>
    prototype=<table>
    textsize=13
    textfont="Fonts\FRIZQT__.TTF"
    frameLevel=7
    name="text-up"
    offsetx=0
    }
    Frame=Frame <GridIndicator.lua:42>{
    Text=FontString <IndicatorText.lua:114>
    }
    unit="party1"
    status=<table>{
    enabled=true
    indicators=<table>
    priorities=<table>
    name="custom-name"
    dbx=<table>
    }
    text="XXXX"
    value="XXXXXXXX"

     

    Please provide any additional information below.

    The addon is completely dysfunctional for me. Some people's names don't show, their healthbars are random colors, the health doesn't move, some people have an absorb bar covering their health with no absorb on them, I have a random square indicator at the bottom of the frames even though I don't even have a square indicator created on my profile, and everything I do pops up a new LUA error for me.

     

     

  • snoopyandthebunnywunnies edited title and description Apr 22, 2026
  • michaelsp posted a comment Apr 22, 2026

    Grid2 is crashing trying to display the "custom-name" status, that is providing an incorrect value,  but the addon does not include this status. Which kind of status is this ?

     

    Found a custom-name addon for grid2 in curseforge. You must disable this addon or open an issue in the project page.

    The addon author must change the addon GetText() method to remove the second parameter returned by lib.UnitName(unit) function.

     

    This is wrong for latest versions of Grid2:

     

    function CustomName:GetText(unit)
    return lib.UnitName(unit)
    end

     

    This is right:

     

    function CustomName:GetText(unit)
    return (lib.UnitName(unit))
    end


    Edited Apr 22, 2026
  • snoopyandthebunnywunnies posted a comment Apr 23, 2026

    That did it, thank you! It was just an addon that lets me change display names in case people are on alts, etc, didn't even think of it. I fixed it and it works fine, I'll send a ticket to the creator of that addon. While I'm here, I also just received this error, I don't know what caused it:

     

    251x Grid2/modules/IndicatorText.lua:141: bad argument #1 to 'SetAlpha' (Usage: self:SetAlpha(alpha))
    [Grid2/modules/IndicatorText.lua]:141: in function <Grid2/modules/IndicatorText.lua:138>
    [Grid2/modules/IndicatorText.lua]:178: in function 'OnUpdate'
    [Grid2/GridIndicator.lua]:107: in function 'Update'
    [Grid2/GridStatus.lua]:81: in function 'UpdateIndicators'
    [Grid2/modules/StatusColor.lua]:36: in function '?'
    [BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:109: in function <...igs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>
    [C]: ?
    [BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:19: in function <...igs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
    [BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua]:54: in function 'Fire'
    [Grid2/Libs/AceEvent-3.0/AceEvent-3.0.lua]:120: in function <...faceGrid2/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>

     

    Locals:
    self=<table>{
    framesCreated=true
    anchorRel="BOTTOM"
    priorities=<table>
    sideKick=<table>
    anchor="BOTTOM"
    textlength=12
    dbx=<table>
    frameLevel=6
    statuses=<table>
    textfont="Fonts\FRIZQT__.TTF"
    shadowAlpha=1
    offsety=0
    name="text-down"
    prototype=<table>
    offsetx=0
    textsize=12
    }
    Frame=Frame <GridIndicator.lua:42>{
    Text=FontString <IndicatorText.lua:114>
    }
    unit="partypet1"
    status=<table>{
    indicators=<table>
    priorities=<table>
    dbx=<table>
    name="vehicle"
    enabled=true
    }
    text="XX"
    value="XXX"

  • michaelsp posted a comment Apr 23, 2026

    Remove the vehicle status from your text indicator, or update to version 3.3.23-beta

     

  • michaelsp closed issue Apr 27, 2026

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