Unable to load bitmap. Not enough memory: bitmap size exceeds VM budget
Hey guys,
after using my Application for about 2 min's, images start disappearing, and eventually the Application crashes.
through the Titanium log, i am getting this error.
[TRACE] E/TitaniumUIHelper( 221): (main) [692,26213] Unable to load bitmap. Not enough memory: bitmap size exceeds VM budget.
Anyone know how I can combat this error?
8 Answers
-
Accepted Answer
you can find tutorials for compiling the code yourself here at the bottom of the page:
http://developer.appcelerator.com/doc/mobile/guides
-
after 2 years, titanium sdk 3.1.2 same problem, somebody, fix it, please !
-
This is due to memory issue with emulator. The simplest solution is to add below lines in tiapp.xml file
<property name="ti.android.threadstacksize" type="int">131072</property> <property name="ti.android.httpclient.maxbuffersize" type="int">131072</property>
-
have same problem titaniun sdk 3.1.2
-
I have the same problem on mac os x snow leopard. I really need an answer on this please !
-
Using DDMS i found that Memory allocated to application is get increases as i am navigating screen by screen and after some time it crash application with force close message/Fail to load resources. Even i have remove all objects from window and after that assign null to it. i.e
window.remove(viewname);
viewname=null;
window.close();
window=null.
Please help Me OUT. -
Using DDMS i found that Memory allocated to application is get increases as i am navigating screen by screen and after some time it crash application with force close message/Fail to load resources. Even i have remove all objects from window and after that assign null to it. i.e window.remove(viewname); viewname=null; window.close(); window=null. Please help Me OUT.
-
this is a known bug in 1.3.2, precisely it's a memory leak coming from imageviews. wait for the next offical release or compile head from github, and the bug should no longer appear