Druid Bar Classic

Druid Bar Classic

565k Downloads

Error in function `DruidBar_OnEvent'

marsdonne opened this issue · 3 comments

commented

Message: Interface\AddOns\SexyMap\Shapes.lua:354: attempt to index upvalue 'db' (a nil value)
Time: Thu Feb 20 12:35:52 2020
Count: 1
Stack: Interface\AddOns\SexyMap\Shapes.lua:354: attempt to index upvalue 'db' (a nil value)
Interface\AddOns\SexyMap\Shapes.lua:354: in function GetMinimapShape' ...tlasLootClassic\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:126: in function <...tlasLootClassic\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:121> ...tlasLootClassic\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:369: in function Refresh'
Interface\AddOns\DruidBarClassic\DruidBar.lua:72: in function `DruidBar_OnEvent'
[string ":OnEvent"]:1: in function <[string ":OnEvent"]:1>

Locals: (*temporary) =

{
Interface\AddOns\SexyMap\shapes\route66 =
{
}
Interface\AddOns\SexyMap\shapes\hexagon =
{
}
Interface\AddOns\SexyMap\shapes\top.tga =
{
}
ENVIRONMENTS\STARS\Deathsky_Mask =
{
}
SPELLS\T_VFX_BORDER =
{
}
Interface\AddOns\SexyMap\shapes\bottom.tga =
{
}
Interface\AddOns\SexyMap\shapes\octagon =
{
}
Interface\AddOns\SexyMap\shapes\largecircle =
{
}
Interface\AddOns\SexyMap\shapes\left.tga =
{
}
Interface\AddOns\SexyMap\shapes\snowflake =
{
}
Interface\AddOns\SexyMap\shapes\right.tga =
{
}
Interface\BUTTONS\WHITE8X8 =
{
}
Interface\AddOns\SexyMap\shapes\topleft =
{
}
Interface\AddOns\SexyMap\shapes\bottomright =
{
}
Interface\AddOns\SexyMap\shapes\circle.tga =
{
}
Interface\AddOns\SexyMap\shapes\bottomleft =
{
}
Interface\AddOns\SexyMap\shapes\heart =
{
}
Interface\AddOns\SexyMap\shapes\topright =
{
}
Interface\AddOns\SexyMap\shapes\diamond =
{
}
}
(*temporary) = nil
(*temporary) = "attempt to index upvalue 'db' (a nil value)"
shapes =
{
Interface\AddOns\SexyMap\shapes\route66 =
{
}
Interface\AddOns\SexyMap\shapes\hexagon =
{
}
Interface\AddOns\SexyMap\shapes\top.tga =
{
}
ENVIRONMENTS\STARS\Deathsky_Mask =
{
}
SPELLS\T_VFX_BORDER =
{
}
Interface\AddOns\SexyMap\shapes\bottom.tga =
{
}
Interface\AddOns\SexyMap\shapes\octagon =
{
}
Interface\AddOns\SexyMap\shapes\largecircle =
{
}
Interface\AddOns\SexyMap\shapes\left.tga =
{
}
Interface\AddOns\SexyMap\shapes\snowflake =
{
}
Interface\AddOns\SexyMap\shapes\right.tga =
{
}
Interface\BUTTONS\WHITE8X8 =
{
}
Interface\AddOns\SexyMap\shapes\topleft =
{
}
Interface\AddOns\SexyMap\shapes\bottomright =
{
}
Interface\AddOns\SexyMap\shapes\circle.tga =
{
}
Interface\AddOns\SexyMap\shapes\bottomleft =
{
}
Interface\AddOns\SexyMap\shapes\heart =
{
}
Interface\AddOns\SexyMap\shapes\topright =
{
}
Interface\AddOns\SexyMap\shapes\diamond =
{
}
}
db = nil

commented

1、Error when installed DruidBar, Disabling it everything is fine.
2、Just an error message, no other functions are damaged(guess)

commented

That looks like a problem with SexyMap not with AtlasLoot or DruidBar to me. I'd suggest disabling that and seeing if it still happens.

Edit:

I'm not super familiar with LUA, but it would appear that SexyMap's GetMinimapShape function is incorrectly attempting to return the map's shape, and the code is stumbling when they try and retrieve db.shape or shapes[db.shape].shape, and their or "ROUND" isn't correctly handling those values being set to null. The error appears to be being printed by DruidBar when it tries to call that function to update where the minimap icon is drawn.

Perhaps try disabling the DruidBar (and AtlasLoot; as it also seems like AtlasLoot is having the same problem getting that information) minimap button, that might be a temporary fix until SexyMap fixes that function.

commented

Temporarily fix this error by comment out minimap icon related code in DruidBar. But there is no minimap icon anymore.