I’m doing an automatic rezise/reimport of texture/sprite in the cloud build.
For some reason, the build fails when handling sprites (textures work fine).
If I run the code in my editor everything works.
Only fails in the cloud.
The clouds builds with Unity 4.6.7f1 (out project has not been migrated to 5 yet)
here is the log:
It looks like you crash during GenerateSpriteOutline() in Assets/Editor/BundleTools/OneClickBuilder.cs What does this do? Does it work on a earlier version? Did it ever work and just failed recently?
GenerateSpriteOutline is not my method, its something internally used by Unity.
It never worked in the cloud but works locally.
ok, what does Assets/Editor/BundleTools/OneClickBuilder.cs do? It does not really look like out of memory, but could you check the peak of the memory during building your project locally, just to make sure you do not run out of memory which would produce a crash?
Basically what I do is this:
- Collecting all image assets in project.
- Changing their ImportSettings to isReadable = true.
- Resizing the image files (also changing sprite rects to fit the new size)
- Create bundles using the resized files.
The peak memory i never above 1GB.
As far as I know, Unity4 (32-bit) has a limit of 4GB.
Does cloud build have a different memory limit?