Bug 21870 - Google android map api v2 and Heap size error
Summary: Google android map api v2 and Heap size error
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.16.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2014-08-06 08:52 UTC by Nickolas
Modified: 2014-08-06 10:39 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED INVALID

Description Nickolas 2014-08-06 08:52:30 UTC
Description of Problem:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Tool exited with code: 3. Output: 
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
	at com.android.dx.util.IntList.<init>(IntList.java:87)
	at com.android.dx.rop.code.RopMethod.calcPredecessors(RopMethod.java:173)
	at com.android.dx.rop.code.RopMethod.labelToPredecessors(RopMethod.java:94)
	at com.android.dx.ssa.back.IdenticalBlockCombiner.process(IdenticalBlockCombiner.java:69)
	at com.android.dx.ssa.back.SsaToRop.convert(SsaToRop.java:125)
	at com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:69)
	at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:101)
	at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
	at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:299)
	at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
	at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
	at com.android.dx.command.dexer.Main.processClass(Main.java:682)
	at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
	at com.android.dx.command.dexer.Main.access$600(Main.java:78)
	at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
	at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
	at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
	at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
	at com.android.dx.command.dexer.Main.processOne(Main.java:596)
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
	at com.android.dx.command.dexer.Main.run(Main.java:230)
	at com.android.dx.command.dexer.Main.main(Main.java:199)
	at com.android.dx.command.Main.main(Main.java:103)
 (GoogleMapApi)


Steps to reproduce the problem:
1. Create empty project with Google Play Services (KitKat)
2. And map fragment and run


Results:
when I try to run it give me this error. But when i add more heap space 1G it work perfect , it write what i`m doing ?
Comment 1 Jonathan Pryor 2014-08-06 10:39:51 UTC
> when i add more heap space 1G it work perfect , it write what i`m doing ?

Yes, you are correct in doing that.