Android Question The program compiles for a very long time and freezes without error messages.

Darsiar

Member
Hello!
The program compiles for a very long time (more than 120 seconds), and then the compilation freezes without a clear error messages.
The open compilation window weighs.

Message:
B4A Версия: 9.80
Java Версия: 8
Анализ кода. (0.01s)
Building folders structure. (0.02s)
Компиляция кода. (0.13s)
Компиляция кода макетов. (0.00s)
Организация библиотек. (0.00s)
(Android Support Library)
Генерирование файла R. (0.00s)
Компиляция кода для работы отладчика. (0.00s)
Компиляция сгенерированного кода Java. (0.00s)
Преобразование байтового кода - оптимизированный dex. Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.io.DataInputStream.<init>(DataInputStream.java:59)
at com.android.dx.util.ByteArray$MyDataInputStream.<init>(ByteArray.java:356)
at com.android.dx.util.ByteArray.makeDataInputStream(ByteArray.java:260)
at com.android.dx.cf.direct.StdAttributeFactory.parseLocalVariables(StdAttributeFactory.java:601)
at com.android.dx.cf.direct.StdAttributeFactory.localVariableTable(StdAttributeFactory.java:553)
at com.android.dx.cf.direct.StdAttributeFactory.parse0(StdAttributeFactory.java:189)
at com.android.dx.cf.direct.AttributeFactory.parse(AttributeFactory.java:96)
at com.android.dx.cf.direct.AttributeListParser.parse(AttributeListParser.java:142)
at com.android.dx.cf.direct.AttributeListParser.parseIfNecessary(AttributeListParser.java:115)
at com.android.dx.cf.direct.AttributeListParser.getList(AttributeListParser.java:106)
at com.android.dx.cf.direct.StdAttributeFactory.code(StdAttributeFactory.java:336)
at com.android.dx.cf.direct.StdAttributeFactory.parse0(StdAttributeFactory.java:150)
at com.android.dx.cf.direct.AttributeFactory.parse(AttributeFactory.java:96)
at com.android.dx.cf.direct.AttributeListParser.parse(AttributeListParser.java:142)
at com.android.dx.cf.direct.AttributeListParser.parseIfNecessary(AttributeListParser.java:115)
at com.android.dx.cf.direct.AttributeListParser.getEndOffset(AttributeListParser.java:96)
at com.android.dx.cf.direct.MemberListParser.parse(MemberListParser.java:213)
at com.android.dx.cf.direct.MemberListParser.parseIfNecessary(MemberListParser.java:108)
at com.android.dx.cf.direct.MethodListParser.getList(MethodListParser.java:54)
at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:565)
at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:420)
at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:402)
at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:253)
at com.android.dx.command.dexer.Main.parseClass(Main.java:851)
at com.android.dx.command.dexer.Main.access$7(Main.java:846)
at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1822)
at com.android.dx.command.dexer.Main.processClass(Main.java:834)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:802)
at com.android.dx.command.dexer.Main.access$3(Main.java:773)
at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1775)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
 
Last edited:

Darsiar

Member
Solved!
By some miracle, they guessed to increase the parameter
in ini file
MaxRamForDex = 1024 ----> MaxRamForDex = 4096

Now it seems to work without hovering))
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…