tukui-org / Tukui

Tukui - Live branch is Dragonflight, Wrath and Classic Era
https://tukui.org
47 stars 29 forks source link

Paladin holy power max incorrect on first load #183

Closed ajbw closed 1 month ago

ajbw commented 1 month ago

When I first load the game with my ret paladin, the tukui holy power panel shows I only have 3 HP (should be 5), and then when I use my first HP generator ability, I get the following error:

Expand for error text...

``` Message: ...Ons/Tukui/Libs/oUF_HolyPowerBar/oUF_HolyPowerBar.lua:24: attempt to index field '?' (a nil value) Time: Mon Aug 26 17:33:53 2024 Count: 10 Stack: ...Ons/Tukui/Libs/oUF_HolyPowerBar/oUF_HolyPowerBar.lua:24: attempt to index field '?' (a nil value) [string "@Interface/AddOns/Tukui/Libs/oUF_HolyPowerBar/oUF_HolyPowerBar.lua"]:24: in function <...Ons/Tukui/Libs/oUF_HolyPowerBar/oUF_HolyPowerBar.lua:9> [string "=(tail call)"]: ? [string "=(tail call)"]: ? Locals: self = TukuiPlayerFrame { Shadow = Frame { } unitEvents =

{ } UNIT_MAXHEALTH =
{ } PowerPrediction =
{ } PLAYER_REGEN_DISABLED =
{ } MoverName = "Player" Debuffs = TukuiPlayerFrameDebuffs { } unit = "player" UNIT_SPELLCAST_STOP =
{ } Backdrop = Frame { } Name = FontString { } Buffs = TukuiPlayerFrameBuffs { } HealthPrediction =
{ } __tags =
{ } __elements =
{ } Panel = Frame { } IsPingable = true Castbar = TukuiPlayerCastBar { } UNIT_DISPLAYPOWER =
{ } UNIT_HEALTH =
{ } Health = StatusBar { } MasterLooterIndicator = Texture { } UNIT_SPELLCAST_START =
{ } PLAYER_REGEN_ENABLED =
{ } UNIT_MAX_HEALTH_MODIFIERS_CHANGED =
{ } Power = StatusBar { } HolyPower = TukuiPlayerFrameHolyPower { } AdditionalPower = TukuiPlayerFrameAdditionalPower { } LeaderIndicator = Texture { } style = "Tukui" RaidTargetIndicator = Texture { } RestingIndicator = Texture { } Status = Texture { } CombatIndicator = Texture { } CombatFeedbackText = FontString { } UNIT_SPELLCAST_FAILED =
{ } } event = "UNIT_POWER_UPDATE" unit = "player" powerType = "HOLY_POWER" hp = TukuiPlayerFrameHolyPower { 1 = TukuiPlayerFrameHolyPower1 { } 2 = TukuiPlayerFrameHolyPower2 { } 3 = TukuiPlayerFrameHolyPower3 { } Backdrop = Frame { } __owner = TukuiPlayerFrame { } } num = 1 numMax = 5 (for index) = 4 (for limit) = 5 (for step) = 1 i = 4 (*temporary) = nil (*temporary) = nil (*temporary) = 0.300000 (*temporary) = "attempt to index field '?' (a nil value)" ```

Screenshot of holy power panel incorrectly displaying 3 HP:

Screen Shot 2024-08-26 at 5 29 51 pm

If I reload the UI, the holy power panel correctly loads with 5 HP (so basically each time I start the game I need to /console reloadui before playing).

This is reproducible 100% of the time for me, with no other addons loaded and with a fresh tukui config (from /tukui reset). I'm using tukui 20.447. I'm playing on an oldish macbook pro, so I assume am contending with a race condition related to slow loading.

Please let me know if you need any further details.