RaiderIO / raiderio-addon

RaiderIO AddOn
https://raider.io/addon
Other
40 stars 22 forks source link

RIO addon script error immediately displayed on login #180

Closed emmetotter closed 3 years ago

emmetotter commented 3 years ago

I updated to RaiderIO-v202107031502.zip this morning before starting wow using the Overwolf/Curseforge tool.

I have a fairly fresh level 60 alt Tinkerriktik holy/shadow priest

I have done a single M+2 key (Necrotic Wake) with it as a shadow priest spec and when I logged off yesterday (and logged back on) I was in my holy priest spec. If it matters my location was the Heart of the Forest (Night Fae covenant main base). Also, if I switch to Shadow spec, log off, and log back on (this time as Shadow, the same spec I did the M+2 on) I get the exact the same thing.

I have the cvar set to show script errors so I'm aware of addon issues immediately. The instant I log in with my priest alt I got the following script error popup:

Message: Interface\AddOns\RaiderIO\core.lua:2898: attempt to compare nil with number
Time: Sun Jul  4 12:10:42 2021
Count: 1
Stack: Interface\AddOns\RaiderIO\core.lua:2898: attempt to compare nil with number
[string "@Interface\AddOns\RaiderIO\core.lua"]:615: in function `SendEvent'
[string "@Interface\AddOns\RaiderIO\core.lua"]:550: in function <Interface\AddOns\RaiderIO\core.lua:546>

Locals: self = <table> {
 index = 1
 Enable = <function> defined @Interface\AddOns\RaiderIO\core.lua:400
 GetDependencies = <function> defined @Interface\AddOns\RaiderIO\core.lua:442
 RegisterEventOnce = <function> defined @Interface\AddOns\RaiderIO\core.lua:633
 SendEvent = <function> defined @Interface\AddOns\RaiderIO\core.lua:605
 RegisterUnitEvent = <function> defined @Interface\AddOns\RaiderIO\core.lua:569
 Disable = <function> defined @Interface\AddOns\RaiderIO\core.lua:410
 UnregisterEvent = <function> defined @Interface\AddOns\RaiderIO\core.lua:578
 OnDisable = <function> defined @Interface\AddOns\RaiderIO\core.lua:474
 RegisterEvent = <function> defined @Interface\AddOns\RaiderIO\core.lua:555
 HasDependencies = <function> defined @Interface\AddOns\RaiderIO\core.lua:425
 OnLoad = <function> defined @Interface\AddOns\RaiderIO\core.lua:465
 SetLoaded = <function> defined @Interface\AddOns\RaiderIO\core.lua:370
 IsLoaded = <function> defined @Interface\AddOns\RaiderIO\core.lua:390
 enabled = true
 loaded = true
 id = "Callback"
 OnEnable = <function> defined @Interface\AddOns\RaiderIO\core.lua:470
 UnregisterCallback = <function> defined @Interface\AddOns\RaiderIO\core.lua:597
 SetDependencies = <function> defined @Interface\AddOns\RaiderIO\core.lua:420
 IsEnabled = <function> defined @Interface\AddOns\RaiderIO\core.lua:395
 SetEnabled = <function> defined @Interface\AddOns\RaiderIO\core.lua:385
 Load = <function> defined @Interface\AddOns\RaiderIO\core.lua:375
 CanLoad = <function> defined @Interface\AddOns\RaiderIO\core.lua:459
}
event = "PLAYER_ENTERING_WORLD"
eventCallbacks = <table> {
 1 = <function> defined @Interface\AddOns\RaiderIO\core.lua:3086
 2 = <function> defined @Interface\AddOns\RaiderIO\core.lua:1533
}
remove = nil
(for index) = 1
(for limit) = 2
(for step) = 1
i = 1
callbackFunc = <function> defined @Interface\AddOns\RaiderIO\core.lua:3086
callbacks = <table> {
 RAIDERIO_PLAYER_LOGIN = <table> {
 }
 ADDON_LOADED = <table> {
 }
 UPDATE_EXPANSION_LEVEL = <table> {
 }
 RAIDERIO_CONFIG_READY = <table> {
 }
 RAIDERIO_SETTINGS_SAVED = <table> {
 }
 LFG_LIST_APPLICANT_LIST_UPDATED = <table> {
 }
 GROUP_ROSTER_UPDATE = <table> {
 }
 PLAYER_LOGIN = <table> {
 }
 LFG_LIST_APPLICANT_UPDATED = <table> {
 }
 PLAYER_SPECIALIZATION_CHANGED = <table> {
 }
 PLAYER_ROLES_ASSIGNED = <table> {
 }
 LFG_LIST_ACTIVE_ENTRY_UPDATE = <table> {
 }
 MODIFIER_STATE_CHANGED = <table> {
 }
 PLAYER_ENTERING_WORLD = <table> {
 }
}
callbackOnce = <table> {
}

When I log in with my other characters that have done many M+'s (like my main) I don't get this issue, even if I switch to a spec that has never been previously played.

WFrancois commented 3 years ago

Heyas,

The latest release v202107041329 fixes that :)

Sorry about that!

emmetotter commented 3 years ago

Confirmed Fix.