RoleIcons

16 - v4.4.2 - error upon zoning x-realm group

What steps will reproduce the problem?
Unknown, it's a very rare occurrence.

What version of the product are you using?
4.4.2

Do you have an error log of what happened?

1x RoleIcons\RoleIcons-4.4.2.lua:121: Usage: UnitClass("unit")
[C]: ?
RoleIcons\RoleIcons-4.4.2.lua:121: in function <RoleIcons\RoleIcons.lua:119>
RoleIcons\RoleIcons-4.4.2.lua:751: in function `formatToon'
RoleIcons\RoleIcons-4.4.2.lua:766: in function <RoleIcons\RoleIcons.lua:764>

Locals:
name = "Tjalve-TheSha'tar"
colorunit = true
(*temporary) = <function> defined =[C]:-1
(*temporary) = 2
UnitClass = <function> defined =[C]:-1
addon = <table> {
 ServerChatString = <function> defined @RoleIcons\RoleIcons.lua:398
 rppevent = <function> defined @FrameXML\RolePoll.lua:5
 SetupVersion = <function> defined @RoleIcons\RoleIcons.lua:1221
 servers = <table> {
 }
 UpdateRGF = <function> defined @RoleIcons\RoleIcons.lua:428
 headerFrame = RoleIconsHeaderButton {
 }
 lastServer = <table> {
 }
 oRA3hooked = true
 trimServer = <function> defined @RoleIcons\RoleIcons.lua:144
 L = <table> {
 }
 rolecheckbtn = RaidIconsRoleCheckBtn {
 }
 rolebuttons = <table> {
 }
 classcache = <table> {
 }
 revision = 159
 svnrev = <table> {
 }
 serverList = <table> {
 }
 levelcache = <table> {
 }
 classbuttons = <table> {
 }
 maxraidlvl = 0
 serverFrame = RoleIconsServerButton {
 }
 frametex = <table> {
 }
 UpdateServers = <function> defined @RoleIcons\RoleIcons.lua:584
 version = "4.4.2"
 formatToon = <function> defined @RoleIcons\RoleIcons.lua:744
 serverText = <unnamed> {
 }
 unitstatus = <table> {
 }
 rolecache = <table> {
 }
}
settings = <table> {
 hbicon = false
 debug = false
 map = true
 tooltip = true
 classbuttons = true
 serverinfo = true
 system = true
 popup = true
 trimserver = true
 autorole = true
 focus = true
 target = true
 raid = true
 chat = true
 rolebuttons = true
}
server_prefixes = <table> {
 Das = 1
 Le = 1
 The = 1
 Der = 1
 Die = 1
 Las = 1
 Los = 1
 Les = 1
 La = 1
}
utfbytewidth = <function> defined @RoleIcons\RoleIcons.lua:111
classColor = <function> defined @RoleIcons\RoleIcons.lua:90

Please provide any additional information below.
I am pretty sure it happened upon zoning in an x-realm raid, but I have bugsack's audio alert off so I can't be 100% certain.

User When Change
Dridzt Apr 11, 2014 at 16:09 UTC Create

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

  • 1 comment
  • Avatar of Farmbuyer Farmbuyer Feb 22, 2015 at 23:49 UTC - 0 likes

    Still happening in 4.5.2. Upon hearthing while in a cross-realm raid, the error below pops up. It doesn't happen every time, but often enough to not be surprising. Looking at the code, it appears that "colorunit" is meant to be a unitID, but (according to the locals dump below) it's being passed a true value instead. And sure enough, there it is on line 752.

    1x RoleIcons\RoleIcons-4.5.2.lua:122: Usage: UnitClass("unit")
    [C]: ?
    RoleIcons\RoleIcons-4.5.2.lua:122: in function <RoleIcons\RoleIcons.lua:120>
    RoleIcons\RoleIcons-4.5.2.lua:752: in function `formatToon'
    RoleIcons\RoleIcons-4.5.2.lua:767: in function <RoleIcons\RoleIcons.lua:765>
    
    Locals:
    name = "Domrash-Arthas"
    colorunit = true
    (*temporary) = <function> defined =[C]:-1
    (*temporary) = 2
    UnitClass = <function> defined =[C]:-1
    addon = <table> {
     ServerChatString = <function> defined @RoleIcons\RoleIcons.lua:399
     rppevent = <function> defined @FrameXML\RolePoll.lua:5
     SetupVersion = <function> defined @RoleIcons\RoleIcons.lua:1230
     servers = <table> {
     }
     UpdateRGF = <function> defined @RoleIcons\RoleIcons.lua:429
     headerFrame = RoleIconsHeaderButton {
     }
     lastServer = <table> {
     }
     mapbuttons = <table> {
     }
     oRA3hooked = true
     trimServer = <function> defined @RoleIcons\RoleIcons.lua:145
     L = <table> {
     }
     serverList = <table> {
     }
     rolebuttons = <table> {
     }
     classcache = <table> {
     }
     revision = 167
     svnrev = <table> {
     }
     maxraidlvl = 0
     levelcache = <table> {
     }
     classbuttons = <table> {
     }
     rolecheckbtn = RaidIconsRoleCheckBtn {
     }
     serverFrame = RoleIconsServerButton {
     }
     frametex = <table> {
     }
     UpdateServers = <function> defined @RoleIcons\RoleIcons.lua:585
     version = "4.5.2"
     formatToon = <function> defined @RoleIcons\RoleIcons.lua:745
     serverText = <unnamed> {
     }
     deftexture = "RaidFrame\UI-RaidFrame-GroupButton"
     unitstatus = <table> {
     }
     rolecache = <table> {
     }
    }
    settings = <table> {
     hbicon = true
     debug = false
     map = true
     classbuttons = true
     tooltip = true
     raid = true
     chat = true
     popup = true
     trimserver = false
     autorole = true
     focus = true
     target = true
     serverinfo = true
     system = true
     rolebuttons = true
    }
    server_prefixes = <table> {
     Das = 1
     Le = 1
     The = 1
     Der = 1
     Die = 1
     Las = 1
     Los = 1
     Les = 1
     La = 1
    }
    utfbytewidth = <function> defined @RoleIcons\RoleIcons.lua:111
    classColor = <function> defined @RoleIcons\RoleIcons.lua:90
    
  • 1 comment

Facts

Last updated
Feb 22, 2015
Reported
Apr 11, 2014
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees