Bug? Rapid debugger crash

HotShoe

Well-Known Member
Licensed User
Longtime User
I've started playing with the rapid debugger finally. On a large project it crashes with the following errors:

LogCat connected to: emulator-5554
--------- beginning of /dev/log/system


--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **

Error occurred on line: 503 (main)
java.nio.BufferUnderflowException
at java.nio.DirectByteBuffer.getInt(DirectByteBuffer.java:152)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.ReadInt(RandomAccessFile.java:140)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readHelper(RandomAccessFile.java:375)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.ReadObject(RandomAccessFile.java:364)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:485)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:229)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:174)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at com.mlsoft.VirtualDyno.main.afterFirstLayout(main.java:98)
at com.mlsoft.VirtualDyno.main.access$100(main.java:16)
at com.mlsoft.VirtualDyno.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
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:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:592)
at dalvik.system.NativeStart.main(Native Method)

Error occurred on line: 509 (main)
java.lang.NullPointerException
at anywheresoftware.b4a.shell.Shell.setField(Shell.java:430)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:244)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:174)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at com.mlsoft.VirtualDyno.main.afterFirstLayout(main.java:98)
at com.mlsoft.VirtualDyno.main.access$100(main.java:16)
at com.mlsoft.VirtualDyno.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
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:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:592)
at dalvik.system.NativeStart.main(Native Method)

Error occurred on line: 509 (main)
java.lang.RuntimeException: Unexpected command: -31
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:279)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:174)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at com.mlsoft.VirtualDyno.main.afterFirstLayout(main.java:98)
at com.mlsoft.VirtualDyno.main.access$100(main.java:16)
at com.mlsoft.VirtualDyno.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
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:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:592)
at dalvik.system.NativeStart.main(Native Method)

java.lang.OutOfMemoryError
at anywheresoftware.b4a.shell.ShellConnector.readObject(ShellConnector.java:275)
at anywheresoftware.b4a.shell.ShellConnector.readList(ShellConnector.java:220)
at anywheresoftware.b4a.shell.Shell.fillHtSubs(Shell.java:361)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:250)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:174)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at com.mlsoft.VirtualDyno.main.afterFirstLayout(main.java:98)
at com.mlsoft.VirtualDyno.main.access$100(main.java:16)
at com.mlsoft.VirtualDyno.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
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:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:592)
at dalvik.system.NativeStart.main(Native Method)


This does not happen in any other mode. The main activity is about 6500 lines.

--- Jem
 
Top