StatusDirection: "attempt to index global 'self' (a nil value)" #639


  • Defect
  • Accepted
  • Fixed
Closed
  • ArrgTV created this issue Jan 26, 2019

    hat version of Grid2 are you using?

    r863-beta

     

    What game client version (windows or mac) and language are you using ?

    windows, 8.1.0 29139

     

    What steps will reproduce the problem?

    create a  "direction"-status and assign it to an indicator (eg.: icon)

    it seems to happen mostly when entering a dungeon

     

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

    nope

      

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

    worked fine before the last update i think.. <1 week ago

      

    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).

    here:

    Message: Interface\AddOns\Grid2\modules\StatusDirection.lua:106: attempt to index global 'self' (a nil value)
    Time: Sat Jan 26 16:37:07 2019
    Count: 2
    Stack: Interface\AddOns\Grid2\modules\StatusDirection.lua:106: attempt to index global 'self' (a nil value)
    Interface\AddOns\Grid2\modules\StatusDirection.lua:106: in function <Interface\AddOns\Grid2\modules\StatusDirection.lua:69>
    
    Locals: x1 = nil
    y1 = nil
    _ = nil
    map1 = 1841
    (for generator) = <function> defined =[C]:-1
    (for state) = <table> {
    }
    (for control) = "party1"
    unit = "party1"
    _ = 9
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to index global 'self' (a nil value)"
    UnitPosition = <function> defined =[C]:-1
    guessDirections = nil
    GetPlayerFacing = <function> defined =[C]:-1
    Grid2 = <table> {
     CreateLocation = <function> defined @Interface\AddOns\Grid2\GridUtils.lua:137
     EnableModules = <function> defined @Interface\AddOns\Grid2\GridCore.lua:77
     WakeUpIndicator = <function> defined @Interface\AddOns\Grid2\GridIndicator.lua:106
     modules = <table> {
     }
     CancelTimer = <function> defined @Interface\AddOns\Grid2\GridUtils.lua:54
     statusLibrary = <table> {
     }
     GetGroupType = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:144
     UpdateTheme = <function> defined @Interface\AddOns\Grid2\GridCore.lua:208
     FillTable = <function> defined @Interface\AddOns\Grid2\GridUtils.lua:127
     CopyTable = <function> defined @Interface\AddOns\Grid2\GridUtils.lua:81
     SetDefaultModulePrototype = <function> defined @Interface\AddOns\ACU\Libs\AceAddon-3.0\AceAddon-3.0.lua:440
     MakeColor = <function> defined @Interface\AddOns\Grid2\GridUtils.lua:20
     IsEnabled = <function> defined @Interface\AddOns\ACU\Libs\AceAddon-3.0\AceAddon-3.0.lua:482
     LoadConfig = <function> defined @Interface\AddOns\Grid2\GridCore.lua:139
     GetUnitFrames = <function> defined @Interface\AddOns\Grid2\GridFrame.lua:28
     RegisterIndicator = <function> defined @Interface\AddOns\Grid2\GridIndicator.lua:148
     GetOwnerUnitByUnit = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:105
     UnregisterMessage = <function> defined @Interface\AddOns\ACU\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:179
     Dummy = <function> defined @Interface\AddOns\Grid2\GridUtils.lua:12
     UpdateRoster = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:320
     GetOwnerUnitidByGUID = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:93
     SetEnabledState = <function> defined @Interface\AddOns\ACU\Libs\AceAddon-3.0\AceAddon-3.0.lua:455
     DbSetValue = <function> defined @Interface\AddOns\Grid2\GridDefaults.lua:20
     DoubleFillTable = <function> defined @Interface\AddOns\Grid2\GridUtils.lua:115
     OnEnable = <function> defined @Interface\AddOns\Grid2\GridCore.lua:117
     IsUnitInRaid = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:109
     statusPrototype = <table> {
     }
     roster_my_units = <table> {
     }
     UnitIsRaid = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:127
     DbSetIndicator = <function> defined @Interface\AddOns\Grid2\GridDefaults.lua:32
     UnregisterAllEvents = <function> defined @Interface\AddOns\ACU\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:200
     GetIndicatorsEnabled = <function> defined @Interface\AddOns\Grid2\GridIndicator.lua:185
     UNIT_PET = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:232
     IterateRoster = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:133
     UNIT_NAME_UPDATE = <function> defined @Interface\AddOns\Grid2\GridRoster.lua:211
     PLAYER_SPECIALIZATION_CHANGED = <function> defined @Interface\AddOns\Grid2\GridCore.lua:171
     TableRemoveByValue = <function> defined @Interface\AddOns\Grid2\GridUtils.lua:94
     setupFunc = <table> {
     }
     name = "Grid2"
     RunThrottled = <function>

     

    Please provide any additional information below.

    I love grid2. :-)

     

     

  • ArrgTV added a tag Defect Jan 26, 2019
  • michaelsp posted a comment Jan 26, 2019

    Try version r864 alpha, the issue must be fixed (not tested but it was a simple fix).


    Edited Jan 26, 2019
  • michaelsp added the tags Accepted Started Jan 26, 2019
  • ArrgTV posted a comment Jan 26, 2019

    just did a quick test and it seems to work.

     

    thanks!

  • michaelsp closed issue Jan 26, 2019
  • michaelsp added a tag Fixed Jan 26, 2019
  • michaelsp removed a tag Started Jan 26, 2019

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