ls- / ls_UI

Development repository of ls: UI
Other
44 stars 7 forks source link

[Error] Colorwheel error on color editor (General->Colors) #58

Closed Gotxiko closed 3 years ago

Gotxiko commented 3 years ago

When clicking on any point in this selector (red), it gives the following error. On some options the error does not show up, it errors out mainly on options that affect the color of any of the elements of the Player UF.

1

Message: ...\AddOns\ls_UI\modules\unitframes\elements\health.lua:79: attempt to index field '_config' (a nil value) Time: Mon Nov 23 16:49:13 2020 Count: 224 Stack: ...\AddOns\ls_UI\modules\unitframes\elements\health.lua:79: attempt to index field '_config' (a nil value) [string "@Interface\AddOns\ls_UI\modules\unitframes\elements\health.lua"]:79: in function ?' [string "@Interface\AddOns\ls_UI\modules\unitframes\core.lua"]:93: in function?' [string "@Interface\AddOns\ls_UI\modules\unitframes\core.lua"]:224: in function UpdateUnitFrame' [string "@Interface\AddOns\ls_UI\modules\unitframes\core.lua"]:247: in functionForEach' [string "@Interface\AddOns\ls_UI\config\general.lua"]:783: in function <Interface\AddOns\ls_UI\config\general.lua:774>

[string "@Interface\AddOns\Ace3\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua"]:51: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:49> [string "@Interface\AddOns\Ace3\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua"]:843: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:664>

[string "@Interface\AddOns\Ace3\AceGUI-3.0\AceGUI-3.0.lua"]:72: in function <Interface\AddOns\Ace3\AceGUI-3.0\AceGUI-3.0.lua:70> [string "@Interface\AddOns\Ace3\AceGUI-3.0\AceGUI-3.0.lua"]:306: in function Fire' [string "@Interface\AddOns\Ace3\AceGUI-3.0\widgets\AceGUIWidget-ColorPicker.lua"]:28: in function <...Ace3\AceGUI-3.0\widgets\AceGUIWidget-ColorPicker.lua:21> [string "@Interface\AddOns\Ace3\AceGUI-3.0\widgets\AceGUIWidget-ColorPicker.lua"]:60: in functionfunc'

Locals:

ls- commented 3 years ago

Hmmmm... I couldn't reproduce it >_> Does it still happen?

Gotxiko commented 3 years ago

Updated to the last version just in case, error is still showing up. Not sure what could be causing it.

It's not urgent for me as I don't really need to change colors for the ones that error out.

Tried disabling addons that could be interfering, but the error still happening.

The only ones that show up an error, are the following categories:

Health, alternate power, reaction, difficulty.

Health cat. error: Message: ...\AddOns\ls_UI\modules\unitframes\elements\health.lua:79: attempt to index field '_config' (a nil value)

Alt power error: Message: ...e\AddOns\ls_UI\modules\unitframes\elements\power.lua:63: attempt to index field '_config' (a nil value)

Reaction error: Message: ...\AddOns\ls_UI\modules\unitframes\elements\health.lua:79: attempt to index field '_config' (a nil value)

Difficulty cat. error: Message: ...ce\AddOns\ls_UI\modules\unitframes\elements\name.lua:44: attempt to index field '_config' (a nil value)

The rest of the error code is mostly the same for all:

[string "@Interface\AddOns\ls_UI\modules\unitframes\core.lua"]:93: in function ?' [string "@Interface\AddOns\ls_UI\modules\unitframes\core.lua"]:233: in functionUpdateUnitFrame' [string "@Interface\AddOns\ls_UI\modules\unitframes\core.lua"]:247: in function `ForEach' [string "@Interface\AddOns\ls_UI\config\general.lua"]:1179: in function <Interface\AddOns\ls_UI\config\general.lua:1172>

[string "@Interface\AddOns\Ace3\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua"]:51: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:49> [string "@Interface\AddOns\Ace3\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua"]:843: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:664>

[string "@Interface\AddOns\Ace3\AceGUI-3.0\AceGUI-3.0.lua"]:72: in function <Interface\AddOns\Ace3\AceGUI-3.0\AceGUI-3.0.lua:70> [string "@Interface\AddOns\Ace3\AceGUI-3.0\AceGUI-3.0.lua"]:306: in function Fire' [string "@Interface\AddOns\Ace3\AceGUI-3.0\widgets\AceGUIWidget-ColorPicker.lua"]:33: in function <...Ace3\AceGUI-3.0\widgets\AceGUIWidget-ColorPicker.lua:21> [string "@Interface\AddOns\Ace3\AceGUI-3.0\widgets\AceGUIWidget-ColorPicker.lua"]:77: in functioncancelFunc'

Gotxiko commented 3 years ago

After this last commit the problem is solved. Closing issue 👍 :)