We had something similar. Increasing memory allowances (heap, permspace, 
etc) didn't work.

Googling issues with G.P. Services 4.4, we found that its library 
introduces many methods into your app. In our case, it seems the "64K 
methods" dex-limit was hit.
Using ProGuard, not to obfuscate but just to strip unused methods, got rid 
of this issue.


On Wednesday, June 25, 2014 5:27:09 AM UTC-4, Diego Costantini wrote:
>
> I am getting the following during dexing:
>
> Exception in thread "pool-1-thread-1" java.lang.OutOfMemoryError: GC 
> overhead limit exceeded
>           at java.util.BitSet.clone(BitSet.java:1091)
>           at 
> com.android.dx.ssa.SsaConverter.edgeSplitSuccessors(SsaConverter.java:242)
>           at 
> com.android.dx.ssa.SsaConverter.edgeSplit(SsaConverter.java:136)
>           at 
> com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:47)
>           at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98)
>           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$ParallelProcessor.run(Main.java:1550)
>           at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>           at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>           at java.lang.Thread.run(Thread.java:722)
>
>
> It happens on a branch which was working before AS 0.6.x and plugin 0.11.+
> I can see that it worked on plugin 0.9.+ and build tools 19.0.3 (if very 
> necessary for the sake of the bug/regression, I could try to install an 
> older version of AS to confirm, because there is all a series of changes to 
> make to gradle to update the branch to work on current AS)
> Also, sometimes it continues and installs the app even with that error.
>
> <w:LsdException Locked="false" Pr
>
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to