Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

[macOS Mojave] Unity hub doesn't open.

Discussion in 'Unity Hub' started by teymour-aldridge, Nov 7, 2019.

  1. teymour-aldridge

    teymour-aldridge

    Joined:
    Nov 7, 2019
    Posts:
    1
    I have recently installed unity and unity hub. Upon opening Unity, Unity launches Unity Hub which starts and then immediately crashes – this is an incredibly frustrating experience.

    I have copied the contents of /Users/teymouraldridge/Library/Application support/UnityHub/logs/info-log.json below.

    I would be very grateful for any help in resolving this issue.

    Code (JavaScript):
    1. {"moduleName":"App","level":"info","message":"[ 'Checking arguments for Windows custom URI scheme' ]","timestamp":"2019-11-07T07:08:52.265Z"}
    2. {"moduleName":"App","level":"info","message":"[ 'No custom URI argument found' ]","timestamp":"2019-11-07T07:08:52.266Z"}
    3. {"moduleName":"SystemInfo","level":"info","message":"[ 'Hub version: 2.1.3' ]","timestamp":"2019-11-07T07:08:52.363Z"}
    4. {"moduleName":"SystemInfo","level":"info","message":"[ 'Hub path: /Applications/Unity Hub.app/Contents/MacOS/Unity Hub' ]","timestamp":"2019-11-07T07:08:52.363Z"}
    5. {"moduleName":"HubSettings","level":"info","message":"[ { cloudEnvironment: 'production',\n    accessTokenIntervalPeriod: 5000,\n    servicesUrlInterval: 900000,\n    hubConfigInterval: 3600000,\n    releasesRefreshInterval: 3600000,\n    recentProjectInterval: 60000,\n    downloadClusterInterval: 1000,\n    downloadEditorInterval: 1000,\n    refreshTokenValidity: 2592000000,\n    checkForUpdateInterval: 43200000,\n    sendAnalyticsEventsInterval: 60000,\n    maxSizeForAnalyticsQueue: 500,\n    downloadRequestTimeout: 30000,\n    globalConfigFolder: '/Library/Application Support/Unity/config' } ]","timestamp":"2019-11-07T07:08:52.402Z"}
    6. {"moduleName":"CloudConfig","level":"info","message":"[ 'Cloud Config endpoint: https://public-cdn.cloud.unity3d.com/config/production' ]","timestamp":"2019-11-07T07:08:52.402Z"}
    7. {"moduleName":"LocalConfig","level":"info","message":"[ 'Local Config endpoint: https://public-cdn.cloud.unity3d.com/hub/prod/hubConfig.json' ]","timestamp":"2019-11-07T07:08:52.502Z"}
    8. {"moduleName":"LocalConfig","level":"warn","message":"[ Error: Invalid data\n      at /Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/electron-json-storage/lib/storage.js:89:25\n      at nextTask (/Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:5324:14)\n      at next (/Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:5331:9)\n      at /Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:969:16\n      at /Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/electron-json-storage/lib/storage.js:74:18\n      at tryToString (fs.js:513:3)\n      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:501:12) ]","timestamp":"2019-11-07T07:08:52.509Z"}
    9. {"moduleName":"AutoUpdater","level":"info","message":"[ 'Init' ]","timestamp":"2019-11-07T07:08:52.512Z"}
    10. {"moduleName":"AutoUpdater","level":"info","message":"[ 'Look for Hub updates from app-update.yml -> url' ]","timestamp":"2019-11-07T07:08:52.512Z"}
    11. {"moduleName":"AutoUpdater","level":"info","message":"[ 'Checking for hub updates' ]","timestamp":"2019-11-07T07:08:52.513Z"}
    12. {"moduleName":"TokenManager","level":"info","message":"[ 'Init' ]","timestamp":"2019-11-07T07:08:52.606Z"}
    13. {"moduleName":"AutoUpdater:EventHandler","level":"info","message":"[ 'Checking for update' ]","timestamp":"2019-11-07T07:08:52.609Z"}
    14. {"moduleName":"TokenManager","level":"info","message":"[ 'Done init' ]","timestamp":"2019-11-07T07:08:52.679Z"}
    15. {"moduleName":"Download","level":"info","message":"[ 'Init' ]","timestamp":"2019-11-07T07:08:52.679Z"}
    16. {"moduleName":"EditorManager","level":"info","message":"[ 'Init' ]","timestamp":"2019-11-07T07:08:52.706Z"}
    17. {"moduleName":"Releases","level":"info","message":"[ 'Releases endpoint: https://public-cdn.cloud.unity3d.com/hub/prod/releases-darwin.json' ]","timestamp":"2019-11-07T07:08:52.707Z"}
    18. {"moduleName":"EditorList","level":"info","message":"[ 'init' ]","timestamp":"2019-11-07T07:08:52.711Z"}
    19. {"moduleName":"SystemInfo","level":"info","message":"[ 'MacBook Pro Intel Core i7 2.7 GHz 16 GB ; Mac OS X 10.14.6 18G84 Darwin 18.7.0' ]","timestamp":"2019-11-07T07:08:52.713Z"}
    20. {"moduleName":"customInstallLocation","level":"warn","message":"[ 'Custom install path could not be retrieved: ',\n  Error: Invalid data\n      at /Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/electron-json-storage/lib/storage.js:89:25\n      at nextTask (/Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:5324:14)\n      at next (/Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:5331:9)\n      at /Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:969:16\n      at /Applications/Unity Hub.app/Contents/Resources/app.asar/node_modules/electron-json-storage/lib/storage.js:74:18\n      at tryToString (fs.js:513:3)\n      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:501:12) ]","timestamp":"2019-11-07T07:08:52.744Z"}
    21. {"moduleName":"customInstallLocation","level":"info","message":"[ 'Custom install path not present.' ]","timestamp":"2019-11-07T07:08:52.744Z"}
    22. {"moduleName":"EditorFolderScanner","level":"info","message":"[ '0 out of 0 valid paths found in path: /Applications/Unity/Hub/Editor' ]","timestamp":"2019-11-07T07:08:52.746Z"}
    23. {"moduleName":"customInstallLocation","level":"info","message":"[ 'Cannot scan custom location (no path set).' ]","timestamp":"2019-11-07T07:08:52.746Z"}
     
    Last edited: Nov 7, 2019
  2. safaGH

    safaGH

    Unity Technologies

    Joined:
    Mar 12, 2019
    Posts:
    147
    Hello @teymour-aldridge ,
    Your logs are saying that the hub couldn't find the custom location in which you installed the unity editor. I advise you to try opening the hub application on its own first, then go to the installs tab and install the unity editor you need (You can locate the one you already installed as well, but to avoid experiencing the same issue, it's better to install a new one). then create a project through the hub with the editor you installed. The problem may be because of the location in which you installed Unity (external disk, inaccessible folder... ). Don't hesitate to come back to us if it didn't work.