#It s also weird because it says ``Error
1 messages · Page 1 of 1 (latest)
Is that the whole log?
It also mentions UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
I can post the entire editor log, but yes, that are all the errors I get pertaining to the build
During a build all the global project settings are packed together (the ones under <project>/ProjectSettings)
Perhaps one of them is corrupt and causing the build pipeline that creates the global asset unioning them is failing
You could attempt clearing them and adding them back half at a time to narrow down if one of them is failing you
I'll try, but I don't see how that can be when I can sometimes build after re-opening the editor
You can sometimes complete a player build, or sometimes enter playmode but player builds always fail?
I can sometimes complete a player build
huh
everything in the editor works fine
But once it has failed, it will seemingly keep failing until I do some random action, like reopening the editor, deleting library, etc
If I then reopen the editor, and immediately build, it will very rarely work
Would be interesting if you clone the ProjectSettings when it works and compare it to when it fails
This never happened on 2021.3.8, so I'm guessing it has to do with the update
I'll try copying them when it works, and diff against when it fails
Is that what globalgamemanagers.asset is? Just all of those assets combined?
Quite possibly. This problem would be inside Unity itself (If something on your end isn't trying to manipulating/add settings etc...)
That is my understanding from some digging.
I'm not doing anything fancy with build settings
I can also see someone in the past has had a similar issue but it was caused by a third-party lib attempting and failing to write out a configuration asset
The sometimes nature of your problem is very suspicious. So if nothing stands out from comparing when it works vs fails, the best thing to do would be to Report a Bug and include your project (or subset) so the build pipeline team can take a look as they would be very interested
I'll try messing around with the ProjectSettings and seeing if resetting them helps, I'll send a message in this thread if I figure anything out. Thanks for the help
Sounds good.
No problemo, sorry I don't have anything more tangible atm
No worries, things like these can be nightmarish to figure out...
After deleting the entire ProjectSettings folder and manually setting the few settings I use, it seems to now build correctly. I have no idea what the issue was. Version control does show me a lot of changes on the files that were in the ProjectSettings directory before though.
Thanks for helping me with this, it was supremely frustrating!
Awesome!
If you still have the bad files, I'd recommend still logging a bug so the pipeline team at a minimum can improve the error reporting for this
Sure thing. This is just a hunch, but maybe this was also related to the pre-splash crash bug that I sometimes had, since I now have a seemingly new version of the splash screen