Lua error when trying to save UI

Having a similar issue. Here is my bug report.

8x FrameXML/EditModeSystemTemplates.lua:468: attempt to perform arithmetic on a nil value
[string "@FrameXML/EditModeSystemTemplates.lua"]:468: in function `BreakFrameSnap'
[string "@FrameXML/EditModeSystemTemplates.lua"]:41: in function `PrepareForSave'
[string "@FrameXML/EditModeManager.lua"]:1118: in function `PrepareSystemsForSave'
[string "@FrameXML/EditModeManager.lua"]:1123: in function `SaveLayouts'
[string "@FrameXML/EditModeManager.lua"]:1132: in function <FrameXML/EditModeManager.lua:1128>
[string "=(tail call)"]: ?
[string "@SharedXML/SharedUIPanelTemplates.lua"]:1198: in function <SharedXML/SharedUIPanelTemplates.lua:1194>

Locals:
self = BossTargetFrameContainer {
 0 = <userdata>
 UpdateMagnetismRegistration = <function> defined @FrameXML/EditModeSystemTemplates.lua:521
 GetSnapOffsets = <function> defined @FrameXML/EditModeSystemTemplates.lua:421
 systemInfo = <table> {
 }
 IsFrameAnchoredToMe = <function> defined @FrameXML/EditModeSystemTemplates.lua:484
 breakSnappedFramesOnSave = true
 LayoutChildren = <function> defined @SharedXML/LayoutFrame.lua:192
 GetSelectionOffset = <function> defined @FrameXML/EditModeSystemTemplates.lua:373
 ResetToDefaultPosition = <function> defined @FrameXML/EditModeSystemTemplates.lua:158
 GetScaledSelectionSides = <function> defined @FrameXML/EditModeSystemTemplates.lua:365
 SelectSystem = <function> defined =[C]:-1
 GetFrameMagneticEligibility = <function> defined @FrameXML/EditModeSystemTemplates.lua:504
 UpdateSystemSettingUseLargerFrame = <function> defined @FrameXML/EditModeSystemTemplates.lua:986
 CalculateFrameSize = <function> defined @SharedXML/LayoutFrame.lua:148
 AddLayoutChildren = <function> defined @SharedXML/LayoutFrame.lua:48
 smallSize = false
 IsBelowFrame = <function> defined @FrameXML/EditModeSystemTemplates.lua:332
 spacing = 10
 respectChildScale = true
 HasActiveChanges = <function> defined @FrameXML/EditModeSystemTemplates.lua:254
 GetScaledCenter = <function> defined @FrameXML/EditModeSystemTemplates.lua:358
 SetCastBarPosition = <function> defined @FrameXML/TargetFrame.lua:1369
 DoesSettingDisplayValueEqual = <function> defined @FrameXML/EditModeSystemTemplates.lua:278
 Layout = <function> defined @SharedXML/LayoutFrame.lua:170
 settingDisplayInfoMap = <table> {
 }
 GetSettingValueBool = <function> defined @FrameXML/EditModeSystemTemplates.lua:269
 alwaysUseTopRightAnchor = true
 IsLayoutFrame = <function> defined @SharedXML/LayoutFrame.lua:36
 DoesSettingValueEqual = <function> defined @FrameXML/EditModeSystemTemplates.lua:273
 MarkDirty = <function> defined @SharedXML/LayoutFrame.lua:90
 UpdateSelectionVerticalState = <function> defined @FrameXML/EditModeSystemTemplates.lua:1101
 EMEanchorPoint = "BOTTOMLEFT"
 GetChildPadding = <function> defined @SharedXML/LayoutFrame.lua:133
 EMESystemID = 36
 IsToTheLeftOfFrame = <function> defined @FrameXML/EditModeSystemTemplates.lua:314
 GetSettingsDialogAnchor = <function> defined @FrameXML/EditModeSystemTemplates.lua:298
 hasActiveChanges = false
 OnSystemLoad = <function> defined @FrameXML/EditModeSystemTemplates.lua:3
 ClearFrameSnap = <function> defined @FrameXML/EditModeSystemTemplates.lua:458
 GetCombinedCenterOffset = <function> defined @FrameXML/EditModeSystemTemplates.lua:408
 SetupSettingsDialogAnchor = <function> defined @FrameXML/EditModeSystemTemplates.lua:963
 UpdateSystemSettingSortPlayersBy = <function> defined @FrameXML/EditModeSystemTemplates.lua:1077
 dirty = false
 SetPointBase = <function> defined =[C]:-1
 UpdateSystem = <function> defined @FrameXML/EditModeSystemTemplates.lua:203
 UpdateSystemSettingRaidGroupDisplayType = <function> defined @FrameXML/EditModeSystemTemplates.lua:1070
 UpdateDirtySettings = <function> defined @FrameXML/EditModeSystemTemplates.lua:122
 isHighlighted = false
 BreakSnappedFrames = <function> defined @FrameXML/EditModeSystemTemplates.lua:441
 PrepareForSave = <function> defined @FrameXML/EditModeSystemTemplates.lua:35
 systemIndex = 6
 isInEditMode = false
 UpdateSystemSettingUseRaidStylePartyFrames = <function> defined @FrameXML/EditModeSystemTemplates.lua:996
 snappedFrames = <table> {
 }
 UpdateSize = <function> defined @FrameXML/TargetFrame.lua:1303
 SetPointOverride = <function> defined @FrameXML/EditModeSystemTemplates.lua:71
 UpdateSystemSettingShowPartyFrameBackground = <function> defined @FrameXML/EditMo

That just worked for me.

  1. Went to another character
  2. Enabled all action bars
  3. Copied my custom profile
  4. Went back to my main character
  5. Selected the copied profile
  6. Made desired changes
  7. Changes now will save

Still there must be a bugā€¦ a couple days ago my profile completely disappeared. Now I couldnā€™t save changes without a work aroundā€¦

Felix

A combination of the two methods worked for me. Delete the specified files from all toons and then turned on party and boss and raid frames in edit mode. Boom, can save and create templates without error. Thanks!

good god i was going through my addons and thinking it was an addon or a weakaura, then at one stage i said fine ill turn you all offā€¦lua error.
the copy/delete worked, but it naturally errors right after.

Some good info in this thread, but MAN-- idkā€¦ This a really basic error that should have been caught before it was allowed to go live.

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