LUA error with monk stagger #2025


Open
  • Hermonii created this issue Nov 22, 2023

    Hello, since the last patch there a problem with the addon on monk.

    There the log (i tested with only this addon activated) : 

     

    Message: ...ce/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:44: attempt to compare number with nil
    Time: Wed Nov 22 16:10:31 2023
    Count: 284
    Stack: ...ce/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:44: attempt to compare number with nil
    [string "@Interface/AddOns/ShadowedUnitFrames/modules/monkstagger.lua"]:44: in function `Update'
    [string "@Interface/AddOns/ShadowedUnitFrames/modules/monkstagger.lua"]:13: in function <...ce/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:8>

    Locals: self = <table> {
    moduleClass = "MONK"
    moduleHasBar = true
    Update = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:37
    UpdateMinMax = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:30
    OnEnable = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:4
    OnLayoutApplied = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:24
    moduleKey = "staggerBar"
    moduleSpec = <table> {
    }
    moduleName = "Barre de Report"
    OnDisable = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:20
    }
    frame = SUFUnitplayer {
    BottomLeftCorner = Texture {
    }
    OnEnter = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:670
    UnregisterAll = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:145
    OnBackdropLoaded = <function> defined @Interface/SharedXML/Backdrop.lua:152
    GetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:390
    powerBar = StatusBar {
    }
    emptyBar = StatusBar {
    }
    ClearBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:282
    unitType = "player"
    staggerBar = StatusBar {
    }
    indicators = Frame {
    }
    unitInitialized = true
    unit = "player"
    ReregisterUnitEvents = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:41
    SetupTextureCoordinates = <function> defined @Interface/SharedXML/Backdrop.lua:214
    HasBackdropInfo = <function> defined @Interface/SharedXML/Backdrop.lua:278
    RegisterUnitEvent = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:112
    fontStrings = <table> {
    }
    GetEdgeSize = <function> defined @Interface/SharedXML/Backdrop.lua:188
    TopEdge = Texture {
    }
    unitOwner = "player"
    fullUpdates = <table> {
    }
    UnregisterUpdateFunc = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:135
    combatText = Frame {
    }
    incHeal = StatusBar {
    }
    FullUpdate = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:33
    LeftEdge = Texture {
    }
    registeredEvents = <table> {
    }
    UnitClassToken = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:685
    TopLeftCorner = Texture {
    }
    RegisterNormalEvent = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:62
    SetVisibility = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:246
    topFrameLevel = 5
    ApplyBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:294
    SetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:329
    GetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:409
    GetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:347
    SetRangeAlpha = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:179
    visibility = <table> {
    }
    SetBorderBlendMode = <function> defined @Interface/SharedXML/Backdrop.lua:266
    Center = Texture {
    }
    unitRealType = "player"
    isDead = false
    unitGUID = "Player-1122-09B0D7AF"
    vehicleUnit = "vehicle"
    OnLeave = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:678
    backdropInfo = <table> {
    }
    OnBackdropSizeChanged = <function> defined @Interface/SharedXML/Backdrop.lua:182
    hasStateWatch = false
    incAbsorb = StatusBar {
    }
    RightEdge = Texture {
    }
    0 = <userdata>
    BottomEdge = Texture {
    }
    SetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:422
    highFrame = Frame {
    }

     

    Edit : And the energy's text doesnt update when we use it. 

  • Hermonii edited description Nov 22, 2023
  • gravestorm_ posted a comment Nov 25, 2023

    Same here.. im getting this report

     

    Message: ...ce/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:44: attempt to compare number with nil
    Time: Sat Nov 25 05:59:06 2023
    Count: 1
    Stack: ...ce/AddOns/ShadowedUnitFrames/modules/monkstagger.lua:44: attempt to compare number with nil
    [string "@Interface/AddOns/ShadowedUnitFrames/modules/units.lua"]:375: in function `CheckUnitStatus'
    [string "@Interface/AddOns/ShadowedUnitFrames/modules/units.lua"]:614: in function <...nterface/AddOns/ShadowedUnitFrames/modules/units.lua:440>
    [string "=[C]"]: in function `SetAttribute'
    [string "@Interface/AddOns/ShadowedUnitFrames/modules/units.lua"]:964: in function `LoadUnit'
    [string "@Interface/AddOns/ShadowedUnitFrames/modules/units.lua"]:1337: in function `InitializeFrame'
    [string "@Interface/AddOns/ShadowedUnitFrames/ShadowedUnitFrames.lua"]:274: in function `LoadUnits'
    [string "@Interface/AddOns/ShadowedUnitFrames/ShadowedUnitFrames.lua"]:86: in function `OnInitialize'
    [string "@Interface/AddOns/ShadowedUnitFrames/ShadowedUnitFrames.lua"]:932: in function <...ace/AddOns/ShadowedUnitFrames/ShadowedUnitFrames.lua:930>

    Locals: self = <table> {
    CheckPlayerZone = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1454
    InitializeArena = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1438
    headerUnits = <table> {
    }
    CheckGroupedUnitStatus = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:392
    CheckVehicleStatus = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:342
    CreateBar = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1423
    canCure = <table> {
    }
    ProfileChanged = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1390
    PositionHeaderChildren = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:761
    unitEvents = <table> {
    }
    UninitializeFrame = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1342
    CheckUnitStatus = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:369
    LoadGroupHeader = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1063
    OnAttributeChanged = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:440
    CheckPetUnitUpdated = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:382
    zoneUnits = <table> {
    }
    OnEvent = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:211
    ReloadHeader = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:742
    childUnits = <table> {
    }
    LoadUnit = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:956
    headerFrames = <table> {
    }
    LoadZoneHeader = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1157
    LoadSplitGroupHeader = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:999
    unitFrames = <table> {
    }
    SetHeaderAttributes = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:797
    CheckGroupVisibility = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:782
    CreateUnit = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:694
    moduleKey = "units"
    frameList = <table> {
    }
    InitializeFrame = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1323
    LoadChildUnit = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:1278
    remappedUnits = <table> {
    }
    }
    frame = SUFUnitplayer {
    vehicleUnit = "vehicle"
    OnEnter = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/highlight.lua:9
    UnregisterAll = <function> defined @Interface/AddOns/ShadowedUnitFrames/modules/units.lua:145
    OnBackdropLoaded = <function> defined @Interface/SharedXML/Backdrop.lua:152
    GetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:390
    powerBar = StatusBar {
    }
    disableRangeAlpha = false
    ClearBackdrop = <function> de

  • JazzyTwo posted a comment Dec 2, 2023

    I have posted a fix to this issue here.  I posted it back when 10.2 was on the PTR.  I have no idea why it hasn't been incorporated yet.

  • kukkai posted a comment Dec 3, 2023

    Same for me.


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