Forums » Bugs
/CharInfo Lua error when character leaving the sector
I appear to have run into an edge-case scenario related to executing the "charinfo" command while the target is in the process of leaving the sector.
Specifically, I had Thorn Apple targeted and was trying to check what his licenses and faction standing were at. I pressed "k" (which was bound to charinfo) apparently right when he jumped. I recieved the error message below and all of his stats were zeroed out in the character info page. I wish I had thought to take a screenshot.
Below is the relevant information from my errors.log
Event: PLAYER_LEFT_SECTOR - Data:
1: (number) 308889 (Thorn Apple)
Event: TARGET_CHANGED - Data:
Event: PLAYER_STATS_UPDATED - Data:
1: (number) 308889 (Thorn Apple)
vo/if_faction_template.lua:223: attempt to perform arithmetic on local 'standing' (a nil value)
stack traceback:
vo/if_faction_template.lua:223: in function 'Setup'
vo/if_faction_template.lua:267: in function 'Setup'
vo/if_objectinfo.lua:494: in function 'FillInPlayerInfo'
vo/if_objectinfo.lua:537: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_gameevent.lua:644: in function 'func'
vo/vo_gameevent.lua:1582: in function <vo/vo_gameevent.lua:1575>
Yes, I had plugins installed when this occurred. None of the installed plugins modify the UI in anyway or hook any functions, related to the UI or otherwise.
I believe it could be duplicated, but the timing is such that it's likely to be difficult, which explains why it hasn't been caught before.
--------------------------------------------------------------------------------
EDIT:
Here's another log entry with a screenshot. (still with plugins installed.)
Event: PLAYER_STATS_UPDATED - Data:
1: (number) 39806781 (*Dinakz Kamu)
vo/if_faction_template.lua:223: attempt to perform arithmetic on local 'standing' (a nil value)
stack traceback:
vo/if_faction_template.lua:223: in function 'Setup'
vo/if_faction_template.lua:267: in function 'Setup'
vo/if_objectinfo.lua:494: in function 'FillInPlayerInfo'
vo/if_objectinfo.lua:537: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_gameevent.lua:644: in function 'func'
vo/vo_gameevent.lua:1582: in function <vo/vo_gameevent.lua:1575>
Event: CHAT_MSG_SECTORD_SECTOR - Data:
1: (table) msg="*Dinakz Kamu jumped to Itan System, Sector B-6"
[Tue Jan 22 23:28:37 2013] *Dinakz Kamu jumped to Itan System, Sector B-6
Event: PLAYER_LEFT_SECTOR - Data:
1: (number) 39806781 (*Dinakz Kamu)
Event: TARGET_CHANGED - Data:
http://i.imgur.com/7dQnLtv.png
--------------------------------------------------------------------------------
EDIT2:
I have verified that the problem does indeed persist when there are no plugins installed, and it's quite easy to duplicate actually. Just spam your charinfo button when a target is about to leave the sector (either docking or jumping).
Specifically, I had Thorn Apple targeted and was trying to check what his licenses and faction standing were at. I pressed "k" (which was bound to charinfo) apparently right when he jumped. I recieved the error message below and all of his stats were zeroed out in the character info page. I wish I had thought to take a screenshot.
Below is the relevant information from my errors.log
Event: PLAYER_LEFT_SECTOR - Data:
1: (number) 308889 (Thorn Apple)
Event: TARGET_CHANGED - Data:
Event: PLAYER_STATS_UPDATED - Data:
1: (number) 308889 (Thorn Apple)
vo/if_faction_template.lua:223: attempt to perform arithmetic on local 'standing' (a nil value)
stack traceback:
vo/if_faction_template.lua:223: in function 'Setup'
vo/if_faction_template.lua:267: in function 'Setup'
vo/if_objectinfo.lua:494: in function 'FillInPlayerInfo'
vo/if_objectinfo.lua:537: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_gameevent.lua:644: in function 'func'
vo/vo_gameevent.lua:1582: in function <vo/vo_gameevent.lua:1575>
Yes, I had plugins installed when this occurred. None of the installed plugins modify the UI in anyway or hook any functions, related to the UI or otherwise.
I believe it could be duplicated, but the timing is such that it's likely to be difficult, which explains why it hasn't been caught before.
--------------------------------------------------------------------------------
EDIT:
Here's another log entry with a screenshot. (still with plugins installed.)
Event: PLAYER_STATS_UPDATED - Data:
1: (number) 39806781 (*Dinakz Kamu)
vo/if_faction_template.lua:223: attempt to perform arithmetic on local 'standing' (a nil value)
stack traceback:
vo/if_faction_template.lua:223: in function 'Setup'
vo/if_faction_template.lua:267: in function 'Setup'
vo/if_objectinfo.lua:494: in function 'FillInPlayerInfo'
vo/if_objectinfo.lua:537: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function 'ProcessEvent'
vo/vo_gameevent.lua:644: in function 'func'
vo/vo_gameevent.lua:1582: in function <vo/vo_gameevent.lua:1575>
Event: CHAT_MSG_SECTORD_SECTOR - Data:
1: (table) msg="*Dinakz Kamu jumped to Itan System, Sector B-6"
[Tue Jan 22 23:28:37 2013] *Dinakz Kamu jumped to Itan System, Sector B-6
Event: PLAYER_LEFT_SECTOR - Data:
1: (number) 39806781 (*Dinakz Kamu)
Event: TARGET_CHANGED - Data:
http://i.imgur.com/7dQnLtv.png
--------------------------------------------------------------------------------
EDIT2:
I have verified that the problem does indeed persist when there are no plugins installed, and it's quite easy to duplicate actually. Just spam your charinfo button when a target is about to leave the sector (either docking or jumping).
Yeah, it's a known bug. You devs need to fix it! :)
Same thing happens when you target a group member that is out of radar range and look at the charinfo.
This started happening after the radar limit was introduced.
(This, the nil returing from a few functions, and the sector list appearing completely blank in ion storms even when there are targets in range...)
(This, the nil returing from a few functions, and the sector list appearing completely blank in ion storms even when there are targets in range...)
This lua error should be fixed in the 1.8.244 update.