When doing pet battles, 3 buttons in particular trigger Lua errors when hovering the mouse on them:
CATCH PET BUTTON
Message: ...Blizzard_PetBattleUI/Shared/Blizzard_PetBattleUI.lua:573: bad argument #5 to 'SetText' (outside of expected range -3.402823e+38 to 3.402823e+38 - Usage: self:SetText(text [, color, alpha, wrap]))
Time: Wed Jan 28 14:48:57 2026
Count: 1
Stack:
[Interface/AddOns/Blizzard_PetBattleUI/Shared/Blizzard_PetBattleUI.lua]:573: in function <...Blizzard_PetBattleUI/Shared/Blizzard_PetBattleUI.lua:571>
Locals:
self = Button {
CooldownShadow = Texture {
}
description = "Attempt to catch a pet below 35% health. Capture chance is increased by 30% each time you fail."
name = "Pristine Trap"
SpellActivationAlert = Frame {
}
CooldownFlashAnim = AnimationGroup {
}
HotKey = FontString {
}
NormalTexture = Texture {
}
BetterIcon = Texture {
}
CooldownFlash = PetBattleFrameCooldownFlash {
}
playedSound = true
Lock = Texture {
}
SelectedHighlight = Texture {
}
actionType = 3
Icon = Texture {
}
Cooldown = FontString {
}
}
SWITCH PET BUTTON:
Message: [string "*Blizzard_PetBattleUI.xml:1488_OnEnter"]:3: bad argument #5 to 'SetText' (outside of expected range -3.402823e+38 to 3.402823e+38 - Usage: self:SetText(text [, color, alpha, wrap]))
Time: Wed Jan 28 14:48:05 2026
Count: 1
Stack:
[*Blizzard_PetBattleUI.xml:1488_OnEnter]:3: in function <[string "*Blizzard_PetBattleUI.xml:1488_OnEnter"]:1>
Locals:
self = CheckButton {
CooldownShadow = Texture {
}
HotKey = FontString {
}
NormalTexture = Texture {
}
BetterIcon = Texture {
}
CooldownFlash = PetBattleFrameCooldownFlash {
}
CooldownFlashAnim = AnimationGroup {
}
Lock = Texture {
}
SelectedHighlight = Texture {
}
actionType = 2
Icon = Texture {
}
Cooldown = FontString {
}
}
motion = true
FORFEIT BATTLE BUTTON
Message: [string "*Blizzard_PetBattleUI.xml:1522_OnEnter"]:2: bad argument #5 to 'SetText' (outside of expected range -3.402823e+38 to 3.402823e+38 - Usage: self:SetText(text [, color, alpha, wrap]))
Time: Wed Jan 28 14:48:56 2026
Count: 1
Stack:
[*Blizzard_PetBattleUI.xml:1522_OnEnter]:2: in function <[string "*Blizzard_PetBattleUI.xml:1522_OnEnter"]:1>
Locals:
self = Button {
CooldownShadow = Texture {
}
NormalTexture = Texture {
}
BetterIcon = Texture {
}
CooldownFlash = PetBattleFrameCooldownFlash {
}
CooldownFlashAnim = AnimationGroup {
}
Lock = Texture {
}
SelectedHighlight = Texture {
}
HotKey = FontString {
}
Icon = Texture {
}
Cooldown = FontString {
}
}
motion = true
With each “hover” on the buttons, the “count” number increases by 1.
Important to note:
- no addon are involved, the Lua erros only reference Blizzard’s UI.
- just noticed that the caose for the 3 errors is he same:
bad argument #5 to 'SetText' (outside of expected range ...