WeakAuras / WeakAuras2

World of Warcraft addon that provides a powerful framework to display customizable graphics on your screen.
https://weakauras.wtf
GNU General Public License v2.0
1.31k stars 318 forks source link

Interface/AddOns/WeakAuras/BuffTrigger2.lua:1551: attempt to index local 'aura' (a nil value) #4351

Closed JeeveStobs closed 1 year ago

JeeveStobs commented 1 year ago

Description

Seemingly random lua error occurance. Hard to isolate root cause

Error thrown in: Arena (rated 2v2) Cobalt Assembly Training Ground (war mode/world PvP quest)

WeakAuras Version

WeakAuras 5.4.1

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

Lua Error

Message: Interface/AddOns/WeakAuras/BuffTrigger2.lua:1551: attempt to index local 'aura' (a nil value)
Time: Wed Mar 15 18:49:01 2023
Count: 1
Stack: Interface/AddOns/WeakAuras/BuffTrigger2.lua:1551: attempt to index local 'aura' (a nil value)
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1551: in function `func'
[string "@Interface/FrameXML/AuraUtil.lua"]:46: in function <Interface/FrameXML/AuraUtil.lua:38>
[string "@Interface/FrameXML/AuraUtil.lua"]:65: in function `ForEachAura'
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1568: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:1562>
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1926: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:1903>
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:2280: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:2255>
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:2318: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1890: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1674: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1524>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1717: in function `ScanForLoads'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1785: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1783>

Locals: aura = 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) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'aura' (a nil value)"
UpdateMatchData = <function> defined @Interface/AddOns/WeakAuras/BuffTrigger2.lua:301
_time = 34893.696000
matchDataChanged = <table> {
}
_unit = "target"
_filter = "HELPFUL"

Reproduction Steps

Join arena skirmish, rated 2v2, or world pvp quest "Wild Arcana"

Last Good Version

No response

Screenshots

No response

Export String

No response

JeeveStobs commented 1 year ago

WeakAuras.lua.zip

Attaching my WeakAuras.lua archive, per your request.

JeeveStobs commented 1 year ago

The error seems to be thrown when an enemy player dies.

JeeveStobs commented 1 year ago

Lua error in Random Battleground, possibly when enemy player died:

Message: Interface/AddOns/WeakAuras/BuffTrigger2.lua:1687: attempt to index local 'aura' (a nil value)
Time: Wed Mar 15 20:47:30 2023
Count: 1
Stack: Interface/AddOns/WeakAuras/BuffTrigger2.lua:1687: attempt to index local 'aura' (a nil value)
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1687: in function `func'
[string "@Interface/FrameXML/AuraUtil.lua"]:46: in function <Interface/FrameXML/AuraUtil.lua:38>
[string "@Interface/FrameXML/AuraUtil.lua"]:65: in function `ForEachAura'
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1764: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:1709>
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1875: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:1836>
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:2020: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:2011>
[string "=[C]"]: in function `TargetNearestEnemy'
[string "TARGETNEARESTENEMY"]:2: in function <[string "TARGETNEARESTENEMY"]:1>

Locals: aura = 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) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'aura' (a nil value)"
UpdateMatchData = <function> defined @Interface/AddOns/WeakAuras/BuffTrigger2.lua:301
_time = 42002.690000
_matchDataChanged = <table> {
 Dispell Magic Alert = <table> {
 }
 Renew Missing = <table> {
 }
}
_unit = "target"
_filter = "HELPFUL"
CheckScanFuncs = <function> defined @Interface/AddOns/WeakAuras/BuffTrigger2.lua:1665
_scanFuncName = <table> {
 Renew = <table> {
 }
}
_scanFuncNameGroup = nil
_scanFuncSpellId = nil
_scanFuncSpellIdGroup = nil
_scanFuncGeneral = <table> {
  = true
}
_scanFuncGeneralGroup = nil
JeeveStobs commented 1 year ago

Possibly NOT related to enemy player dying, the following error triggered in a duel when I was hit by a warrior's Dragon Charge (PvP talent)

Message: Interface/AddOns/WeakAuras/BuffTrigger2.lua:1551: attempt to index local 'aura' (a nil value)
Time: Wed Mar 15 21:12:05 2023
Count: 2
Stack: Interface/AddOns/WeakAuras/BuffTrigger2.lua:1551: attempt to index local 'aura' (a nil value)
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1551: in function `func'
[string "@Interface/FrameXML/AuraUtil.lua"]:46: in function <Interface/FrameXML/AuraUtil.lua:38>
[string "@Interface/FrameXML/AuraUtil.lua"]:65: in function `ForEachAura'
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1568: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:1562>
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:1926: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:1903>
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:2280: in function <Interface/AddOns/WeakAuras/BuffTrigger2.lua:2255>
[string "@Interface/AddOns/WeakAuras/BuffTrigger2.lua"]:2318: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1890: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1674: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1524>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1717: in function `ScanForLoads'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1785: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1783>

Locals: aura = 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) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'aura' (a nil value)"
UpdateMatchData = <function> defined @Interface/AddOns/WeakAuras/BuffTrigger2.lua:301
_time = 43477.588000
matchDataChanged = <table> {
}
_unit = "target"
_filter = "HELPFUL"
InfusOnWoW commented 1 year ago

This should be fixed now.