Bagnon

Bagnon

122M Downloads

Bagnon causing issues with Color Picker

BernCarney opened this issue ยท 4 comments

commented

Which software were you running?

  • Addon version name: 10.2.18
  • Client used: Classic 1.15.0 Season of Discovery

Have you read the changelog?
Mark if read. Yes

Please describe the bug.
Whenever opening the color picker from any addon with Bagnon enabled, it throws an error and any changes you make in the color picker do not register. After disabling Bagnon the problem goes away. It seems like something with the Ace library or Elvui and how it's interacting with Bagnon which causes a nil value for the alpha field.

Please describe how to reproduce it.

  1. Go to settings to change color for anything (ie: Bigwigs > colors)
  2. Open color picker for any of the colors.
  3. Try to adjust any color setting on the wheel or alpha
  4. See error.

Any Screenshots?
image

Error Logs are Important!

1x ...Libs/AceGUI-3.0-41/widgets/AceGUIWidget-ColorPicker.lua:64: attempt to call method 'GetColorAlpha' (a nil value)
[string "@Bagnon_ItemInfo/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-ColorPicker.lua"]:64: in function <...Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:62>
[string "@ElvUI/Classic/Modules/Blizzard/ColorPicker.lua"]:114: in function <...ddOns/ElvUI/Classic/Modules/Blizzard/ColorPicker.lua:112>
[string "@ElvUI/Classic/Modules/Blizzard/ColorPicker.lua"]:133: in function <...ddOns/ElvUI/Classic/Modules/Blizzard/ColorPicker.lua:120>
[string "=[C]"]: in function `SetColorRGB'
[string "@FrameXML/UIDropDownMenu.lua"]:1451: in function `OpenColorPicker'
[string "@BagBrother/libs/Sushi-3.2-1/classes/checks/Color.lua"]:23: in function `SetupColorPickerAndShow'
[string "@Bagnon_ItemInfo/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-ColorPicker.lua"]:85: in function <...Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:49>

Locals:
r = 1
g = 0
b = 0.298039
(*temporary) = nil
(*temporary) = ColorPickerFrame {
 BottomLeftCorner = Texture {
 }
 OnBackdropLoaded = <function> defined @SharedXML/Backdrop.lua:152
 GetBackdropColor = <function> defined @SharedXML/Backdrop.lua:390
 SetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:422
 RightEdge = Texture {
 }
 SetupColorPickerAndShow = <function> defined @BagBrother/libs/Sushi-3.2/classes/checks/Color.lua:23
 BottomEdge = Texture {
 }
 SetBackdrop = <function> defined @SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @SharedXML/Backdrop.lua:282
 GetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @SharedXML/Backdrop.lua:347
 SetBorderBlendMode = <function> defined @SharedXML/Backdrop.lua:266
 PixelSnapDisabled = true
 opacity = 1
 func = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:62
 Center = Texture {
 }
 OnBackdropSizeChanged = <function> defined @SharedXML/Backdrop.lua:182
 HasBackdropInfo = <function> defined @SharedXML/Backdrop.lua:278
 cancelFunc = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:76
 GetEdgeSize = <function> defined @SharedXML/Backdrop.lua:188
 previousValues = <table> {
 }
 0 = <userdata>
 TopEdge = Texture {
 }
 template = "Transparent"
 BottomRightCorner = Texture {
 }
 backdropInfo = <table> {
 }
 TopRightCorner = Texture {
 }
 TopLeftCorner = Texture {
 }
 SetupTextureCoordinates = <function> defined @SharedXML/Backdrop.lua:214
 ApplyBackdrop = <function> defined @SharedXML/Backdrop.lua:294
 SetupPieceVisuals = <function> defined @SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @SharedXML/Backdrop.lua:399
 LeftEdge = Texture {
 }
 opacityFunc = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:69
}
(*temporary) = "attempt to call method 'GetColorAlpha' (a nil value)"
ColorCallback = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:17
self = <table> {
 a = 1
 b = 1
 parent = <table> {
 }
 g = 1
 OnAcquire = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:120
 SetDisabled = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:147
 userdata = <table> {
 }
 base = <table> {
 }
 HasAlpha = true
 type = "ColorPicker"
 SetHasAlpha = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:143
 r = 1
 text = FontString {
 }
 colorSwatch = Texture {
 }
 events = <table> {
 }
 AceGUIWidgetVersion = 27
 frame = Button {
 }
 SetLabel = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:131
 SetColor = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:135
}

...Libs/AceGUI-3.0-41/widgets/AceGUIWidget-ColorPicker.lua:64: attempt to call method 'GetColorAlpha' (a nil value)
[string "@Bagnon_ItemInfo/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-ColorPicker.lua"]:64: in function <...Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:62>
[string "@ElvUI/Classic/Modules/Blizzard/ColorPicker.lua"]:114: in function <...ddOns/ElvUI/Classic/Modules/Blizzard/ColorPicker.lua:112>

Locals:
r = 1
g = 0.011765
b = 0.098039
(*temporary) = nil
(*temporary) = ColorPickerFrame {
 BottomLeftCorner = Texture {
 }
 OnBackdropLoaded = <function> defined @SharedXML/Backdrop.lua:152
 GetBackdropColor = <function> defined @SharedXML/Backdrop.lua:390
 SetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:422
 RightEdge = Texture {
 }
 SetupColorPickerAndShow = <function> defined @BagBrother/libs/Sushi-3.2/classes/checks/Color.lua:23
 BottomEdge = Texture {
 }
 SetBackdrop = <function> defined @SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @SharedXML/Backdrop.lua:282
 hasOpacity = true
 GetBackdropBorderColor = <function> defined @SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @SharedXML/Backdrop.lua:347
 SetBorderBlendMode = <function> defined @SharedXML/Backdrop.lua:266
 PixelSnapDisabled = true
 opacity = 1
 func = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:62
 Center = Texture {
 }
 OnBackdropSizeChanged = <function> defined @SharedXML/Backdrop.lua:182
 HasBackdropInfo = <function> defined @SharedXML/Backdrop.lua:278
 cancelFunc = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:76
 GetEdgeSize = <function> defined @SharedXML/Backdrop.lua:188
 previousValues = <table> {
 }
 0 = <userdata>
 TopEdge = Texture {
 }
 BottomRightCorner = Texture {
 }
 template = "Transparent"
 SetupTextureCoordinates = <function> defined @SharedXML/Backdrop.lua:214
 backdropInfo = <table> {
 }
 TopRightCorner = Texture {
 }
 TopLeftCorner = Texture {
 }
 ApplyBackdrop = <function> defined @SharedXML/Backdrop.lua:294
 SetupPieceVisuals = <function> defined @SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @SharedXML/Backdrop.lua:399
 LeftEdge = Texture {
 }
 opacityFunc = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:69
}
(*temporary) = "attempt to call method 'GetColorAlpha' (a nil value)"
ColorCallback = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:17
self = <table> {
 a = 1
 b = 0
 parent = <table> {
 }
 g = 0
 OnAcquire = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:120
 SetDisabled = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:147
 userdata = <table> {
 }
 base = <table> {
 }
 HasAlpha = true
 type = "ColorPicker"
 SetHasAlpha = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:143
 r = 1
 text = FontString {
 }
 colorSwatch = Texture {
 }
 events = <table> {
 }
 AceGUIWidgetVersion = 27
 frame = Button {
 }
 SetLabel = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:131
 SetColor = <function> defined @Bagnon_ItemInfo/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:135
}
commented

Fixed

commented

Having same issue.

commented

Same issue as #1874

commented

New release today of Bagnon v10.2.19 and it still has this issue. Not sure why @Jaliborc hasn't merged in Jaliborc/Sushi-3.2#15 to fix it yet.