Search Issue Tracker

Fixed

Fixed in 2021.3.45f1, 2022.3.49f1, 6000.0.21f1

Votes

66

Found in

2022.3.4f1

Issue ID

UUM-41830

Regression

No

[Android] [Entities] Build fails with the error “Asset has disappeared while building player to 'globalgamemanagers.assets' - path '', instancedID '-xxxxxx'“ when building

--

-

Reproduction steps:
1. Open the attached project "ReproProj" with the Android Platform
2. Open the “/Assets/_Scenes/Game.unity” Scene
3. Press Build in File > Build Settings
4. Repeat step 3 for 6 times

Expected result: Build succeeds all 6 times
Actual result: At some point build fails and the error “Asset has disappeared while building player to 'globalgamemanagers.assets' - path '', instancedID '-xxxxxx'“ appears in the Console window

Reproducible with: 1.0.10 (2022.3.4f1), 1.0.11 (2022.3.4f1)

Testing environment: Windows 10 Enterprise 21H2

Notes:
- Might be reproducible with Windows Standalone Platform
- Most of the time it takes more than 6 times to reproduce the issue. It reproduces at random moments
- After getting the error it usually takes another attempt to build successfully
- It will reproduce more often after changing reference at prefab and triggering baking at dots project or compiling code than building the Player

Comments (28)

  1. unity_ZVUmeyR7_Jag9g

    Sep 21, 2024 21:30

    Same issue on Unity 2022.3.41f1

    My setup : Windows 11 / Rider / Google Play Games Services / Building to Android

    @jivalenzuela any update ?

  2. HECer

    Sep 07, 2024 14:57

    same here with version 2022.3.44f1

    Every like 3rd build I have to restart Unity, this is such a productivity killer, especially with a big project.

  3. JPR1234

    Aug 22, 2024 19:16

    Just started seeing this on both 2022.3.20f1 and 2022.3.42f1 on Win10 building to Android. Only seemed to happen after I made 2 changes - introduced a couple of sprite atlases and turned on both "Autoconnect Profiler" and "Deep Profiling Support" in my build settings.

    I'll try again after I'm done profiling and see if I the issue goes away.

  4. Flag74

    Aug 13, 2024 19:14

    Same for 2022.2.18 on Switch. When it happens I have to restart unity otherwise it will not build anymore.

  5. hopelesscate

    Jul 06, 2024 21:57

    Same here on Unity 2022.3.27f1, 2022.3.29f1 & 2022.3.35f1

  6. SC_Marino

    Jun 12, 2024 11:22

    Unity 2022.3.32f1
    This is happening for me on Windows 11 building for Windows64 and MacOs building for iOS as well.
    Both in batch mode.

  7. StefanWo

    Mar 28, 2024 07:36

    The problem exists now around 2 years, after 1 year we finally someone was able to create an easy reproducable project for you.

    Can we have an update what the problem is and if there is a chance for a fix, or at least a way to reduce or workaround the issue?

  8. BenIVRE

    Mar 25, 2024 15:26

    We were seeing this issue on our build machines for MacOS and Android builds. The only ones that worked were Windows and iOS. iOS runs on the same build agent as MacOS, and all the Android ones run on the same agent as Windows. It seemed to be the same asset that goes missing on all builds.

    I opened this prefab and forced a resave of the asset. As we'd updated the version of Unity, there were some meta changes to the file that needed to be committed to source control. After that, the builds all completed as expected.

  9. vharutyunyan

    Mar 22, 2024 16:59

    A possible workaround is doing a "Clean Build".

    I am getting this on an M1 Mac during Android builds.

    Clean Build is accessible through the arrow next to the Build Button.

  10. StefanWo

    Feb 26, 2024 01:26

    Are there any updates on this issue? It really kills a lot of productivity repetitive recompiling, and restarting unity for several hours till get a successful build...

    Unity 2022.3.20f1 Windows Standalone build

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.