Unity Project closes immediately after opening, without any errors - What could be the cause?
I open Unity Hub, select the project, it launches the splash screen, then begins to load the editor, the loading bar appears and starts filling, and then Unity just closes. No error messages appear at all.
The project is collab enabled. It consists of only scripts and a few standard materials and simple GameObject prefabs (just sprite renderers with default tile textures).
Some Hub processes are still running in task manager after the close.
So far I've tried:
Deleting the project's Lock file and attempting a restart - issue persisted.
Restarting my PC - issue persisted.
Ending processes in task manager and restarting - issue persisted.
Building the project solution in visual studio to check for errors - no errors found, build successful
Upgrading the project to the latest version of Unity (from 2019.3.12f1 to 2019.4.1f1) - issue persisted.
Backing up my changes, removing the project from the list in Hub, re-downloading from collab and re-importing my changes - the project opened, until i tried to open one of my custom editor windows and then the issue re-occurred
Revoking and re-allocating my unity teams seat on the project in the project Dashboard - issue persisted.
Copying my scripts across into a blank project to check for compiler errors - no errors found, the issue hasn't yet re-occurred.
I'm writing this post because i'm dreading the issue continuing in a fresh project, and ideally i would like to not keep creating brand new projects and setting up collab and re-allocating seats every time this happens. It's entirely unclear to me as to whether the issue is with my code, or with the project, or some licensing error, or something else.
Can anybody shed some light? Happy to post more info, but not sure what would be relevant.
I have had the same exact problem happen on two different projects now. It's not just you. I have found no solution.
*Update: https://answers.unity.com/questions/1704824/unity-closes-when-opening-project.html
From this link I found that it can be related to choosing the wrong network adapter to check license. What is interesting is, all of the people I saw commenting were saying they either needed to enable wifi, or ethernet, the opposite of what they were using.
In my case I often use express vpn, and it has its own adapter that is disabled when not connecting to a server.
Turning my VPN on allows my projects to open again. This tells me unity has something wrong with their networking code when it comes to selecting which network. If 1 is disabled and 1 is not, it seems quite obvious it should utilize the enabled one.
Thanks so much for replying! Interesting, I was beginning to think that it was some kind of network issue, as i've been working for a week now on a fresh copy of the project that I haven't connected to collab, and so far there have been no issues. Unity recently updated the dashboard, so maybe there are still some things they need to iron out regarding collab, and that could be the source of the issue. I haven't tried opening the project on my other pc, which is connected to the internet via an ethernet cable. I'll try it out and test what you've suggested. The main reason i didn't already is because i wasn't able to push my more recent changes to collab after the issue began, so i'd have been working on an out of date version. Thanks again!
Answer by ZackSheppard · Sep 03, 2020 at 04:45 PM
This particular issue is starting to really hurt my productivity. I have a work and home environment both using unity and both have been effected by this.
At home: I installed a new PCIE express wireless card to improve my connection. After I did this unity stopped working. I'd launch the HUB and click the project as I do every day... year after year... and the editor splash shows up and the it just goes away. Nothing tells me that there was an issue. It just goes away. After doing some reading on this I figured out that it was because I had disabled my old wifi connection to make sure my new card was the only connection. Once I re-enabled the old adapter it worked again.
At work: I had a hard drive fail and had to reinstall everything. Now I want to use Unity and get some work done and it is doing the same thing! Splash shows up... goes away... no sign of failure.... The HUB says my license is valid and activated.... Only this time ALL my adapters are active. I can't get this to work and am sad that money has to burn due to this issue
Comment on my situation. I removed my activation entirely and killed the unity hub from task manager. ALL processes killed for HUB. Then I disabled my wireless adapter and booted the HUB and re-activated my license. Seems to be working again now. I have to wonder if they lock in the network adapter that was used during license activation and require that to be the only adapter allowed to check for that license in the future? Unsure... but unity just booted for me so I think i'm good.
Answer by tvedel · Dec 04, 2021 at 09:47 AM
Well happened to me as well and the reason was I was running thru vpn, I disabled the vpn and all well.
Your answer
Follow this Question
Related Questions
Unity doesn't start. 3 Answers
Editor problem, strange colors and scribbles in new projects. Bug? 1 Answer
Unity crashes whenever I try to modify a prefab 1 Answer
[Linux Editor] Change player to Vulkan before OpenGL will get you stuck in Unity crashing on startup 0 Answers
unity 2019.3.0 f6 crashes when i install android support 0 Answers