ShadowedUnitFrames throws lua error when using WoW UI Edit Mode #2141


Open
  • fliegengamer created this issue Oct 10, 2024

    Hi,
    when I have SUF enabled any attempt to move UI (tested mostly on skyriding panel) throws lua error and resets any changes in UI.
    Error:

    11x ...izzard_EditMode/Mainline/EditModeSystemTemplates.lua:535: attempt to perform arithmetic on local 'left' (a nil value)
    [string "@Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua"]:535: in function `GetScaledSelectionSides'
    [string "@Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua"]:507: in function `IsVerticallyAlignedWithFrame'
    [string "@Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua"]:725: in function `GetFrameMagneticEligibility'
    [string "@Blizzard_EditMode/Mainline/EditModeUtil.lua"]:152: in function `GetEligibleMagneticFrames'
    [string "@Blizzard_EditMode/Mainline/EditModeUtil.lua"]:341: in function `GetMagneticFrameInfoOptions'
    [string "@Blizzard_EditMode/Mainline/EditModeUtil.lua"]:424: in function `GetMagneticFrameInfos'
    [string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:961: in function `RefreshSnapPreviewLines'
    [string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:72: in function <...ddOns/Blizzard_EditMode/Mainline/EditModeManager.lua:70>

    Locals:
    self = BossTargetFrameContainer {
    systemInfo = <table> {
    }
    downKeys = <table> {
    }
    breakSnappedFramesOnSave = true
    smallSize = false
    spacing = 10
    alwaysUseTopRightAnchor = true
    isManagedFrame = true
    hasActiveChanges = false
    dirty = false
    isHighlighted = true
    systemIndex = 6
    isInEditMode = true
    snappedFrames = <table> {
    }
    ignoreFramePositionManager = true
    isRightManagedFrame = true
    layoutParent = UIParentRightManagedFrameContainer {
    }
    savedSystemInfo = <table> {
    }
    systemNameString = "Boss Frames"
    BossTargetFrames = <table> {
    }
    isSelected = false
    castBarOnSide = true
    dirtySettings = <table> {
    }
    hideWhenActionBarIsOverriden = false
    settingMap = <table> {
    }
    settingDisplayInfoMap = <table> {
    }
    Selection = Frame {
    }
    settingsDialogAnchor = <table> {
    }
    align = "right"
    respectChildScale = true
    layoutIndex = 4
    defaultHideSelection = true
    system = 3
    rightPadding = -70
    }
    left = nil
    bottom = nil
    width = nil
    height = nil
    scale = 1.100000
    (*temporary) = BossTargetFrameContainer {
    systemInfo = <table> {
    }
    downKeys = <table> {
    }
    breakSnappedFramesOnSave = true
    smallSize = false
    spacing = 10
    alwaysUseTopRightAnchor = true
    isManagedFrame = true
    hasActiveChanges = false
    dirty = false
    isHighlighted = true
    systemIndex = 6
    isInEditMode = true
    snappedFrames = <table> {
    }
    ignoreFramePositionManager = true
    isRightManagedFrame = true
    layoutParent = UIParentRightManagedFrameContainer {
    }
    savedSystemInfo = <table> {
    }
    systemNameString = "Boss Frames"
    BossTargetFrames = <table> {
    }
    isSelected = false
    castBarOnSide = true
    dirtySettings = <table> {
    }
    hideWhenActionBarIsOverriden = false
    settingMap = <table> {
    }
    settingDisplayInfoMap = <table> {
    }
    Selection = Frame {
    }
    settingsDialogAnchor = <table> {
    }
    align = "right"
    respectChildScale = true
    layoutIndex = 4
    defaultHideSelection = true
    system = 3
    rightPadding = -70
    }
    (*temporary) = 1.100000
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to perform arithmetic on local 'left' (a nil value)"

  • Jack_the_Dipper posted a comment Oct 11, 2024

    I'm encountering the same issue. To use WoW Edit Mode, I must first disable the SUF addon, other wise I get the error and I can't save the changes I made with the Edit Mode for the UI.

  • xxemokidforeverxx posted a comment Oct 22, 2024

    Same as above. I cant edit and save the ui without first disabling SUF. 

  • elessar_adan posted a comment Oct 24, 2024

    I also have this problem, but I found in a GitHub issue that helped me narrow it down. It only happens for me when (1) I have the "Snap to Elements" checkbox enabled in the edit mode, and (2) "Hide boss frames" is selected in the "Hide Blizzard" section of the Shadowed Unit Frames config. I wasn't able to reproduce this with any other combination of elements hidden; I still get the error if "Hide boss frames" is the only checkbox selected, and it also works fine if everything else except that is selected.

     

    That GitHub issue was a pull request that had a fix, but I have issues with that patch applied; the core issue seems to be fine for me, where I can now save changes in edit mode without changing addons, but the hiding Blizzard components seems to break when I change zones or enter/leave a vehicle.


    Edited Oct 24, 2024
  • user_mubquzca0ct4ivuc posted a comment Nov 22, 2024

    I can confirm that disabling "Snap to Elements" is a workaround that allows you to move the Blizz elements again. In my case I wanted to move the actions bars. Of course, a real solution would be much appreciated. I am evaluating SuF to replace my ElvUI configuration and I am loving that SuF is using WAY less resources. Great job!


To post a comment, please login or register a new account.