31 - ag_UnitFrames\modules\araus\auras.lua:718:attempt to index local 'c' (a nil value)
What steps will reproduce the problem?
1. Start a raid with 25 ppl
2. Attack Patchwerk
3. Get tons of errors :)
What is the expected output? What do you see instead?
Am getting some errors in Naxx25 with this addon running while engaging Patchwerk:
ag_UnitFrames\modules\araus\auras.lua:718:attempt to index local 'c' (a nil value)
in function plugin.ScanAuras(self)
in this if....
if (logdb) then
c = plugin.cache.debuffs[id]
c.id, c.name, c.texture, c.count, c.type, c.duration, c.timeLeft = buffid, name, texture, applications, debufftype, duration, timeLeft
id = id + 1
end
What version of the product are you using?
r680
Do you have an error log of what happened?
see above
Please provide any additional information below.
- 5 comments
- 5 comments
Facts
- Last updated
- Mar 30, 2012
- Reported
- Dec 14, 2008
- Status
- Fixed - Developer made requested changes. QA should verify.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.
- Votes
- 5
- Reply
- #5
Shadowed Apr 15, 2009 at 22:08 UTC - 0 likesTrying to get fixed bugs closed, this should have been fixed a while ago so if you still get it say something and I'll unflag this as fixed.
- Reply
- #4
pdriver Feb 12, 2009 at 01:49 UTC - 0 likesOy, here's a patch to fix. The problem is the hard limit on the cache size (50).
<--start patch-->
--- auras.lua.orig Mon Feb 9 08:54:34 2009
+++ auras.lua.new Wed Feb 11 19:28:53 2009
@@ -123,11 +123,14 @@
end
self.cache.buffs = {}
self.cache.debuffs = {}
+end
- for i = 1,50 do
- self.cache.buffs[i] = {}
- self.cache.debuffs[i] = {}
- end
+function plugin:getCache(name, key)
+ local c = self.cache[name]
+ if (not c[key]) then
+ c[key] = {}
+ end
+ return c[key]
end
function plugin:OnEnable()
@@ -622,7 +625,7 @@
local buff, count, class, index, c, id
for i=1,bcount do
- c = plugin.cache.buffs[i];
+ c = plugin:getCache('buffs', i);
buff, count, id, timeLeft, duration = c.texture, c.count, c.id, cooldown and c.timeLeft, c.duration
plugin.SetAura(self, frame["Aura" .. i], false, id, buff, count, nil, timeLeft, duration)
end
@@ -636,7 +639,7 @@
if dbcount > 0 then
for i=1,dbcount do
- c = plugin.cache.debuffs[i];
+ c = plugin:getCache('debuffs', i);
buff, count, class, id, timeLeft, duration = c.texture, c.count, c.type, c.id, cooldown and c.timeLeft, c.duration
local index = rows * cols - i + 1
plugin.SetAura(self, frame["Aura" .. index], true, id, buff, count, class, timeLeft, duration)
@@ -688,7 +691,7 @@
name, rank, texture, applications, debufftype, duration, timeLeft = UnitBuff(unit, buffid, filter)
while (name) do
- c = plugin.cache.buffs[buffid]
+ c = plugin:getCache('buffs', buffid)
c.id, c.name, c.texture, c.count, c.duration, c.timeLeft = buffid, name, texture, applications, duration, timeLeft
buffid = buffid + 1
@@ -714,7 +717,7 @@
end
if (logdb) then
- c = plugin.cache.debuffs[id]
+ c = plugin:getCache('debuffs', id)
c.id, c.name, c.texture, c.count, c.type, c.duration, c.timeLeft = buffid, name, texture, applications, debufftype, duration, timeLeft
id = id + 1
end
@@ -726,7 +729,7 @@
dbcount = id - 1
if (dbcount > 0) then
- return bcount, dbcount, plugin.cache.debuffs[1].type
+ return bcount, dbcount, plugin:getCache('debuffs', 1).type
else
return bcount, dbcount
end
@@ -802,4 +805,4 @@
end
end
end
-end
+end
- Reply
- #3
cyphers Jan 22, 2009 at 19:42 UTC - 0 likesWhole guilds are moving off of aguf because of this issue which causes random DCs and has gone unfixed for a very long time. Would sure be nice to get a fix.
- Reply
- #2
cyphers72 Jan 15, 2009 at 21:30 UTC - 0 likesGetting this every raid night. Pretty sure ignoring it eventually leads to DCs and other worse symptoms.
- Reply
- #1
Starfox Dec 17, 2008 at 21:20 UTC - 0 likesSame here, got it serveral times in naxx today