-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Out of range error #24
Comments
I have not seen this issue but could you provide details of your config you used to set up rooms? |
I experienced this issue few times after building docker image in my production server. |
BTW i've implemented simple healthcheck, that makes app fail earlier in case of invalid HandRanks.dat file
|
Thanks. I can test this now and see if redownloading works. |
How strange. Looks like that was the issue. I had to scp the file from my main machine to my server, server was truncating the file ~8k lines every time for some reason. Thanks! |
-------- Results : Room 3 --------
--------ROUND RESULT-----------
internal/buffer.js:82
throw new ERR_OUT_OF_RANGE(type || 'offset',
^
RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 8305. Received 7_480_365_372
at boundsError (internal/buffer.js:82:9)
at Buffer.readUInt32LE (internal/buffer.js:216:5)
at Object.evalCard (/home/ubuntu/poker-pocket-backend/src/app/evaluator.js:111:23)
at Object.eval (/home/ubuntu/poker-pocket-backend/src/app/evaluator.js:95:16)
at Object.evalHand (/home/ubuntu/poker-pocket-backend/src/app/evaluator.js:89:17)
at Room.evaluatePlayerCards (/home/ubuntu/poker-pocket-backend/src/app/room.js:1194:26)
at Room.roundResultsEnd (/home/ubuntu/poker-pocket-backend/src/app/room.js:467:28)
at Room.staging (/home/ubuntu/poker-pocket-backend/src/app/room.js:301:12)
at Timeout._onTimeout (/home/ubuntu/poker-pocket-backend/src/app/room.js:444:11)
at listOnTimeout (internal/timers.js:554:17) {
code: 'ERR_OUT_OF_RANGE'
}
[nodemon] app crashed - waiting for file changes before starting...
This happens after sending all cards to all players
The text was updated successfully, but these errors were encountered: