Issue : Not enough memory: bitmap size exceeds VM budget

You must Login before you can answer or comment on any questions.

I am experiencing this issue when I run the application

[ERROR][TiDrawableReference( 262)] (main) [28,1518017] Unable to load bitmap. Not enough memory: bitmap size exceeds VM budget [ERROR][TiDrawableReference( 262)] java.lang.OutOfMemoryError: bitmap size exceeds VM budget

3 Answers

Accepted Answer

Try to add this 2 lines in tiapp.xml, make a clean and compile again.

<property name="ti.android.threadstacksize" type="int">131072</property>
<property name="ti.android.httpclient.maxbuffersize" type="int">131072</property>

Try Dan solution first but that is usually an android emulator error its because you are using images that are too big and they cause the emulator to crash. Try testing on a device and the error should go away.

Another reason may be this one

http://developer.appcelerator.com/question/139346/is-it-mandatory-to-close-a-window-after-navigating-to-another-window#answer-242658

Your Answer

Think you can help? Login to answer this question!