Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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

    sealfoss

    Joined:
    Nov 19, 2012
    Posts:
    11
    upload_2023-8-17_4-37-40.png

    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

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    7,263
    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.