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

Bug Waiting for Unity's code in UnityEditor.CodeModule.dll to finish executing.

Discussion in 'Editor & General Support' started by sealfoss, Aug 17, 2023.

  1. sealfoss


    Nov 19, 2012

    As you can see, I let the above window run for over four hours without resolving itself. This occurred when I attempted to drag and drop a C# script I had been working on onto an empty game object in a new scene. Attempting to open the scene I had been working in also caused Unity editor to hang. I've tried white listing my project folder in Windows Defender, deleting my project's obj, library, temp, user settings, logs folders, along with all of the vs files (sln, vsproject, etc). I've tried allowing Unity's services through Windows Defender's firewall explicitly. I've tried upgrading from Unity 2022 to Unity 2023. The problem seems to have to do with a single script in particular that isn't throwing any compilation errors and only functions to manipulate strings. Any help is appreciated, thanks in advance.
  2. CodeSmile


    Apr 10, 2014
    Post the script code!

    Likely you have something like an infinite loop in that script. Check the code in event methods Awake, Start, OnEnable, OnValidate and Reset.