Ok, this is just guesswork at the moment. I’m working my way around to proving this is true but here is my problem and theory.
On Android builds my app is crashing on boot trying to allocate an insanely large block of memory. We’re using Zenject and the issue seems to happen when calling this line:
var prefabs = Resources.LoadAll(ProjectContextResourcePath, typeof(GameObject));
The file it’s loading is a prefab with a ProjectInstaller component on it. In my Installer, I’ve recently added this line
[SerializeField] private AssetReference[] _viewModels;
I haven’t managed to prove it yet but I feel like this is causing my app to crash. Is anyone aware of any issues like this already?