layout.lua and units.lua problems #970


  • Defect
  • Fixed
Closed
Assigned to shadowed103
  • _ForgeUser7649061 created this issue Aug 17, 2016

    What steps will reproduce the problem?
    1. The addon was fine until the latest update, v4.1.6-3-gba329df
    2. I load into the game and the entire addon seems to not work.
    3.

    What is the expected output? What do you see instead?
    I expect to see my player,target,focus, and target focus bar.
    Now I only my player portrait and nothing else (Not even the health or power bars).

    What version of the product are you using?

    v4.1.6-3-gba329df

    Do you have an error log of what happened?

    18x ShadowedUnitFrames\modules\layout.lua:376: attempt to index a nil value
    ShadowedUnitFrames\modules\layout.lua:376: in function `SetupBars'
    ShadowedUnitFrames\modules\layout.lua:142: in function `Load'
    ShadowedUnitFrames\modules\units.lua:303: in function `SetVisibility'
    ShadowedUnitFrames\modules\units.lua:602: in function <ShadowedUnitFrames\modules\units.lua:429>
    [C]: in function `SetAttribute'
    ShadowedUnitFrames\modules\units.lua:968: in function `LoadUnit'
    ShadowedUnitFrames\modules\units.lua:1341: in function `InitializeFrame'
    ...aceShadowedUnitFrames\ShadowedUnitFrames-v4.1.6-3-gba329df.lua:232: in function `LoadUnits'
    ShadowedUnitFrames\modules\units.lua:1471: in function `CheckPlayerZone'
    ShadowedUnitFrames\modules\units.lua:1530: in function <ShadowedUnitFrames\modules\units.lua:1521>

    Locals:
    self = <table> {
    SetupBars = <function> defined @ShadowedUnitFrames\modules\layout.lua:363
    CheckMedia = <function> defined @ShadowedUnitFrames\modules\layout.lua:48
    SetupFrame = <function> defined @ShadowedUnitFrames\modules\layout.lua:319
    LoadSML = <function> defined @ShadowedUnitFrames\modules\layout.lua:166
    ReverseDirection = <function> defined @ShadowedUnitFrames\modules\layout.lua:222
    ToggleVisibility = <function> defined @ShadowedUnitFrames\modules\layout.lua:68
    GetRelative = <function> defined @ShadowedUnitFrames\modules\layout.lua:210
    PositionWidgets = <function> defined @ShadowedUnitFrames\modules\layout.lua:496
    mediaPath = <table> {
    }
    SetupText = <function> defined @ShadowedUnitFrames\modules\layout.lua:450
    InitFontString = <function> defined @ShadowedUnitFrames\modules\layout.lua:418
    MediaRegistered = <function> defined @ShadowedUnitFrames\modules\layout.lua:58
    GetRelativeAnchor = <function> defined @ShadowedUnitFrames\modules\layout.lua:227
    SetupFontString = <function> defined @ShadowedUnitFrames\modules\layout.lua:402
    GetAuraGrowth = <function> defined @ShadowedUnitFrames\modules\layout.lua:218
    Reload = <function> defined @ShadowedUnitFrames\modules\layout.lua:99
    SetBarVisibility = <function> defined @ShadowedUnitFrames\modules\layout.lua:76
    GetJustify = <function> defined @ShadowedUnitFrames\modules\layout.lua:193
    GetPoint = <function> defined @ShadowedUnitFrames\modules\layout.lua:206
    MediaForced = <function> defined @ShadowedUnitFrames\modules\layout.lua:10
    GetColumnGrowth = <function> defined @ShadowedUnitFrames\modules\layout.lua:214
    GetSplitRelativeAnchor = <function> defined @ShadowedUnitFrames\modules\layout.lua:249
    Load = <function> defined @ShadowedUnitFrames\modules\layout.lua:124
    AnchorFrame = <function> defined @ShadowedUnitFrames\modules\layout.lua:265
    }
    frame = SUFUnitplayer {
    0 = <userdata>
    OnEnter = <function> defined @ShadowedUnitFrames\modules\units.lua:681
    portrait = <unnamed> {
    }
    UnregisterAll = <function> defined @ShadowedUnitFrames\modules\units.lua:140
    registeredEvents = <table> {
    }
    UnitClassToken = <function> defined @ShadowedUnitFrames\modules\units.lua:688
    powerBar = <unnamed> {
    }
    RegisterNormalEvent = <function> defined @ShadowedUnitFrames\modules\units.lua:62
    SetVisibility = <function> defined @ShadowedUnitFrames\modules\units.lua:241
    topFrameLevel = 5
    RegisterUpdateFunc = <function> defined @ShadowedUnitFrames\modules\units.lua:113
    SetBlockColor = <function> defined @ShadowedUnitFrames\modules\units.lua:186
    unitType = "player"
    SetRangeAlpha = <function> defined @ShadowedUnitFrames\modules\units.lua:174
    visibility = <table> {
    }
    xpBar = <unnamed> {
    }
    indicators = <unnamed> {
    }
    unitInitialized = true
    unitRealType = "player"
    unit = "player"
    ReregisterUnitEvents = <function> defined @ShadowedUnitFrames\modules\units.lua:41
    SetBarColor = <function> defined @ShadowedUnitFrames\modules\units.lua:182
    RegisterUnitEvent = <function> defined @ShadowedUnitFrames\modules\units.lua:107
    healAbsorb = <unnamed> {
    }
    incAbsorb = <unnamed> {
    }
    CreateOnUpdate = <function> defined @ShadowedUnitFrames\modules\units.lua:652
    highFrame = <unnamed> {
    }
    OnLeave = <function> defined @FrameXML\UnitFrame.lua:454
    UnregisterSingleEvent = <function> defined @ShadowedUnitFrames\modules\units.lua:90
    DisableRangeAlpha = <function> defined @ShadowedUnitFrames\modules\units.lua:166
    vehicleUnit = "vehicle"
    fullUpdates = <table

    Please provide any additional information below.

    Like I said the addon was fine until I updated it today and then I no longer see any of my bars. If I use an older version (such as v4.1.6), the bars are shown and positioned in the correct place, but there is no text showing on the bars with the following error:

    15x ShadowedUnitFrames\modules\auras-Auras.lua:652: attempt to index field 'buffs' (a nil value)
    ShadowedUnitFrames\modules\auras-Auras.lua:652: in function `?'
    ShadowedUnitFrames\modules\units.lua:36: in function `FullUpdate'
    ShadowedUnitFrames\modules\units.lua:370: in function `CheckUnitStatus'
    ShadowedUnitFrames\modules\units.lua:226: in function <ShadowedUnitFrames\modules\units.lua:223>
    [C]: in function `Show'
    FrameXML\SecureStateDriver.lua:83: in function <FrameXML\SecureStateDriver.lua:73>
    FrameXML\SecureStateDriver.lua:137: in function <FrameXML\SecureStateDriver.lua:119>

    Locals:
    self = <table> {
    OnDisable = <function> defined @ShadowedUnitFrames\modules\auras.lua:17
    updateButton = <function> defined @ShadowedUnitFrames\modules\auras.lua:216
    UpdateFilter = <function> defined @ShadowedUnitFrames\modules\auras.lua:487
    scan = <function> defined @ShadowedUnitFrames\modules\auras.lua:582
    OnEnable = <function> defined @ShadowedUnitFrames\modules\auras.lua:7
    OnLayoutApplied = <function> defined @ShadowedUnitFrames\modules\auras.lua:325
    moduleKey = "auras"
    moduleName = "Auras"
    Update = <function> defined @ShadowedUnitFrames\modules\auras.lua:643
    anchorGroupToGroup = <function> defined @ShadowedUnitFrames\modules\auras.lua:611
    }
    frame = SUFUnittarget {
    0 = <userdata>
    OnEnter = <function> defined @ShadowedUnitFrames\modules\units.lua:681
    portrait = <unnamed> {
    }
    UnregisterAll = <function> defined @ShadowedUnitFrames\modules\units.lua:140
    isDead = false
    auras = <table> {
    }
    registeredEvents = <table> {
    }
    UnitClassToken = <function> defined @ShadowedUnitFrames\modules\units.lua:688
    powerBar = <unnamed> {
    }
    RegisterNormalEvent = <function> defined @ShadowedUnitFrames\modules\units.lua:62
    SetVisibility = <function> defined @ShadowedUnitFrames\modules\units.lua:241
    topFrameLevel = 5
    RegisterUpdateFunc = <function> defined @ShadowedUnitFrames\modules\units.lua:113
    SetBlockColor = <function> defined @ShadowedUnitFrames\modules\units.lua:186
    unitType = "target"
    SetRangeAlpha = <function> defined @ShadowedUnitFrames\modules\units.lua:174
    visibility = <table> {
    }
    indicators = <unnamed> {
    }
    unitInitialized = true
    isUnitVolatile = true
    unit = "target"
    ReregisterUnitEvents = <function> defined @ShadowedUnitFrames\modules\units.lua:41
    RegisterUnitEvent = <function> defined @ShadowedUnitFrames\modules\units.lua:107
    unitGUID = "Player-3684-07B72038"
    hasStateWatch = false
    SetBarColor = <function> defined @ShadowedUnitFrames\modules\units.lua:182
    altPowerBar = <unnamed> {
    }
    healAbsorb = <unnamed> {
    }
    incAbsorb = <unnamed> {
    }
    CreateOnUpdate = <function> defined @ShadowedUnitFrames\modules\units.lua:652
    highFrame = <unnamed> {
    }
    OnLeave = <function> defined @FrameXML\UnitFrame.lua:454
    UnregisterSingleEvent = <function> defined @ShadowedUnitFrames\modules\units.lua:90
    DisableRangeAlpha = <function> defined @ShadowedUnitFrames\modules\units.lua:166
    healthBar = <unnamed> {
    }
    fullUpdates = <table> {
    }
    UnregisterUpdateFunc = <function> defined @ShadowedUnitFrames\modules\units.lua:130
    unitRealType = "target"
    BlizzRegisterUnitEvent = <function> defined =[C]:-1
    incHeal = <unnamed> {
    }
    FullUpdate = <function> defined @ShadowedUnitFrames\modules\units.lua:33
    portraitModel = <unnamed> {
    }
    unitOwner = "target"
    }
    config = <table> {
    height = 0.5
    debuffs = <table> {
    }
    buffs = <table> {
    }
    }
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to index field 'buffs' (a nil value)"
    scan = <function> defined @ShadowedUnitFrames\modules\auras.lua:582
    anchorGroupToGroup = <function> defined @ShadowedUnitFrames\modules\auras.lua:611

  • _ForgeUser7649061 added the tags New Defect Aug 17, 2016
  • _ForgeUser7649061 added an attachment ShadowedUnitFrames.lua Aug 17, 2016

    ShadowedUnitFrames.lua

  • _ForgeUser7649061 added an attachment Capture1.PNG Aug 17, 2016

    Capture1.PNG

    <p>(v4.1.6-3-gba329df) Only player portrait is showing</p>

  • _ForgeUser7649061 added an attachment Capture.PNG Aug 17, 2016

    Capture.PNG

    <p>&nbsp;v4.1.6 (No text is showing)</p>

  • _ForgeUser7649061 edited description Aug 17, 2016
  • _ForgeUser7649061 edited description Aug 17, 2016
  • nevcairiel posted a comment Aug 17, 2016

    Both your errors don't seem to be making much sense, they error in places where it should not be possible to error.

    Maybe they are follow up errors to a previous error?

  • nevcairiel posted a comment Aug 17, 2016

    Can you upload your WTF\Account\<name>\SavedVariables\ShadowedUnitFrames.lua

  • _ForgeUser7649061 posted a comment Aug 17, 2016

    Uploaded some pictures and ShadowedUnitFrames.lua for v4.1.6-3-gba329df


    Edited Aug 17, 2016
  • nevcairiel posted a comment Aug 17, 2016

    Should hopefully be fixed, worst case you need to relog once.


    Edited Aug 17, 2016
  • _ForgeUser7649061 posted a comment Aug 17, 2016

    Thank you for your time, seems to be working just fine now!

  • nevcairiel removed a tag New Aug 17, 2016
  • nevcairiel added a tag Fixed Aug 17, 2016
  • nevcairiel closed issue Aug 17, 2016

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