Unity has been incredibly unstable for me the last few weeks. This is on three different machines (all running Mavericks) - a Mid-2012 Retina MacBook Pro, a Mid-2010 Mac Pro, and a Late-2013 Mac Pro with 16, 32, and 64 gigs of RAM respectively. The first has Intel discrete graphics and an Nvidia mobile GPU, the latter two both have ATI GPUs (ATI Radeon 5870 in the Mid-2010, and dual ATI FirePro D700s in the late 2013).
Switching platforms or pulling a new version from repo triggers an import that takes a long time. It’s a relatively large project, but not large enough to justify the sheer length of this (often 45 minutes or an hour even on the new Mac Pro, even longer on the other two). That was a limitation I could live with, but for the last few weeks, the projects have been crashing a lot during this process and when they crash, the project then usually continues to crash on open.
I am able to get around this problem with a fresh repository pull and reducing all textures to half size (4k maps became 2k, 2k became 1k, etc.) That’s not a long term solution, but at least it allowed me to open the project. Even once the project is open, Unity has been very prone to crashing, but I’m at least able to work.
But now, I’m really stuck because I can’t do a light bake without getting a fatal out of memory error. The error happens in Unity when it goes to import the light maps, not in Beast.
The error I get, both with the texture import and with
1/25/14 12:48:20.292 PM Unity[54389]: Unity(54389,0xa0fc91a8) malloc: *** mach_vm_map(size=218103808) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Despite the errors, Unity’s heap never goes above 2.7Gb and the machine hasn’t used a single byte of swap. Activity Monitor shows no memory pressure at all.
I’m pulling my hair out. I’ve got a presentation involving this project next week and I’ve spent the last week and a half at an absolute standstill. I’m staring down a presentation I can’t prepare for. Since this is an iOS project, it relies heavily on light maps, so going with realtime lighting isn’t an option, and I haven’t gotten any response yet from my bug reports.
If anyone has any idea how I might be able to work around this and get my light maps baked, I’d be tremendously appreciative. I’m quite literally almost ready to ditch Unity and throw away months of work because of just how horrible the last few weeks have been.
