Unity is not responding when compiling scripts

Hello, I have project from Unity 4 (Now he is on 5.3.1 version). In Unity 5.3.1, After when I am editing some scripts, Unity is auto compiling the scripts and there stuck during compilation. I have to close Unity always from Task Manager.

Any idea? In other projects Unity works perfectly.

Editor log:

I sent bug report (case 755647). Please help me, I can’t continue to work on my project.

Did you check whether the automatic api updater dialog opens up and hides behind the Unity window?

I see that I got a lot of warnings about “Application.LoadLevel, etc…” that they obsolete in current version. I solved the warnings, now It looks like no more stuck during scripts compiling. But, when I press on Play button sometimes the editor stuck again.

Thank you.

Up. Unity again crashes always. I’m disappointed from the engine, Especially from the support that I can’t get him from this Company (Perhaps only for who bought license for 1500$).

If Unity crashes, there are often unusual messages in the editor log. Did you see anything like that?

Not exactly crashes, It only stuck and doesn’t responding. In the end of the editor.log I see:

Up.

Up.

How does the new editor log look now as you have resolved all the obsolete warnings?

Edit: Did you check the PlayerController class at line 125? This one is being executed like crazy.

I’ll give you the editor log. Also unity crashes when I press on Play button in the editor.
About line 125, I was using there UsedImplicitly attribute of the Resharper. I removed this attribute on all scripts and nothing has changed.

There seems to be something with the ChatLobby script too… Do you have any other message in the console?

Yes, I have two warnings:

ChatLobby script: http://pastebin.com/FxhjhTGX

Thank you for the quick replies.

You are using Photon, did you check whether there is a newer version for it? Maybe a version that is ready for Unity 5 for sure?

I am experiencing the same issue, except I cant even open the project. The Unity process runs, I can see it in the task manager, and I get logs, but the application window never opens because it is stuck compiling.
The Editor log ends in the same entry as above:

Reloading assemblies after successful script compilation.
Begin MonoManager ReloadAssembly

I can provide the editor logs if it will help.

EDIT: forgot to mention, this happens on 5.3.1f1, 5.3.1.p1 and also 5.2.3p3, though 5.3.0f1 works fine.

I’m using the latest version of Photon (1.65v). I’m don’t think that is problem with Photon because I’m using also this version in other projects.

Up. I’m very disappointed from Unity engine because it has a lot of bugs. Especially this bug that prevent from me to continue working with Unity.

Do you use this version of Photon in the same version of Unity?
Did you try to just play with an empty scene?

To me, it seems that you have to step by step isolate the issue in this project. There are quite a few things that can produce this kind of problem. Plugins or editor scripts can easily produce this kind of problem and make it really hard to spot them.

1 Like

Yeah! I created a new scene, and there are no problems. How can I fix the current scenes?
Thank you very much!

That’s really hard to say. You may try to create a copy of the scene, deactivate all the game object and check whether it works. If it does, activate them step by step and find out which one is causing issue.

1 Like