Android Question B4A Latest version Taking Huge time to compile

sasidhar

Active Member
Licensed User
Longtime User
Hi,

I have recently upgraded to B4A v.5.8. Earlier in 3.x i used to compile same project in less than 15 secs.
but now in new version unable to compile the project says out of memory. I am using same laptop with same config. please guide me, i am new to latest version.

Error while compiling


B4A version: 5.80
Parsing code. (0.07s)
Compiling code. (0.21s)
Compiling layouts code. (0.15s)
Generating R file. (1.15s)
Compiling generated Java code. (7.32s)
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.util.IntList.<init>(IntList.java:75)
at com.android.dx.util.ListIntSet.<init>(ListIntSet.java:33)
at com.android.dx.ssa.SetFactory.makeLivenessSet(SetFactory.java:91)
at com.android.dx.ssa.SsaBasicBlock.addLiveOut(SsaBasicBlock.java:792)
at com.android.dx.ssa.back.LivenessAnalyzer.liveOutAtBlock(LivenessAnalyzer.java:199)
at com.android.dx.ssa.back.LivenessAnalyzer.handleTailRecursion(LivenessAnalyzer.java:141)
at com.android.dx.ssa.back.LivenessAnalyzer.run(LivenessAnalyzer.java:188)
at com.android.dx.ssa.back.LivenessAnalyzer.constructInterferenceGraph(LivenessAnalyzer.java:93)
at com.android.dx.ssa.back.SsaToRop.<init>(SsaToRop.java:82)
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:613)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
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:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
thanks
 

KMatle

Expert
Licensed User
Longtime User
See here https://www.b4x.com/android/forum/t...zed-dex-error-need-help-pls.10428/#post-58036

By the way: If you use the search function with "java.lang.OutOfMemoryError: GC overhead limit exceeded" you'll find a lot of threads with solutions :D

The title is irritating:

B4X:
Parsing code. (0.07s)
Compiling code. (0.21s)
Compiling layouts code. (0.15s)
Generating R file. (1.15s)
Compiling generated Java code. (7.32s)

It's just 9 seconds....
 
Upvote 0
Top