Sunday, April 8, 2012

Failed to allocate memory: 8


From today, when I tried to run an app in NetBeans on a 2.3.3 Android platform, it shows me that:




Failed to allocate memory: 8

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.



and the Emulator doesn't want to start.



This is for the first time when I see it, and google has no asnwers for this, I tried even with 2 versions of NetBeans 6.9.1 and 7.0.1, still the same error.


Source: Tips4all

4 comments:

  1. I figured it out. The problem was in the amount of ram I had specified for the virtual machine, and it was 1024MB, now I have 512MB and it is ok, now I need to find how to improve this amount of ram, 512 is not so much, and the machine is a little bit laggy.

    ReplyDelete
  2. I have 16 GB and a 3.4 Ghz quad core proc in my machine. The virtual machine won't let me run it at 1024 either. I did bump it up to 878MB because it failed at 880 with the same message. This seems to be the most ram I can allocate to the emulator. It is still slow but I'm assuming it is better than 512MB.

    ReplyDelete
  3. I had the same problem starting the emulator via eclipse. The same avd machine normally works, just today maybe had her days... Anyway starting the emulator via avd manager worked. And probably tomorrow will work again via eclipse.

    ReplyDelete
  4. I realized the solution to this problem stems from Eclipse memory allocation when you run the application in normal mode. I just checked the "Run as Administrator" box under the shortcut properties for Eclipse and now it allows me to allocate more memory for the AVD.

    Hope that helps.

    ReplyDelete