Bagnon

Bagnon

126M Downloads

Getting an error when picking colors for other addons

jmaslows opened this issue · 3 comments

commented

Which software were you running?

  • Addon version name: 10.2.19
  • Client used: Wotlk Classic

Have you read the changelog?
Mark if read.

Please describe the bug.
Cannot change color in other addons. Get a bug error. Sexymap and weakauras both give errors if bagnon is enabled.

Please describe how to reproduce it.
Have bagnon and weakauras enabled only. Import https://wago.io/9h1Vqjhbi. Open weakauras and under display tab try and change text color. Works fine if bagnon is disabled.

or

install sexymap and bagnon only. In sexymap options go to clock or coordiantes and try and change background or border color.

The issue seems to be a shared library in Ace called color picker.

Any Screenshots?
https://i.imgur.com/w9p1Kkh.png

Error Logs are Important!
80x ...Libs/AceGUI-3.0-41/widgets/AceGUIWidget-ColorPicker.lua:80: attempt to call method 'GetColorAlpha' (a nil value)
[string "@BigDebuffs/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-ColorPicker.lua"]:80: in function opacityFunc' [string "*ColorPickerFrame.xml:133_OnValueChanged"]:2: in function <[string "*ColorPickerFrame.xml:133_OnValueChanged"]:1> [string "=[C]"]: in function SetValue'
[string "*ColorPickerFrame.xml:147_OnShow"]:3: in function <[string "*ColorPickerFrame.xml:147_OnShow"]:1>
[string "=[C]"]: in function Show' [string "@Interface_Wrath/FrameXML/UIParent.lua"]:2799: in function ShowUIPanel'
[string "@FrameXML/UIDropDownMenu.lua"]:1452: in function OpenColorPicker' [string "@BagBrother/libs/Sushi-3.2-1/classes/checks/Color.lua"]:23: in function SetupColorPickerAndShow'
[string "@BigDebuffs/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-ColorPicker.lua"]:94: in function <...Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:56>

Locals:
r = 0
g = 0
b = 0
(*temporary) = nil
(*temporary) = ColorPickerFrame {
BottomLeftCorner = Texture {
}
OnBackdropLoaded = defined @SharedXML/Backdrop.lua:152
GetBackdropColor = defined @SharedXML/Backdrop.lua:390
TopLeftCorner = Texture {
}
RightEdge = Texture {
}
SetupColorPickerAndShow = defined @BagBrother/libs/Sushi-3.2/classes/checks/Color.lua:23
ApplyBackdrop = defined @SharedXML/Backdrop.lua:294
SetBackdrop = defined @SharedXML/Backdrop.lua:329
ClearBackdrop = defined @SharedXML/Backdrop.lua:282
hasOpacity = true
GetBackdropBorderColor = defined @SharedXML/Backdrop.lua:409
GetBackdrop = defined @SharedXML/Backdrop.lua:347
SetBorderBlendMode = defined @SharedXML/Backdrop.lua:266
opacity = 0
func = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:71
backdropInfo =

{
}
OnBackdropSizeChanged = defined @SharedXML/Backdrop.lua:182
HasBackdropInfo = defined @SharedXML/Backdrop.lua:278
GetEdgeSize = defined @SharedXML/Backdrop.lua:188
cancelFunc = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:85
0 =
TopEdge = Texture {
}
previousValues =
{
}
TopRightCorner = Texture {
}
Center = Texture {
}
SetupTextureCoordinates = defined @SharedXML/Backdrop.lua:214
SetBackdropBorderColor = defined @SharedXML/Backdrop.lua:422
BottomEdge = Texture {
}
BottomRightCorner = Texture {
}
SetupPieceVisuals = defined @SharedXML/Backdrop.lua:246
SetBackdropColor = defined @SharedXML/Backdrop.lua:399
LeftEdge = Texture {
}
opacityFunc = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:78
}
(*temporary) = "attempt to call method 'GetColorAlpha' (a nil value)"
ColorCallback = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:21
self =
{
a = 1
b = 0
parent =
{
}
g = 0
OnAcquire = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:129
SetDisabled = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:156
userdata =
{
}
base =
{
}
HasAlpha = true
type = "ColorPicker"
SetHasAlpha = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:152
r = 0
text = FontString {
}
colorSwatch = Texture {
}
events =
{
}
AceGUIWidgetVersion = 28
frame = Button {
}
SetLabel = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:140
SetColor = defined @BigDebuffs/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:144
}

commented

Dev still hasn't bothered to fix the issue that has had a PR open since last month fixing the problem.

Jaliborc/Sushi-3.2#15

Existing issues referencing this exact same problem already:
#1874
#1875

commented
commented

You can grab the file out of the PR here, click on "Download raw file": https://github.com/Jaliborc/Sushi-3.2/blob/101c5247c646dc6cfc3af34726e7cc944318866a/classes/checks/Color.lua

Then you need to put it in this folder within your addons folder: BagBrother\libs\Sushi-3.2\classes\checks