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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Bug 2022.02.0b9 Asset has disappeared while building player to 'globalgamemanagers.assets'

Discussion in '2022.2 Beta' started by StefanWo, Oct 1, 2022.

  1. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    106
    When i start a build like normal, it shows me the following error.

    Asset has disappeared while building player to 'globalgamemanagers.assets' - path '', instancedID '-43676'
    UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)


    WORKAROUND: After some search, i found some bugs from several years ago, showing a workaround: Close all Unity Windows, Restart Unity, directly start the compile without opening windows. => Worked... But not very useful :)

    Just opening the console brings that error again, so another restart is needed..

    ps.: Same at 2022.02.0b8 and 2022.02.0b9.
     
  2. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,348
    I've had files disappear due to antivirus quarantine - solution for me was whitelisting engine and project folders. If doesn't help in your case, maybe helps someone else. I'm using 2022.2.0b9 as well but have had no such issue (so far).
     
  3. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    106
    No antivirus in use here. Also why its working when unity starts with closed unity-tabs and directly the build is started :) So i think, it has to do something with unity itself.
     
    Last edited: Oct 1, 2022
  4. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    106
    Update: I Nailed it down to Console, Game and Scene Window. They has to be never opened, to prevent this error.
     
    jonas-thefullyarcade likes this.
  5. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    953
    I have same issue. Unity 2022.2.0b11 still has this issue.
    Windows : OK
    Mac Intel : Error
    Mac M1 : Error
    So I can't build iOS player :(
     
  6. JesseSTG

    JesseSTG

    Joined:
    Jan 10, 2019
    Posts:
    233
    Same for me on 2022.2.0b15. It happens sometimes, but not always; usually it suffices to try building again.
     
  7. Mic_Emond

    Mic_Emond

    Joined:
    Nov 16, 2016
    Posts:
    44
    We were getting the same, ever since 2022.2 beta.
    Waited out for the official 2022.2.0f1 release, but still getting the same.

    So +1 on this.
    It's preventing us from upgrading to the new tech stack. Which we want for Entities 1.0 and other editor ameliorations
    Anyone managed to fix this ?
     
  8. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    106
    I also still got that error also with the 2022.2.0f1.
    @Mic_Emond: My workaround i mentioned in the first post is still working for me. Sometimes i need to restart one more time. Its pretty annoying, due to the compile took a very long time and it just crashes at the end of it...

    The Forum has been moved to achived now...
    Is anyone from Unity that have this bug noticed?

    Update: Looks like in Unity 2023.1.0a22 it seems not happening, but that editor crashes way too often for other reasons...
     
    Last edited: Dec 13, 2022
  9. Mic_Emond

    Mic_Emond

    Joined:
    Nov 16, 2016
    Posts:
    44
    @StefanWo Thanks for the confirmation.
    Sadly we're using a build machine and running builds through the command line and they still fail. (they also fail when trying from the editor locally)
    I've started a new thread in the "Editor" part of the forum since 2022.2 is out of beta now. But it's quickly getting burried.
    (here it is for anyone interested)
    https://forum.unity.com/threads/build-fails-after-update-to-2022-2-0f1.1373190/

    Going to 2023 isn't a good move for us as we'd like to ship within the 2022 LTS cycle
     
    StefanWo likes this.
  10. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    106
    Thanks for posting it there too. I discovered some other forum entries, related to the UI-Package, that would make sens, that not using it in the editor fixes this issue somehow. In the new Version i had troubles even when i tried to do that, and it worked even with all windows open. Its really strange...

    I could fix it from time to time when playing around with packages, so adding and removing them. Than directly after the restart of the Editor, i can build it once without that error. It's also mentioned here as a workaround:
    https://forum.unity.com/threads/dot...ets-is-corrupted-in-standalone-build.1031437/

    Update: After its compiled, i get strange memory corruptions, maybe its related to it, maybe not. I have to downgrade again to Entities 0.51 to continue working... Hope this errors got fixed soon :(
     
    Last edited: Dec 14, 2022
  11. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    106
    New Entities prev-44 with the recommended Unity version => still the same. But after compiling a 2. time it worked. No idea...

    I can't just remove the entities, due to i build my project on it.
     
  12. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    106
    Using pre-65 and Unity 2022.2.13 => still the same... Anyone an idea what can be the cause of this strange bug, or ideas how to figure this out?
     
  13. stevemcilwain

    stevemcilwain

    Joined:
    Feb 21, 2021
    Posts:
    2
    Same bug here, Unity 2022.2.14f1... show stopper.
     
  14. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    106
    Good to hear, that i'm not the only one :)

    I'm now on Unity 2022.2.16 and got once an additional other error: (the original one still appears when trying to build again)

    Code (CSharp):
    1. Building - Failed to write file: resources.assets
    Is this maybe somehow related?
     
  15. sinedsem

    sinedsem

    Joined:
    May 7, 2020
    Posts:
    6
    Same here with Unity 2022.2.19f1 and WebGL build.
     
  16. HECer

    HECer

    Joined:
    Mar 17, 2013
    Posts:
    39
    Same here with Unity 2022.2.21 building for Android:

    Asset has disappeared while building player to 'globalgamemanagers.assets' - path '', instancedID '-128600'
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  17. rainwizerd

    rainwizerd

    Joined:
    Feb 19, 2020
    Posts:
    3
    Same bug on 2023.3.0 lts, can we get a Unity employee in here to help resolve? Pretty disruptive and unexpected in an lts release...