Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UnityHub doesn't run - Unhandled promise rejection

Discussion in 'Unity Hub' started by pioSko, Jul 11, 2020.

  1. pioSko

    pioSko

    Joined:
    Jun 14, 2020
    Posts:
    2
    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:

    Code (JavaScript):
    1. {
    2.     "level":"error",
    3.     "message":"Unhandled promise rejection, reason: Cannot read property 'includes' of undefined
    4.         stack TypeError: Cannot read property 'includes' of undefined
    5.         at formatValue (internal/util/inspect.js:549:16)
    6.         at formatProperty (internal/util/inspect.js:1289:11)
    7.         at buffer.js:670:19
    8.         at Array.reduce (<anonymous>)
    9.         at Uint8Array.inspect (buffer.js:667:51)
    10.         at formatValue (internal/util/inspect.js:535:31)
    11.         at inspect (internal/util/inspect.js:210:10)
    12.         at formatWithOptions (internal/util/inspect.js:1523:40)
    13.         at Object.format (internal/util/inspect.js:1400:10)
    14.         at Function.log (C:\\Program Files\\Unity Hub\\resources\\app.asar\\node_modules\\debug\\src\\node.js:135:43)",
    15.     "timestamp":"2020-07-11T18:10:53.769Z"
    16. }
    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
     
    Last edited: Jul 11, 2020
  2. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    592
    Yea Unity Hub and 2019 LTS has been broken for me as well.. hopefully someone is looking into it.
     
  3. BasilUnity

    BasilUnity

    Unity Technologies

    Joined:
    Mar 28, 2018
    Posts:
    93
    Hi @pioSko : Would you mind zipping your installation and usage logs from the \AppData\Roaming\UnityHub\logs directory and posting them? Thanks!
     
  4. pioSko

    pioSko

    Joined:
    Jun 14, 2020
    Posts:
    2
    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 (<anonymous>)\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.
     
  5. Triunvirato

    Triunvirato

    Joined:
    Mar 9, 2019
    Posts:
    5
    cant download unity hub browser says download link took too long to respond pls help