oUF

99.9k Downloads

Error when spawning frames

Sebastianhex opened this issue ยท 1 comments

commented

Describe the bug

As of today, I'm receiving a Lua error when spawning target or focus frames with oUF.
The error seems to be coming from oUF/blizzard.lua on line 49 and line 54:

local spell = frame.castBar or frame.spellbar
if(spell) then
  spell:UnregisterAllEvents() -- ERROR: This line causes an error.
end

local altpowerbar = frame.powerBarAlt
if(altpowerbar) then
  altpowerbar:UnregisterAllEvents() -- ERROR: This line causes an error.
end

How to reproduce

Use oUF:Spawn() to spawn a target or focus frame.

What did you expect?

No error.

Error report

Message: ...ard_ObjectiveTracker\Blizzard_QuestSuperTracking.lua:42: attempt to index upvalue 'SuperTrackEventFrame' (a nil value)
Time: Mon Feb  1 13:21:54 2021
Count: 1
Stack: ...ard_ObjectiveTracker\Blizzard_QuestSuperTracking.lua:42: attempt to index upvalue 'SuperTrackEventFrame' (a nil value)
[string "@Interface\AddOns\Blizzard_ObjectiveTracker\Blizzard_QuestSuperTracking.lua"]:42: in function `QuestSuperTracking_ShouldHighlightDungeons'
[string "@Interface\AddOns\Blizzard_SharedMapDataProviders\DungeonEntranceDataProvider.lua"]:53: in function `UpdateSupertrackedHighlight'
[string "@Interface\AddOns\Blizzard_SharedMapDataProviders\DungeonEntranceDataProvider.lua"]:34: in function `RefreshAllData'
[string "@Interface\AddOns\Blizzard_MapCanvas\MapCanvas_DataProviderBase.lua"]:76: in function `OnMapChanged'
[string "@Interface\AddOns\Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:559: in function `OnMapChanged'
[string "@Interface\AddOns\Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:59: in function `SetMapID'
[string "@Interface\AddOns\Blizzard_BattlefieldMap\Blizzard_BattlefieldMap.lua"]:197: in function <...\Blizzard_BattlefieldMap\Blizzard_BattlefieldMap.lua:173>

Locals: uiMapID = 37
(*temporary) = nil
(*temporary) = "attempt to index upvalue 'SuperTrackEventFrame' (a nil value)"
SuperTrackEventFrame = nil
commented

It seems the error is no longer occurring after resetting my console variables with /console cvar_default.