Bug 15646 - XA two screen application fails with Memory error.
Summary: XA two screen application fails with Memory error.
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.10.1
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-10-24 06:29 UTC by Prashant Cholachagudda
Modified: 2013-10-24 11:39 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
gref and gc log (3.52 MB, text/plain)
2013-10-24 06:29 UTC, Prashant Cholachagudda
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Prashant Cholachagudda 2013-10-24 06:29:22 UTC
Created attachment 5229 [details]
gref and gc log

A two screen Xamarin.Android fails with Memory error, the app contains about 2mb of bitmaps and uses up 40mb of memory.
Comment 2 Jonathan Pryor 2013-10-24 11:39:37 UTC
The application allocates 41 Android.Graphics.Bitmap instances and doesn't Dispose() (or otherwise collect) any of them. This is why so much memory is used.

The fix: Help the GC. Dispose of your Bitmap temporaries.

http://docs.xamarin.com/guides/android/advanced_topics/garbage_collection/#Helping_the_GC