ElvUI Chat Tweaks

69 - Random error

What steps will reproduce the problem?
1. Seems to be a random error popping up from time to time, but usually during a session I have used the right click-> Set Main option. Not right after, but during the same session.
2.
3.

What World of Warcraft locale are you using?

English

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

What version of the product are you using?
5.77

Do you have an error log of what happened?

Message: ...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:331 bad argument #3 to 'gsub' (number expected, got function)
Time: 02/14/13 17:12:47
Count: 1
Stack: [string "*:OnLoad"]:6: in function <[string "*:OnLoad"]:1>
[C]: ?
[C]: in function `gsub'
...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:331 in function <...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:303
[C]: in function `gsub'
...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:369 in function <...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:367
(tail call): ?
Interface\AddOns\ElvUI\modules\chat\chat.lua:804 in function `ChatFrame_MessageEventHandler'
Interface\AddOns\ElvUI\modules\chat\chat.lua:1099 in function <Interface\AddOns\ElvUI\modules\chat\chat.lua:1092

Locals: msg = nil
self = <unnamed> {
 0 = <userdata>
 origErrorHandler = <function> defined Interface\FrameXML\BasicControls.xml:<Scripts>:4
 errorHandler = <function> defined @Interface\AddOns\TradeSkillMaster\Util\ErrorHandler.lua:215
 handler = <function> defined *:OnLoad:1
}

Please provide any additional information below.

User When Change
Lockslap Feb 16, 2013 at 21:19 UTC
Gjerdesmett Feb 14, 2013 at 16:48 UTC Create

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

  • 9 comments
  • Avatar of Gjerdesmett Gjerdesmett Feb 16, 2013 at 21:53 UTC - 0 likes

    Awsome, thank you so very much!!!

  • Avatar of Lockslap Lockslap Feb 16, 2013 at 21:19 UTC - 0 likes

    Alright, it looks like it was just a mixed up gsub parameter, it is working as intended now.

  • Avatar of Lockslap Lockslap Feb 16, 2013 at 21:01 UTC - 0 likes

    The color level by difficulty was the key, now I'm able to reproduce the issue. I'll get it fixed ASAP.

  • Avatar of Gjerdesmett Gjerdesmett Feb 15, 2013 at 22:20 UTC - 0 likes

    Output = Anieros (two times on seperate lines).

    This is a level 89 DK in my guild, the output was colored in red since I have class colored turned on.

    Immediately followed by LUA error message popup.

    This happens every time someone comes online, and the output is the players name two times.

    I have Player Names enabled, Color self enabled, Emphasize self disabled, Use Tab disabled, Player Level enabled, Color by difficulty disabled, exclude max level enabled.

    It works as expected if I enable Color by difficulty though, so I will use that setting for now.

    Sorry for all the trouble, thank you very much for looking into this, I really love this addon.

    Last edited Feb 15, 2013 by Gjerdesmett
  • Avatar of Lockslap Lockslap Feb 15, 2013 at 21:46 UTC - 0 likes

    You can try after if display:match("|cff......") then adding print(display) and putting the output here.

    The issue is the function used to replace, so my theory is that the regular expression isn't working as intended.

    Related ticket: #70
  • Avatar of Lockslap Lockslap Feb 15, 2013 at 21:29 UTC - 0 likes

    I don't really know of any way to debug because I know exactly how you have everything setup.

    Last edited Feb 15, 2013 by Lockslap
  • Avatar of Gjerdesmett Gjerdesmett Feb 15, 2013 at 18:07 UTC - 0 likes

    Thank you for the response. Is it anyway I can help you to find this error? The error shows several times a day, so if there are some debug code or something you would want me to test, I would gladly help.

  • Avatar of Lockslap Lockslap Feb 15, 2013 at 01:04 UTC - 0 likes

    I have had similar issues with this module in the past, and I have never been able to duplicate the error people are reporting. Obviously the issue exists, but without being able to reproduce it I can't fix it.

  • Avatar of Gjerdesmett Gjerdesmett Feb 14, 2013 at 18:14 UTC - 0 likes

    Got this error, this time I didn't use Set Main at all. Not sure why this is happening.

    Message: ...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:331: bad argument #3 to 'gsub' (number expected, got function) Time: 02/14/13 19:12:10 Count: 1 Stack: (tail call): ? [C]: ? [C]: in function `gsub' ...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:331: in function <...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:303> [C]: in function `gsub' ...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:369: in function <...face\AddOns\ElvUI_ChatTweaks\Modules\PlayerNames.lua:367> (tail call): ? Interface\AddOns\ElvUI\modules\chat\chat.lua:1052: in function `ChatFrame_MessageEventHandler' Interface\AddOns\ElvUI\modules\chat\chat.lua:1099: in function <Interface\AddOns\ElvUI\modules\chat\chat.lua:1092>

    Locals: (*temporary) = "CHAT_MSG_CHANNEL" (*temporary) = "Lol 700 stacks of Rain Poppy. You haven't been botting or anything have you" (*temporary) = "Neostyle" (*temporary) = "" (*temporary) = "2. Trade - City" (*temporary) = "Neostyle" (*temporary) = "" (*temporary) = 2 (*temporary) = 2 (*temporary) = "Trade - City" (*temporary) = 0 (*temporary) = 1648 (*temporary) = "0x020000000568290D" (*temporary) = 0 (*temporary) = false (*temporary) = false (*temporary) = "CHAT_MSG_CHANNEL" (*temporary) = "Lol 700 stacks of Rain Poppy. You haven't been botting or anything have you" (*temporary) = "Neostyle" (*temporary) = "" (*temporary) = "2. Trade - City" (*temporary) = "Neostyle" (*temporary) = "" (*temporary) = 2 (*temporary) = 2 (*temporary) = "Trade - City" (*temporary) = 0 (*temporary) = 1648 (*temporary) = "0x020000000568290D" (*temporary) = 0 (*temporary) = false (*temporary) = false (*temporary) = <function> defined =[C]:-1

  • 9 comments

Facts

Last updated
Feb 16, 2013
Reported
Feb 14, 2013
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees