"A JavaScript error occurred in the main process" after installing Unity Hub
Asked Answered
S

6

0

I received this error after installing Unity Hub for the first time. Have tried reinstalling, rebooting, running as administrator, looking at the permissions, searching the Internet for answers and I’ve been able to find nothing. Anyone else have this issue?

Scherzo answered 6/1 at 2:11 Comment(1)

It Happened To Me Since I haven't Used Unity for like a month, since i have my own laptop, but i wanna used unity again, but i did everything waiting done downloading and this error message popped up

Acquiescent
F
0

@Scherzo I have the same issue. Until few days ago, unity hub was working fine but when I tried to open it today, I get this same error.

Filbert answered 31/3, 2021 at 16:43 Comment(1)

For me there was some kind of issue with the security settings of some of the folders on my computer and it wasn't giving me access to install certain things. I believe the cause of these issues might've been malware, but to fix it I did a system restore and now Unity Hub works for me. I searched online and saw that installing Microsoft Visual C++ Redistributable might help as well

Scherzo
V
0

Happened to me as well.
I found out it was caused by UnityHub not being able to access Temp folder. Specifically my user temp folder, by default located at C:\Users\YOUR-USER-NAME\AppData\Local\Temp

In my case Windows environment variable TEMP and TMP got messed up by some program installation.
Setting them back to original default values fixed the UnityHub crash. (And potentially prevented many more programs crashing)

Veinstone answered 31/3 at 19:35 Comment(0)
U
0

I am having the same exact issue with Hub 3.4.2. I have already checked the environment variables that point to the Temp folder and they are properly set.
If I open the hub with administrator privileges the error won’t pop-up but then im getting warnings when i open any project because the Unity is running with administrator privileges too.
I have reinstalled the Hub too and the issue persists.

Unbolt answered 18/5, 2023 at 19:52 Comment(0)
S
0

Same issue with Hub 3.5.0. It can open with admin access, but can’t sign in from inside the Hub, as sign-in opens browser and browser tries to re-open Hub (and can’t without admin).

Sheehy answered 17/7, 2023 at 17:32 Comment(1)

Managed to get mine working by assigning 'full control' to all users for the \Temp folder, starting Unity, signing in, starting project, and then have removed full control back to previous setting. Seems ok so far...

Sheehy
S
0

Hey,
You must have not been an administrator, therefore, it showed access denied as you are trying to access the temp folder and you are probably a standard user with normal computer rights while the administrator has access to the whole platform and etc. If you want, you can change your account from standard to admin which would make your life easier or just reopen unity with admin (right-click and click run as administrator, not unity hub) You could also change the instances when the UAC prompt is required but the best option is that your account should be an administrator (it is not required but it’s your choice as then you would have to enter the admin account pin to do stuff that is above your access level :slight_smile: ).

I know this may be a little confusing as I am not the best explainer but tell me if any questions!

Thanks
Advik

Sinkhole answered 18/7, 2023 at 6:45 Comment(1)

Hello, I am an administrator but there is still this problem when starting Unity, how can I solve it?

Clinician
A
0

Run chrome with administrator and login ,100% fix

Aureaaureate answered 31/3 at 19:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.