I am having a critical error when loading a Unity .swf that is greater than ~17mb. This is the error:
Error: Error #1000: The system is out of memory.
at flash.utils::ByteArray/set length()
at com.unity::SerializedFileContainer/CopyFilesToNativeMem()
at com.unity::UnityNative$/Native_Init()
at com.unity::UnityContentInternal/initNativeEnvironment()
at com.unity::UnityContent/onFrameInitStep()
I get this error when I embed my assets in the Unity .swf and load it or if I load the assets remotely via assetBundles. I also get this error whether I load the Unity .swf with a standard Flex SWFLoader or the sanctioned unityContentLoader as a part of the embedding.swc provided by Unity. I do not believe it is a Unity core issue because when I test the assets in Unity everything is fine. So my theory is it is a problem with either the Unity .swf file being generated or the loading process provided by the embeddingapi.swc. Another theory is that the allotted memory for ByteArray is being exceeded but I do not know.
I have plenty of available memory on this machine and I have searched all day on the internet and these forums for any guidance. I have found a few other references to this issue, but no real solutions were provided.
This is a critical issue for us as we have a deliverable coming up and a few assets that we cannot get below the file size threshold that seems to be causing this problem
Any guidance you can provide will be greatly appreciated.
Thanks!
Brad
↧