Search Issue Tracker




Found in

Issue ID




"The value of \"byteLength\" is out of range" error is thrown in the Hub logs



{"level":"error","message":"Unhandled promise rejection, reason: The value of \"byteLength\" is out of range. It must be >= 1 and <= 6. Received 8\n\tstack RangeError [ERR_OUT_OF_RANGE]: The value of \"byteLength\" is out of range. It must be >= 1 and <= 6. Received 8\n at boundsError (internal/buffer.js:58:9)\n at Uint8Array.readUIntLE (internal/buffer.js:80:3)\n at WindowController._sendMainWindowHandleData (C:\\Program Files\\Unity Hub\\resources\\app.asar\\src\\services\\localIPC\\controllers\\window.js:104:30)\n at (C:\\Program Files\\Unity Hub\\resources\\app.asar\\src\\services\\localIPC\\controllers\\window.js:53:12)\n at processTicksAndRejections (internal/process/task_queues.js:86:5)","timestamp":"2019-12-09T14:36:24.176Z"}

Reproducible with: 2.2.0, 2.2.1

- The error often appears in the logs when the Hub throws "Unity is already in the list. You cannot locate the same version"
- The error also often appears when users are saying that for one or another reason they are unable to open the projects

use Command Prompt or Terminal to open Unity with command line argument -projectPath:
"<path to Unity.exe>" -projectPath "<path to the main project directory>"

Comments (12)

  1. 6d635717504a6578391cec2c7b692626?d=mm


    Mar 25, 2021 22:18

    Still not working

  2. 8500eab0077415ad65cdcc4eb23db922?d=mm


    Feb 09, 2021 19:20

    Issue still persists. Hub 2.4.2. Disabling my recently enabled ethernet cable prompted the hub to request that I reactivate my license, which solved the issue.

  3. B11c6380106b12cb30d4d6ecb0be6dfc?d=mm


    Aug 12, 2020 09:36

    Not working(

  4. A45ef474c08c1bbb863fb9384b743586?d=mm


    Aug 10, 2020 09:27

    Hello, on August 10th 2020, I am using Unity Hub 2.3.2 and Unity 2019.3.15.f1 with a personal license and I confirm that the issue is still present.
    I have to open directly the scene of my projects as workaround.
    Maybe I can open a new bug ticket ?

  5. 3b86401f4ba0715e9cbac69df1a160ed?d=mm


    Jun 16, 2020 12:38

    It's not fixed !!
    I continue to have this issue.

  6. Bc75b90edcac1ec26cfd78a350b44d9f?d=mm


    May 05, 2020 12:46

    The fix for me was to re-enable the ethernet adapter. I'm on a laptop with separate Wifi and Ethernet adapters, but disabling Ethernet broke Unity hub despite it not being used at all (purely on Wifi). Re-enabling the Ethernet adapter fixed the issue. Reported as Case 1244367

  7. 5ef5c7fda80a128b32fee958609e92cf?d=mm


    Apr 26, 2020 16:17

    Still experiencing this issue as well.

  8. 3ad992f19537880090ed36186c384a49?d=mm


    Apr 21, 2020 06:32

    Still not working with unity hub 2.3.0 and Unity 2019.3.10f1

  9. 041892ed982acb917e36073f667ec193?d=mm


    Mar 18, 2020 14:40

    same here. unity hub 2.3.0 and Unity 2019.3.0f6

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.