Android Question Compiling debugger engine code. Error (The system is out of resources.)

pesquera

Active Member
Licensed User
Longtime User
Hi, I have an issue when compiling on debug mode.. only in debug mode

The log:
B4X:
B4A version: 5.80
Parsing code.    (0.60s)
Compiling code.    (1.01s)
Compiling layouts code.    (0.01s)
Generating R file.    (0.77s)
Compiling debugger engine code.    Error
javac 1.8.0_45
The system is out of resources.
Consult the following stack trace for details.
java.lang.StackOverflowError
    at com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:566)
    at com.sun.tools.javac.parser.Scanner.nextToken(Scanner.java:115)
    at com.sun.tools.javac.parser.JavacParser.nextToken(JavacParser.java:301)
    at com.sun.tools.javac.parser.JavacParser.literal(JavacParser.java:759)
    at com.sun.tools.javac.parser.JavacParser.literal(JavacParser.java:659)
    at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1157)
    at com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:909)
    at com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:880)
    at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:836)
    at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:816)
    at com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:779)
    at com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1779)
    at com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1794)
    at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1255)
    at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1123)
    at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1114)
    at com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:909)
    at com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:880)
    at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:836)
    at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:816)
    at com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:779)
    at com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1782)
    at com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1794)
    at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1255)
    at com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:909)
    at com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:880)
    at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:836)
    at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:816)
    at com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:779)
    at com.sun.tools.javac.parser.JavacParser.parExpression(JavacParser.java:2260)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2444)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2298)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2269)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2283)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2441)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2317)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2449)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2298)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2269)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2283)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2441)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2317)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2449)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2298)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2269)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2283)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2441)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2317)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2449)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2298)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2269)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2283)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2441)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2317)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2449)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2298)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2269)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2283)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2441)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2317)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2449)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2298)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2269)
    at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2283)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2441)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
    at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2317)
    at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2449)
    at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2352)
...
 

pesquera

Active Member
Licensed User
Longtime User
Thanks Erel
Done, but now the error was changed:
B4X:
B4A version: 5.80
Parsing code.    (0.33s)
Compiling code.    (0.84s)
Compiling layouts code.    (0.01s)
Generating R file.    (0.26s)
Compiling debugger engine code.    Error

Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap

Edit: tried up MaxRamForDex=3072 without luck.. what is the max value?
 
Last edited:
Upvote 0
Top