Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Constant freezing after update to 4.5.1

Discussion in 'Editor & General Support' started by Cheburek, Jul 7, 2014.

  1. Cheburek

    Cheburek

    Joined:
    Jan 30, 2012
    Posts:
    384
    I've updated to 4.5.1 and I can't get Unity to work anymore..

    Every other time (works the first time, freezes on 2nd or 3rd time) I press play, it freezes. Every time I make script change, it freezes. 4.3 worked fine, but downgrade isn't an option.
    I am using NGUI, Photon and UnityVS (all updated to latest versions).

    I am running Win7 x64 Ultimate.
    Here's detailed dxdiag: https://dl.dropboxusercontent.com/u/5102757/DxDiag.txt
     
    Last edited: Jul 9, 2014
  2. Cheburek

    Cheburek

    Joined:
    Jan 30, 2012
    Posts:
    384
    The editor log when Unity is freezing ends on this line:

    Begin MonoManager ReloadAssembly

    Anyone have any ideas what could be causing this?
     
  3. Cheburek

    Cheburek

    Joined:
    Jan 30, 2012
    Posts:
    384
    I am still getting the freezes, I don't know what it is. Could it be shader compiler? Here's the shadercompiler log I am seeing:

    Base path: C:/Program Files (x86)/Unity/Editor/Data
    Pipe name: \\.\pipe\UnityShaderCompiler-1-8984
    Cmd: getPlatforms
    Unhandled exception: Readfile from pipe failed. GLE=The pipe has been ended.



    Quitting shader compiler process
     
  4. ricardo_arango

    ricardo_arango

    Unity Technologies

    Joined:
    Jun 18, 2009
    Posts:
    64
    Have you tried not using UnityVS/Photon? An empty project?
    Do you have an antivirus running, that maybe blocking Unity?
     
  5. Cheburek

    Cheburek

    Joined:
    Jan 30, 2012
    Posts:
    384
    No I don't have antivirus. It doesn't crash in my other projects (without Photon but with UnityVS) but it's not an indication that it's Photon's fault yet. This one is a very complex project, I am also using my own dlls. Also I updated Photon to latest version and haven't seen any complains of crashes on their forums.
     
  6. Cheburek

    Cheburek

    Joined:
    Jan 30, 2012
    Posts:
    384
    ok figured it out. It was Photon after all, with their recent update I needed to add connection termination logic to OnApplicationQuit() as follows:

    void OnApplicationQuit()
    {
    _peer.StopThread();
    _peer.Disconnect();
    }