926 - Error in GUI_Config.lua on profile load

What steps will reproduce the problem?
1. Login
2. receive error

What is the expected output? What do you see instead?

Everything should work as expected, without error. However, Recount's window doesn't load according to profile settings and I'm unable to open the normal settings window.

What version of the product are you using?


Do you have an error log of what happened?

1x Recount-v5.4.0a release\GUI_Config.lua:549: attempt to index local "color" (a nil value)
Recount-v5.4.0a release\GUI_Config.lua:549: in function "SetTestBar"
Recount-v5.4.0a release\GUI_Config.lua:577: in function "RefreshTestBar"
Recount-v5.4.0a release\GUI_Config.lua:612: in function "CreateBarSelection"
Recount-v5.4.0a release\GUI_Config.lua:1338: in function "CreateAppearanceOptions"
Recount-v5.4.0a release\GUI_Config.lua:1419: in function "CreateConfigWindow"
Recount-v5.4.0a release\GUI_Config.lua:1514: in function "PreloadConfig"
Recount\Recount-v5.4.0a release.lua:2036: in function <Recount\Recount.lua:1945>
(tail call): ?
<in C code>
<string>:"safecall Dispatcher[1]":9: in function <string>:"safecall Dispatcher[1]":5
(tail call): ?
Ace3-Release-r1104\AceAddon-3.0\AceAddon-3.0-12.lua:529: in function "InitializeAddon"
Ace3-Release-r1104\AceAddon-3.0\AceAddon-3.0-12.lua:644: in function <Ace3\AceAddon-3.0\AceAddon-3.0.lua:636>


Please provide any additional information below.

Trying to create a new Test profile under /recount gui gets me the following error output

2x Recount-v5.4.0a release\GUI_Config.lua:1462: attempt to index field "ButtonOptions" (a nil value)
Recount-v5.4.0a release\GUI_Config.lua:1462: in function "LoadConfig"
Recount-v5.4.0a release\GUI_Config.lua:1522: in function "ShowConfig"
Recount\Recount-v5.4.0a release.lua:1927: in function "?"
Ace3-Release-r1104\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:147: in function <Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:147>
<string>:"safecall Dispatcher[3]":4: in function <string>:"safecall Dispatcher[3]":4
<in C code>
<string>:"safecall Dispatcher[3]":13: in function "?"
Ace3-Release-r1104\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:92: in function "Fire"
Ace3-Release-r1104\AceDB-3.0\AceDB-3.0-23.lua:217: in function <Ace3\AceDB-3.0\AceDB-3.0.lua:206>
Recount\Recount-v5.4.0a release.lua:1897: in function "?"
Ace3-Release-r1104\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:147: in function <Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:147>
<string>:"safecall Dispatcher[3]":4: in function <string>:"safecall Dispatcher[3]":4
AceConfigDialog-3.0\AceConfigDialog-3.0-58.lua:794: in function <AceConfigDialog-3.0\AceConfigDialog-3.0.lua:614>
(tail call): ?
<in C code>
<string>:"safecall Dispatcher[3]":9: in function <string>:"safecall Dispatcher[3]":5
(tail call): ?
Ace3-Release-r1104\AceGUI-3.0\AceGUI-3.0-34.lua:314: in function "Fire"
Ace3-Release-r1104\20AceGUI-3.0-34\widgets\AceGUIWidget-EditBox.lua:74: in function <Ace3\AceGUI-3.0\widgets\AceGUIWidget-EditBox.lua:71>
Ace3-Release-r1104\20AceGUI-3.0-34\widgets\AceGUIWidget-EditBox.lua:120: in function <Ace3\AceGUI-3.0\widgets\AceGUIWidget-EditBox.lua:117>


Reloading the UI with this test profile activated allows Recount to load normally. Switching back to the other profile works as well.
If you then reload the UI another time, you'll receive the first reported error once again.

My local fix for now:
change l. 577 in GUI_Config.lua from

me:SetTestBar(0,lefttext,righttext,100,Recount.db.profile.Colors.Class[enClass] or Recount.Colors:GetColor("Class", enClass))	

to avoid the nil errors.

User When Change
Resike Jul 30, 2014 at 10:14 UTC Changed status from New to Fixed
Asteaguinity Nov 18, 2013 at 21:00 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Resike Resike Jul 30, 2014 at 10:14 UTC - 0 likes

    I couldn't reproduce the error, however i'm gonna add the fix you suggested in the next version. Thanks for the report.

  • Avatar of cleric670 cleric670 Jan 07, 2014 at 23:37 UTC - 0 likes

    I'm having the same issue also, editing the GUI_Config.lua and adding to line 578

    or Recount.Colors:GetColor("Class", enClass))

    like the OP suggested does work, no more .lua errors.

  • Avatar of BillieJackFu BillieJackFu Nov 19, 2013 at 06:09 UTC - 0 likes

    I too am having this error, but only on one character.

    Steps to try and resolve the issue:

    Delete Character SavedVariables (Recount.lua, Recount.lua.bak) Delete Profile information from System Saved Variables for this character.

    After doing that it loads fine, then I copy from another Recount profile, log off, log back on and the Error posted below recycles.

    Date: 2013-11-18 22:01:14
    ID: -1
    Error occured in: Global
    Count: 1
    Message: ..\AddOns\Recount\GUI_Config.lua line 550:
       attempt to index local 'color' (a nil value)
       Recount\GUI_Config.lua:550: SetTestBar()
       Recount\GUI_Config.lua:578: RefreshTestBar()
       Recount\GUI_Config.lua:613: CreateBarSelection()
       Recount\GUI_Config.lua:1339: CreateAppearanceOptions()
       Recount\GUI_Config.lua:1420: CreateConfigWindow()
       Recount\GUI_Config.lua:1515: PreloadConfig()
       (tail call): ?
       [C]: ?
       [string "safecall Dispatcher[1]"]:9:
          [string "safecall Dispatcher[1]"]:5
       (tail call): ?
       Ace3\AceAddon-3.0\AceAddon-3.0.lua:529: InitializeAddon()


    This issue has to do with Swap Text and Bar Color

    Step taken to resolve:

    Manually deleted profiles from another character using the Interface Options / Addons / Recount / Profiles Deleted Character Folder \World of Warcraft\WTF\ACCOUNTNAME\Realm\CharacterName Logged onto character and rebuilt recount from scratch on Character Logged off / Logged on to test.

    Last edited Nov 19, 2013 by BillieJackFu
    Name Size MD5
    Recount.lua 23.4 KiB 37b739e6d36b...
    Recount.lua 148 B 10efd6a5bd96...
    GUI_Config.lua 68.4 KiB 98a65b3fc5ca...


Last updated
Jul 30, 2014
Nov 18, 2013
Fixed - Developer made requested changes. QA should verify.
Defect - A shortcoming, fault, or imperfection
Medium - Normal priority.

Reported by

Possible assignees