ThreatClassic2

ThreatClassic2

9M Downloads

[BUG] core.lua:296: attempt to index local 'bar' (a nil value)

JackTrapper opened this issue ยท 4 comments

commented

What steps will reproduce the problem?

What version of ThreatClassic2 are you using? (Stating 'latest' is not useful)

  • 2.23

Do you have an error log of what happened?

  • Message: Interface\AddOns\ThreatClassic2\core\core.lua:296: attempt to index local 'bar' (a nil value)
  • Time: Sun Aug 2 20:31:46 2020
  • Count: 2
  • Stack:
    • Interface\AddOns\ThreatClassic2\core\core.lua:296: attempt to index local 'bar' (a nil value)
    • Interface\AddOns\ThreatClassic2\core\core.lua:296: in function `UpdateThreatBars'
    • Interface\AddOns\ThreatClassic2\core\core.lua:398: in function <Interface\AddOns\ThreatClassic2\core\core.lua:370>
    • Interface\AddOns\ThreatClassic2\core\core.lua:713: in function `?'
    • Interface\AddOns\ThreatClassic2\core\core.lua:687: in function <Interface\AddOns\ThreatClassic2\core\core.lua:686>
  • Locals:
    • self = <table> {
      • colorFallback = <table> { }
      • partyPetUnits = <table> { }
      • partyUnits = <table> { }
      • version = "2.23"
      • config = <table> { }
      • menuTable = <table> { }
      • menu = ThreatClassic2MenuFrame { }
      • configTable = <table> { }
      • db = <table> { }
      • raidUnits = <table> { }
      • locale = "enUS"
      • numGroupMembers = 0
      • defaultConfig = <table> { }
      • threatData = <table> { }
      • playerName = "Redacted"
      • playerTarget = "target"
      • raidPetUnits = <table> { }
      • commPrefix = "TC2"
      • frame = ThreatClassic2BarFrame { }
      • bars = <table> { }
      • addonName = "ThreatClassic2"
  • playerIncluded = false
  • data = <table> {
    • isTanking = true
    • threatValue = 3918
    • threatPercent = 100
    • unit = "player"
  • bar = nil

Any additional information? (example: WoW language if not English) (Attach screenshots here if available, do not link externally)

I configured the bar width, height, and font, to be smaller. I probably slid the sliders to their minimum value by mistake; that's when the error started - even after sliding the sliders back up again the errors continued. The only way to resolve it was to Reset the profile

commented

@JackTrapper All other plug-ins are disabled and tc2 is turned on separately. Does it still report an error?

commented

Thanks for the report. Have to check it out. Looks like a missing safe-guard for an unsupported value. Glad resetting solved the error though.

commented

Have to check it out.

I can reproduce it if i drag Height taller (Position -> Height):

image

commented

fixed. thanks again for reporting. the issue was that the bar logic is limited to 40 players, but bar count calculation was based on height. if your height supported more than 40 players, it freaked out :)