I was opening a project with Hub, when it says “Unity is already in list. You cannot locate the same version”.
I checked the logs, and the problem is:
{"moduleName":"LocalProject","level":"info","message":"[ 'openProject projectPath: /path/to/my/project, current editor:',\n undefined ]","timestamp":"2019-12-03T10:26:25.143Z"}
{"moduleName":"RestEvent:Project","level":"info","message":"[ 'onProjectOpen data:',\n { projectPath:\n 'path/to/my/project' } ]","timestamp":"2019-12-03T10:26:25.143Z"}
{"moduleName":"UnityIPCServer","level":"info","message":"[ 'client process has connected to Unity-hubIPCService!' ]","timestamp":"2019-12-03T10:26:26.207Z"}
{"moduleName":"Auth","level":"info","message":"[ 'Successfully logged in' ]","timestamp":"2019-12-03T10:26:26.607Z"}
{"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 (D:\\MBI\\x64\\Unity Hub\\resources\\app.asar\\src\\services\\localIPC\\controllers\\window.js:104:30)\n at WindowController.show (D:\\MBI\\x64\\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-03T10:26:33.554Z"}
{"moduleName":"HubIPCService","level":"info","message":"[ 'socket has disconnected: [object Object] , false!' ]","timestamp":"2019-12-03T10:26:43.613Z"}
{"moduleName":"LaunchProcess","level":"info","message":"[ 'child process exited with code 0' ]","timestamp":"2019-12-03T10:26:43.670Z"}
How can I fix the “Unhandled promise rejection, reason: The value of "byteLength" is out of range. It must be >= 1 and <= 6.”?