UnityHub doesn't run - Unhandled promise rejection

UnityHub doesn’t start. It hangs around in the running processes. Editor runs, but I’d like to have the hwole experience and use Unity Hub. Experienced users seem to comment that it is helpful and nice to work with.

The error in \AppData\Roaming\UnityHub\logs is as follows:

{
    "level":"error",
    "message":"Unhandled promise rejection, reason: Cannot read property 'includes' of undefined
         stack TypeError: Cannot read property 'includes' of undefined
         at formatValue (internal/util/inspect.js:549:16)
         at formatProperty (internal/util/inspect.js:1289:11)
         at buffer.js:670:19
         at Array.reduce (<anonymous>)
         at Uint8Array.inspect (buffer.js:667:51)
         at formatValue (internal/util/inspect.js:535:31)
         at inspect (internal/util/inspect.js:210:10)
         at formatWithOptions (internal/util/inspect.js:1523:40)
         at Object.format (internal/util/inspect.js:1400:10)
         at Function.log (C:\\Program Files\\Unity Hub\\resources\\app.asar\\node_modules\\debug\\src\\node.js:135:43)",
    "timestamp":"2020-07-11T18:10:53.769Z"
}

Additional info:

  • I have managed to install Unity Editor using a stand alone installer
  • I have 2 UnityHub folders in AppData\Romaing … one is “Unity Hub”, and the other is “UnityHub”.
  • Error is logged to the one in UnityHub
  • Just noticed that in the install folder (C:\Program Files\Unity Hub\resources) , I have app.asar.unpacked folder with node modules inside, but node_modules only has @unityhub and windows-shortcuts
  • I used "asar extract app.asar test " and a lot of packaged got extracted. I moved them to app.asar but the error persists
  • I’m following the npm package breadcrumbs and indeed seems to be a node packages issue. Not all had been extracted and I believe still some are missing. Like util where only util-deprecated is in the node_modules folder

Yea Unity Hub and 2019 LTS has been broken for me as well… hopefully someone is looking into it.

Hi @pioSko : Would you mind zipping your installation and usage logs from the \AppData\Roaming\UnityHub\logs directory and posting them? Thanks!

Hi @BasilUnity … i reinstalled Hub but get exactly the same error. The directory now has only 1 file (info-log.json) with this error:

{“level”:“error”,“message”:“Unhandled promise rejection, reason: Cannot read property ‘includes’ of undefined\n\tstack TypeError: Cannot read property ‘includes’ of undefined\n at formatValue (internal/util/inspect.js:549:16)\n at formatProperty (internal/util/inspect.js:1289:11)\n at buffer.js:670:19\n at Array.reduce ()\n at Uint8Array.inspect (buffer.js:667:51)\n at formatValue (internal/util/inspect.js:535:31)\n at inspect (internal/util/inspect.js:210:10)\n at formatWithOptions (internal/util/inspect.js:1523:40)\n at Object.format (internal/util/inspect.js:1400:10)\n at Function.log (C:\Program Files\Unity Hub\resources\app.asar\node_modules\debug\src\node.js:135:43)”,“timestamp”:“2020-08-06T10:05:45.617Z”}

There’s nothing else.

cant download unity hub browser says download link took too long to respond pls help