Corona build process - 'out of system memory' error - OS X

Hi Coronaites,

Last night for the first time I received an  ‘out of system memory’ error whilst building for device (iOS). I then reset my system to start fresh. Upon restart the boot loader wouldn’t recognise OS X and booted straight into Windows 10 (bootcamp).

After holding my breath and proceeding to try some troubleshooting methods OS X came back alive via resetting the NVRAM (CMD-OPT-P-R) multiple times on startup and I also verified disk in OS X recovery mode. (disk was fine)

Since then I have monitored Corona and it regularly uses nearly all of my systems memory(15/16 gb) when building for device and the CPU usage also reports higher percentage than is actually possible. 

Corona Version 2016.2824 (2016.2.6)

OSX Version 10.10.5 (Yosemite) 

RAM 16 GB 1600 MHz DDR3

Processor 2.8 GHz Intel Core i7

I am a little concerned with Corona using such a serious amount of my systems memory and resources when building for device. Interested in other peoples experiences with this.

@simon: make sure your project folder doesn’t include any folders or files not needed for your app. I once accidentally made a test case by placing a main.lua in my deskop folder, where I have other folders with many gigs of data. When I built for device, Corona attempted to bundle all those folders/files into the build. That may not be your issue, but it’s worth checking, especially if Corona only hogs resources when you build for device.

Hey @schroederapps I definitely am not building in the same directory as and other non-related data. On a related note however a few weeks back I was having a CPU architecture error come up when transferring an app to device. I have since found that I had some random search results that I had CTRL/CMD-S accidently in Sublime included in my build folders and this was causing the error. If I changed the app name with the random file in the build still the error would go away. I spent way to long on this :stuck_out_tongue:

@simon: make sure your project folder doesn’t include any folders or files not needed for your app. I once accidentally made a test case by placing a main.lua in my deskop folder, where I have other folders with many gigs of data. When I built for device, Corona attempted to bundle all those folders/files into the build. That may not be your issue, but it’s worth checking, especially if Corona only hogs resources when you build for device.

Hey @schroederapps I definitely am not building in the same directory as and other non-related data. On a related note however a few weeks back I was having a CPU architecture error come up when transferring an app to device. I have since found that I had some random search results that I had CTRL/CMD-S accidently in Sublime included in my build folders and this was causing the error. If I changed the app name with the random file in the build still the error would go away. I spent way to long on this :stuck_out_tongue: