i am building mobile applications using Mosyc , a open source IDE that allows you to create mobile app in HTML 5 and it compiles those apps into native.
i got an error
malloc failed you most likely ran out of heap memory
and i resolved it the following Go to project properties
Expand MoSync Project in the menu at the left side of opened window
Select Build Setting
Select Compiler Flags tab
and here you can change the memory setting as per your project requirements