title: Android Fatal Signal 11 from XML
body: <p>I am creating an Android app and I have yet to run out of memory until just now.  The part that is confusing is it was not a way I would expect to run out of memory.</p>
  
  <p>I simply added a new Linear Layout to a layout xml file.  It had a background of an image that was 40kb large.  The other images that were loaded were approximately 12kb with the background being much larger at 120kb.  When this image was loaded I would receive a Fatal Signal 11 on runtime.  If I removed the background from the layout it would work fine.  I then changed the image to be much smaller, it was (2000x600) before so now it is 14kb.  It now works fine.  It is clear that the extra 26kb was causing a problem...</p>
  
  <p>What kind of precautions should I take to ensure this doesn't happen again.  Obviously I would like quality images and the 2000x600 might be excessive as it's an app for a phone but what guidelines should I follow?</p>
  
  <p>Is there a memory usage cap that can be extended or that I should look to stay under?  Also, if I loaded many images on a scrollview will this cause the app to crash?  I have had many images loaded at once but have never had it crash before, I'm just confused as to the error being caused by very little memory usage.  (In todays terms at least.)</p>
  
  <p>Regards,</p>
  
  <p>Jake</p>