AzeriteUI

AzeriteUI

591k Downloads

[BUG] Lua error when logging in with some characters

deftanksfault opened this issue ยท 1 comments

commented

Is this issue for AzeriteUI for Dragonflight?

  • Yes, I understand. This is for Dragonflight.

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I get this error when logging in with some of my characters:

Message: ...eUI/Components/UnitFrames/Units/PlayerClassPower.lua:308: attempt to compare number with nil
Time: Mon Jan  9 10:30:19 2023
Count: 1
Stack: ...eUI/Components/UnitFrames/Units/PlayerClassPower.lua:308: attempt to compare number with nil
[string "@Interface/AddOns/AzeriteUI/Components/UnitFrames/Units/PlayerClassPower.lua"]:308: in function <...eUI/Components/UnitFrames/Units/PlayerClassPower.lua:305>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "@Interface/AddOns/AzeriteUI/Libs/oUF/elements/classpower.lua"]:283: in function <...ce/AddOns/AzeriteUI/Libs/oUF/elements/classpower.lua:272>
[string "@Interface/AddOns/AzeriteUI/Libs/oUF/elements/classpower.lua"]:230: in function <...ce/AddOns/AzeriteUI/Libs/oUF/elements/classpower.lua:182>
[string "=(tail call)"]: ?
[string "@Interface/AddOns/AzeriteUI/Libs/oUF/ouf.lua"]:200: in function <Interface/AddOns/AzeriteUI/Libs/oUF/ouf.lua:183>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?

Locals: element = Frame {
 1 = Frame {
 }
 2 = Frame {
 }
 3 = Frame {
 }
 4 = Frame {
 }
 5 = Frame {
 }
 6 = Frame {
 }
 7 = Frame {
 }
 8 = Frame {
 }
 9 = Frame {
 }
 10 = Frame {
 }
 __owner = AzeriteUnitFramePlayerClassPower {
 }
 ClassPowerEnable = <function> defined @Interface/AddOns/AzeriteUI/Libs/oUF/elements/classpower.lua:256
 PostUpdate = <function> defined @Interface/AddOns/AzeriteUI/Components/UnitFrames/Units/PlayerClassPower.lua:305
 __max = 10
 ForceUpdate = <function> defined @Interface/AddOns/AzeriteUI/Libs/oUF/elements/classpower.lua:251
 ClassPowerDisable = <function> defined @Interface/AddOns/AzeriteUI/Libs/oUF/elements/classpower.lua:272
 __isEnabled = false
 PostUpdateColor = <function> defined @Interface/AddOns/AzeriteUI/Components/UnitFrames/Units/PlayerClassPower.lua:296
 0 = <userdata>
}
cur = nil
max = nil
style = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to compare number with nil"
playerClass = "DEATHKNIGHT"
config = <table> {
 ClassPowerSlotColor = <table> {
 }
 ClassPowerPointOrientation = "UP"
 ClassPowerFrameSize = <table> {
 }
 ClassPowerLayouts = <table> {
 }
 ClassPowerSparkTexture = "Interface\AddOns\AzeriteUI\Assets\blank.tga"
 ClassPowerSlotOffset = 1.500000
 ClassPowerCaseColor = <table> {
 }
}
next = <function> defined =[C]:-1
unpack = <function> defined =[C]:-1

To reproduce

I don't have it with all my characters so I don't know what is causing the issue/how to reproduce. I have it with my shaman who's level 70 and a death knight level 50. I also seem to have it when I create a new character (I had it with a warrior at least).

Expected behavior

No response

Screenshots

Screenshot 2023-01-09 102713

Additional context

Version 5.0.21-Beta

commented

Fixed with latest version (5.0.22-Beta)