Bug 5971 - Jetboy throws OutOfMemory exception after pressing play on x86 emulator (with increased heap size already)
Summary: Jetboy throws OutOfMemory exception after pressing play on x86 emulator (with...
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-07-03 17:46 UTC by PJ
Modified: 2012-07-09 16:11 UTC (History)
5 users (show)

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

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:

Description PJ 2012-07-03 17:46:29 UTC
Application crashes after clicking on Play button throwing Unhandled exception.

Steps to reproduce this issue:
1. Open Jet boy.
2. Set target framework to 2.3
3. Debug/run the application

Actual result:
Application crashed throwing unhandled exception after clicking on Play buton.

Expected result:
Application should play properly after click on Play button.

Supplement info:

Mac 10.7.3
MD RC3 + MFA 4.2.4 RC2

Debug Vs Release: This is happening on bot debug and release.

App info:

Device info:
Emulator(x86) API 10 (with increased heap size, 128mb)

Regression status:
REGRESSION: this is not happening with MD and MFA 4.2.3

It looked like this issue might have been due to the heap size, but increasing that to 128mb didn't make a difference (this one is from that emulator with increased heap). Is there a different setting to achieve this with the x86 emulator?
Comment 1 Atsushi Eno 2012-07-04 13:42:21 UTC
I could successfully run it on linux and master. Mac specific or 4.2.4 specific or environment specific?
Comment 2 PJ 2012-07-04 13:58:34 UTC
Nischal - can we get the bounds of this issue OS-wise?

Atsushi - in the meantime, try the environment reported if possible.
Comment 3 Nischal 2012-07-05 06:10:48 UTC
For error details please view the screencast: http://screencast.com/t/ZyzAazhnWbvt
Comment 4 Nischal 2012-07-05 10:19:52 UTC
This bug is mac-specific
Comment 5 Miguel de Icaza [MSFT] 2012-07-09 12:47:11 UTC
Is this a regression from the previous release?
Comment 6 Jonathan Pryor 2012-07-09 15:49:49 UTC
Not a regression; the same issue happens with Mono for Android 4.2.3 on Android 2.3.3/x86.
Comment 7 Jonathan Pryor 2012-07-09 16:11:50 UTC
It's a JetBoy bug, not a Mono for Android bug [0]: Bitmaps live "too long." Shortening Bitmap lifetime allows the app to run:


[0] Alternatively, it's a GC issue in that the GC doesn't run frequently enough, but let's not go down that particular rat-hole...