B4J Question [BANano] [SOLVED] out of Memory heap ... at java.lang.StringBuilder.toString(StringBuilder.java:407)


Licensed User
Longtime User
Hi there

Whilst I am able to solve this by adding:

'#VirtualMachineArgs: -Xms1024m -Xmx1024m

As per discussed in this article, https://www.b4x.com/android/forum/threads/parsing-huge-text-files.34923/

I'm just curious as to what could be the underlying cause. As it seems to be related to the StringBuilder (perhaps internal to B4J or not), is it possible to perhaps in a future version to indicate maybe via Transpiler Options to report StringBuilders that exceed a particular length?

I am building HTML first using abstract designers and perhaps due to my latest updates I could have some some ish. Thing is the library compiles. Any ideas of what could be the cause?


PS: The error only happens in DEBUG mode.


  • BANanoLog.txt
    14 KB · Views: 61