Tronak Member Licensed User Longtime User May 24, 2016 #1 Hello world. My first message on this forum. So far everything was great with B4A. When I installed the version 5.8, I started having an "Out of Memory" error every time I try to run my code in debug mode. This code worked fine with version 5.5. And when I reinstall the older version, the error does not appear. The program runs fine in release mode, and other programs I've created from zero on version 5.8 work fine in debug mode. I don't use pictures or bitmaps apart from a few icons used as images in buttons. Please help me to understand what causes this error. The error I get is: java.lang.OutOfMemoryError at anywheresoftware.b4a.shell.ShellConnector.readList(ShellConnector.java:219) at anywheresoftware.b4a.shell.Shell.getStateAfterUserSub(Shell.java:494) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:402) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) at anywheresoftware.b4a.BA$2.run(BA.java:328) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:175) at android.app.ActivityThread.main(ActivityThread.java:5279) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) at dalvik.system.NativeStart.main(Native Method) java.lang.RuntimeException: java.lang.OutOfMemoryError at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:165) at anywheresoftware.b4a.BA$2.run(BA.java:328) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:175) at android.app.ActivityThread.main(ActivityThread.java:5279) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.OutOfMemoryError at anywheresoftware.b4a.shell.ShellConnector.readList(ShellConnector.java:219) at anywheresoftware.b4a.shell.Shell.getStateAfterUserSub(Shell.java:494) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:402) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) ... 10 more
Hello world. My first message on this forum. So far everything was great with B4A. When I installed the version 5.8, I started having an "Out of Memory" error every time I try to run my code in debug mode. This code worked fine with version 5.5. And when I reinstall the older version, the error does not appear. The program runs fine in release mode, and other programs I've created from zero on version 5.8 work fine in debug mode. I don't use pictures or bitmaps apart from a few icons used as images in buttons. Please help me to understand what causes this error. The error I get is: java.lang.OutOfMemoryError at anywheresoftware.b4a.shell.ShellConnector.readList(ShellConnector.java:219) at anywheresoftware.b4a.shell.Shell.getStateAfterUserSub(Shell.java:494) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:402) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) at anywheresoftware.b4a.BA$2.run(BA.java:328) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:175) at android.app.ActivityThread.main(ActivityThread.java:5279) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) at dalvik.system.NativeStart.main(Native Method) java.lang.RuntimeException: java.lang.OutOfMemoryError at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:165) at anywheresoftware.b4a.BA$2.run(BA.java:328) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:175) at android.app.ActivityThread.main(ActivityThread.java:5279) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.OutOfMemoryError at anywheresoftware.b4a.shell.ShellConnector.readList(ShellConnector.java:219) at anywheresoftware.b4a.shell.Shell.getStateAfterUserSub(Shell.java:494) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:402) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) ... 10 more
Erel B4X founder Staff member Licensed User Longtime User May 24, 2016 #2 You can switch to the legacy debugger. It is available under Tools - IDE Options. Upvote 0
Tronak Member Licensed User Longtime User May 24, 2016 #3 Thank you for answering. Yes, I tried that, and works, but some good features are not available. I found that when I changed the Process Timeout from 60 to 90 sec, it worked fine, and hasn't failed so far. Does that make any sense? Upvote 0
Thank you for answering. Yes, I tried that, and works, but some good features are not available. I found that when I changed the Process Timeout from 60 to 90 sec, it worked fine, and hasn't failed so far. Does that make any sense?
Erel B4X founder Staff member Licensed User Longtime User May 24, 2016 #4 I don't think that it is related. Can you send me the complete project to [email protected] ? Upvote 0