Bug? optimized dex. Error

deltacode

Member
Licensed User
Longtime User
Hi,

I have been making changes to my project and now when i compile under debug rapid or legacy i get the following error:

B4X:
Convert byte code - optimized dex.      Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: GC overhead limit exceeded
    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.dex.code.RopTranslator.pickOrder(RopTranslator.java:351)
    at com.android.dx.dex.code.RopTranslator.translateAndGetResult(RopTranslator.java:211)
    at com.android.dx.dex.code.RopTranslator.translate(RopTranslator.java:105)
    at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:319)
    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)
    Optimized dexer failed. Switching to Standard dexer.

I can most of the time compile to release but this is making debugging a pain.

Any ideas ?
 
Top