Infinite Lua errors, impossible to play

Since yesterday I’ve been having problems with LUAERROS, I tried everything everyone says, and nothing showed results. Second thing is, I CANT SAVE ANYTHING from editmode, and all the errors shows when I try to move something in edit mode. I dont know what to do, already verified files to look for corrupted files, already CVAR inside game, already uninstalled every addon I have, already deleted WTF, Cache and Interface pastes. Theres literally nothing I didnt do and it keeps showing errors after errors, cant move anything on editmode, cant save anything, 2 days like this and nothing solves, not even reinstalling the game.

Error from bugsack:

647x …Blizzard_EditMode/Shared/EditModeSystemTemplates.lua:603: attempt to perform arithmetic on local ‘left’ (a nil value)
[Blizzard_EditMode/Shared/EditModeSystemTemplates.lua]:603: in function ‘GetScaledSelectionSides’
[Blizzard_EditMode/Shared/EditModeSystemTemplates.lua]:575: in function ‘IsVerticallyAlignedWithFrame’
[Blizzard_EditMode/Shared/EditModeSystemTemplates.lua]:801: in function ‘GetFrameMagneticEligibility’
[Blizzard_EditMode/Shared/EditModeUtil.lua]:147: in function ‘GetEligibleMagneticFrames’
[Blizzard_EditMode/Shared/EditModeUtil.lua]:336: in function ‘GetMagneticFrameInfoOptions’
[Blizzard_EditMode/Shared/EditModeUtil.lua]:419: in function ‘GetMagneticFrameInfos’
[Blizzard_EditMode/Shared/EditModeManager.lua]:1028: in function ‘RefreshSnapPreviewLines’
[Blizzard_EditMode/Shared/EditModeManager.lua]:71: in function <Blizzard_EditMode/Shared/EditModeManager.lua:69>

Locals:
self = BuffBarCooldownViewer {
iconLimit = 1
systemInfo = {
}
downKeys = {
}
oldGridSettings = {
}
pandemicIconPool = {
}
dirty = false
isSelected = false
isHighlighted = true
stride = 2
hasActiveChanges = false
childYPadding = 3
layoutFramesGoingUp = true
iconDirection = 1
layoutFramesGoingRight = true
isEditing = true
dirtySettings = {
}
settingMap = {
}
settingDisplayInfoMap = {
}
baseBarWidth = 220
tooltipsShown = true
timerShown = true
iconScale = 1
snappedFrames = {
}
isHorizontal = false
systemIndex = 4
itemFramePool = {
}
barWidthScale = 1
settingsDialogAnchor = {
}
defaultHideSelection = true
cooldownViewerCategory = 3
itemTemplate = “CooldownViewerBuffBarItemTemplate”
iconPadding = 5
savedSystemInfo = {
}
alwaysUpdateLayout = true
systemNameString = “Tracked Bars”
auraInstanceIDToItemFramesMap = {
}
childXPadding = 3
Selection = Frame {
}
system = 20
barContent = 0
}
left = nil
bottom = nil
width = nil
height = nil
scale = 1
(*temporary) = BuffBarCooldownViewer {
iconLimit = 1
systemInfo = {
}
downKeys = {
}
oldGridSettings = {
}
pandemicIconPool = {
}
dirty = false
isSelected = false
isHighlighted = true
stride = 2
hasActiveChanges = false
childYPadding = 3
layoutFramesGoingUp = true
iconDirection = 1
layoutFramesGoingRight = true
isEditing = true
dirtySettings = {
}
settingMap = {
}
settingDisplayInfoMap = {
}
baseBarWidth = 220
tooltipsShown = true
timerShown = true
iconScale = 1
snappedFrames = {
}
isHorizontal = false
systemIndex = 4
itemFramePool = {
}
barWidthScale = 1
settingsDialogAnchor = {
}
defaultHideSelection = true
cooldownViewerCategory = 3
itemTemplate = “CooldownViewerBuffBarItemTemplate”
iconPadding = 5
savedSystemInfo = {
}
alwaysUpdateLayout = true
systemNameString = “Tracked Bars”
auraInstanceIDToItemFramesMap = {
}
childXPadding = 3
Selection = Frame {
}
system = 20
barContent = 0
}
(*temporary) = 1
(*temporary) = nil
(*temporary) = nil
(*temporary) = “attempt to perform arithmetic on local ‘left’ (a nil value)”

Note that it says 647 times the error occurred and this is just this one time I logged in.

Normally would refer to Support > Bug Report and Guides > UI and Macro

Try editing the buff bar frame to default position.

Gemini notes:

This error is happening because your custom frame, BuffBarCooldownViewer, is trying to interact with World of Warcraft’s Edit Mode magnetic snapping system before it has a valid size or position.

When the game calls GetScaledSelectionSides, it uses self:GetRect() to find the edges of your frame. Since left is returning as nil, your frame hasn’t been drawn or anchored to the UI yet.

How to fix it:

You need to ensure your frame has a size and at least one anchor point defined in your XML or Lua initialization code.

  1. Set a Default Size: Ensure you call :SetSize(width, height) on BuffBarCooldownViewer during its OnLoad or before it becomes “editable.”

  2. Set a Default Anchor: Use :SetPoint("CENTER", UIParent, "CENTER") (or any valid anchor) so the UI engine knows where those “sides” are.

  3. Check Visibility: If your frame is hidden when Edit Mode opens, Blizzard’s code may fail to get its coordinates. Make sure the frame (or its selection highlight) is properly initialized before Edit Mode logic scans it.

Pro-tip: If this is part of a custom AddOn you’re writing, ensure your frame inherits from EditModeSystemTemplate correctly and that you aren’t calling EditModeManager:OnEditModeEnter() before the frame is fully loaded.

Would you like me to look at the OnLoad block of your Lua code to see where the anchor might be missing?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.