WeakAuras

WeakAuras

206M Downloads

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

JeeveStobs opened this issue ยท 5 comments

commented

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

  • Yes
  • No

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

commented

WeakAuras.lua.zip

Attaching my WeakAuras.lua archive, per your request.

commented

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

commented

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
commented

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"
commented

This should be fixed now.