- Home /
Unity 4.2 crash when editor recompiles project
Hi there,
I have a project that builds fine in Mono, but as soon as I switch back to Unity 4.2 the editor recompile kicks in. The loading spinner does its thing and stops (which usually indicates a reload in progress and should last a couple of seconds). Then Unity hangs every time.
I've tried cleaning my build, deleting all temp directories etc and reinstalling Unity. I'm on a 2009 15" Macbook Pro.
Any ideas? Are there any other settings files hidden around I should get rid of to start from a "clean" install?
Thanks, Jonny
try to uninstall unity4.2 and delete every temp data also clean the registry and go to Program Data and delete unity folder contains license file. also clean "windows installation directory\Users\your name\AppData\local\Unity"
"windows installation directory\Users\your name\AppData\locallow\Unity"
"windows installation directory\Users\your name\AppData\local\Roa$$anonymous$$g\Unity"
and after that reinstall unity using ad$$anonymous$$istrator privilege.
Thanks, but like I said I'm on a $$anonymous$$acbook. Are there OSX equivalents to the directories you describe?
Are you using and Prime31 plugins? I found that sometimes there was a duplicate Prime** something file that caused a crash.
Answer by Xtro · Aug 06, 2013 at 02:46 PM
If you don't have this problem on an empty project including a very basic script, then your project setup has a serious problem. Don't blame the environment. Maybe you have some chain links in between your scripts or something.
If you manage to compile on an empty project with a basic script, take a backup of your project and rip its parts one by one trying to find where the real problem is.
Thanks - I'll take a look. But like I said, compilation of the project is not a problem in $$anonymous$$ono, it's the reloading by Unity that causes issues.
I'm talking about the chain links in unity project setup in the editor scene. Not the code. Of-course I'm not sure if this is the real problem. but it looks like you have the problem in the editor, not in the code.
Or... If you are dealing with an editor extension script, its runtime may crash the unity.
ah right, thanks I see what you mean. I'll see if it's that.
Hey - thanks.
Yeah so I had a dodgy editor script that set a static variable... and when I took that out everything went back to normal. Thanks!