-1

For an analysis, I need to know what the term VM means in the dreaded exception:

java.lang.OutofMemoryError: bitmap size exceeds VM budget

This error is thrown when an application is running out of memory caused by a bitmap loading (not efficiently).

Galabyca
  • 153
  • 1
  • 14

1 Answers1

3

Java code doesn't actually run on the hardware itself. Compiled Java bytecode runs on the JVM (Java Virtual Machine). The error you've encountered is telling you that the virtual machine it is running on has run out of memory.

As a solution to the problem, your best bet is to make sure that you're deallocating any images or large pieces of data you're using when you're done.

See: java.lang.OutOfMemoryError: bitmap size exceeds VM budget - Android

Community
  • 1
  • 1
9y7h0n
  • 326
  • 1
  • 8