The example below was taken from a Russian server so it is quite likely that some different characters are being used that are not being used on the EU/US servers SquadJS is primarily used on. That means it's likely an encoding issue. We should try some of these player names in the info below to see if we can replicate the crash.
Errors or Screenshots of Issue
[1598371049314] RCON (Verbose): Method Exec: execute(ShowNextMap)
[1598371062832] RCON (Verbose): Method Exec: execute(ListPlayers)
internal/buffer.js:79
throw new ERR_BUFFER_OUT_OF_BOUNDS();
^
RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
at boundsError (internal/buffer.js:79:11)
at Buffer.readInt32LE (internal/buffer.js:385:5)
at Rcon.decodePacket (file:///home/kry/SquadJS/squad-server/rcon/index.js:301:17)
at Rcon.onData (file:///home/kry/SquadJS/squad-server/rcon/index.js:251:34)
at Socket.emit (events.js:314:20)
at addChunk (_stream_readable.js:303:12)
at readableAddChunk (_stream_readable.js:279:9)
at Socket.Readable.push (_stream_readable.js:218:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
code: 'ERR_BUFFER_OUT_OF_BOUNDS'
The following is a list Battlemetrics provided of players at the time of the crash:
[1598381662749] RCON (Verbose): Method Exec: execute(ListPlayers)
internal/buffer.js:79
throw new ERR_BUFFER_OUT_OF_BOUNDS();
^
RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
at boundsError (internal/buffer.js:79:11)
at Buffer.readInt32LE (internal/buffer.js:385:5)
at Rcon.decodePacket (file:///home/kry/SquadJS/squad-server/rcon/index.js:301:17)
at Rcon.onData (file:///home/kry/SquadJS/squad-server/rcon/index.js:251:34)
at Socket.emit (events.js:314:20)
at addChunk (_stream_readable.js:303:12)
at readableAddChunk (_stream_readable.js:279:9)
at Socket.Readable.push (_stream_readable.js:218:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
code: '
The RCON client has been rewritten for SquadJS v2 so I will close this on the basis the issue is most likely no longer present or this existing research will not be relevant to any new issue.
Description of Issue
ListPlayer
is causing RCON to crash.The example below was taken from a Russian server so it is quite likely that some different characters are being used that are not being used on the EU/US servers SquadJS is primarily used on. That means it's likely an encoding issue. We should try some of these player names in the info below to see if we can replicate the crash.
Errors or Screenshots of Issue
The following is a list Battlemetrics provided of players at the time of the crash:
In a separate crash it looks to have been one of these names:
Another: ~ 2020.08.25-18.54.42:119
Squad Information
System Information