Build fails after update to [2022.2.0f1]

Ever since updating to 2022.2.0f1, our builds fail with:

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

Nothing else in the console.
We’ve upgraded all our packages, tried to investigate warnings etc on re-import. But nothing seems to be working. During the build, it goes all the way up until it seems to open an empty scene, then directly fails.

1 Like

+1
Same here. Still appeared in the 2022 betas.

More maybe helpful for the Unity Team at the old thread (seems not seen by the unity yet?):

Still happening in the 2022.2 release sadly

Are we the only ones with this problem?

Finally took the time to investigate this properly today and do some testing by removing packages one by one.
The Entities package was the culprit in our case. We were on 0.51 with Unity 2021.3.8 previously.
Updating to 2022.x and Entities 1.x would always prevent build (but playing in editor was ok).

Removed the Entities package entirely and now it builds and the ‘globalgamemanagers.asset’ issue is gone.
We were kind of lucky that we weren’t actually using Entities at all (only jobs and burst).

So I won’t be investigating any further.
The only solution would seem to be for you to also start removing packages one by one until it builds.
And then proceed from there :confused: Hopefuly it is something that you can resolve by yourself, or able to submit a formal bug report. Or post in the part of the forum specific to the offending package.
That error just seems like a case of Unity not being verbose/precise enough about what’s actually causing the issue.

Good luck :confused:

EDIT: PS: I also updated to 2022.2.5 first, with which I got a persistent crash after a 10-15 seconds of active gameplay, crash logs point to VFX graph (logs might be wrong, didn’t investigate much). I went back to 2022.2.2 and all is fine.

So maybe steer clear of 2022.2.5 for now I guess? Hope you work it out.