Mplus Gains

Mplus Gains

481 Downloads

Massive number of lua errors after changing font/colors

reasonedtraveler opened this issue ยท 1 comments

commented

Describe the bug
I received 9427 lua errors in just a couple of minutes when I logged in to WoW after installing MPG. I made changes to the font and colors last night before logging off. It seemed to work fine then, but then logging in today seemed to break everything. When I clicked to open MPG, only the header appeared and nothing else. Reinstalling and removing saved settings fixed it, but I'm not sure what is going on to cause the error. Another weird thing that might be a clue is that my wife installed MPG at the same time as I did. We're running the same version, but hers has additional options such as choosing class color and RBG color selection. - Also, this addon is awesome!

To Reproduce
BugGrabber error report is below. FYI, there were no lua errors during this session other than the 9427 from MPG.

Additional context
9427x MplusGains/MplusGains.lua:2305: attempt to index local 'headerFrame' (a nil value)
[string "@MplusGains/MplusGains.lua"]:2305: in function <MplusGains/MplusGains.lua:2300>
[string "@MplusGains/MplusGains.lua"]:2377: in function <MplusGains/MplusGains.lua:2334>

Locals:
dungeonHolderFrame = nil
summaryFrame = nil
headerFrame = nil
(*temporary) = defined @MplusGains/MplusGains.lua:263
(*temporary) = 9
(*temporary) =

{
3 =
{
}
10 =
{
}
123 =
{
}
}
(*temporary) = "attempt to index local 'headerFrame' (a nil value)"
weeklyAffix = 10
addon =
{
CalculateChest = defined @MplusGains/DungeonInfo.lua:211
CreateKeystoneButton = defined @MplusGains/KeystoneButton.lua:9
fortifiedID = 10
FormatTimer = defined @MplusGains/FormatHelpers.lua:8
RoundToOneDecimal = defined @MplusGains/FormatHelpers.lua:23
affixInfo =
{
}
GetPlayerDungeonBests = defined @MplusGains/DungeonInfo.lua:72
CalculateRating = defined @MplusGains/DungeonInfo.lua:178
GetOppositeAffix = defined @MplusGains/DungeonInfo.lua:110
tyrannicalID = 9
GetWeeklyAffixInfo = defined @MplusGains/DungeonInfo.lua:136
GetGeneralDungeonInfo = defined @MplusGains/DungeonInfo.lua:56
SetNewBest = defined @MplusGains/DungeonInfo.lua:304
SortAffixesByLevel = defined @MplusGains/DungeonInfo.lua:283
SortDungeonsByScore = defined @MplusGains/DungeonInfo.lua:223
SortDungeonsByLevel = defined @MplusGains/DungeonInfo.lua:243
FormatDecimal = defined @MplusGains/FormatHelpers.lua:32
CalculateDungeonTotal = defined @MplusGains/DungeonInfo.lua:27
CalculateDungeonRatings = defined @MplusGains/DungeonInfo.lua:40
scorePerLevel =
{
}
}
selectedAffix = 10
SetDesaturation = defined @MplusGains/MplusGains.lua:263
PopulateAllDungeonRows = defined @MplusGains/MplusGains.lua:1736
PopulateAllAffixRows = defined @MplusGains/MplusGains.lua:1720
PopulateAllBestRunsRows = defined @MplusGains/MplusGains.lua:2122

commented

Hey thanks for the bug report! It is likely that whatever font you chose was missing on your next boot up and is causing the errors. The error checking I did for fonts either isn't enough or not working as intended. I'll take a look into fixing it.

As for the additional options missing, was this when you had errors or after the reinstall?