My Unity Hub is suddenly refusing to open. The first time I launch it I get an error message:
The Hub as [sic] encountered a critical error and must close. You can report a bug using our bug reporter tool
Reporting the bug seemingly does nothing, unless it sends the telemetry in the background with no visual feedback. Launching the Hub again opens a black window.
I have some projects on a network attached drive that I am not always connected to. The last lines of %AppData%\UnityHub\logs\info-log.json are related to one of those projects:
{"timestamp":"2022-08-19T16:20:17.526Z","level":"error","moduleName":"App","message":"[\n \"Failed to start Unity Hub, reason: Error: EPERM: operation not permitted, open '\\\\\\\\192.168.0.202\\\\[path to project]\\\\hubInfo.json'\"\n]"}
{"timestamp":"2022-08-19T16:20:17.526Z","level":"error","moduleName":"App","message":"[\n \"Error: EPERM: operation not permitted, open '\\\\\\\\192.168.0.202\\\\[path to project]\\\\hubInfo.json'\"\n]"}
{"timestamp":"2022-08-19T16:20:17.527Z","level":"error","moduleName":"ErrorBox","message":"[\n \"EPERM: operation not permitted, open '\\\\\\\\192.168.0.202\\\\[path to project]\\\\hubInfo.json'\\n\" +\n \"Error: EPERM: operation not permitted, open '\\\\\\\\192.168.0.202\\\\[path to project]\\\\hubInfo.json'\"\n]"}
but there is also the following error:
{"timestamp":"2022-08-19T16:20:16.441Z","level":"error","moduleName":"LicensingSdkService","message":"[\n \"Failed to connect to pipe: 'Unity-LicenseClient-[my Windows username], pid: undefined'\"\n]"}
I've seen forum posts about Unity Hub not launching when external drives containing projects are disconnected, so I am suspecting my NAS setup to be the culprit here. My questions are:
- Does Unity Hub really break if a project you opened once is no longer available? Or is my issue the licensing thing?
- Is there a workaround? Maybe making the Hub "forget" the project... which I think you can do in the GUI... but... well you get the issue. :)