Android Question [B4A] Strange problem with debugger

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!

I have a problem since using v10 of B4A: while I'm working in debug mode, every time I add or remove a line of code, stop the runtime and press run again, the debugger gives errors from untouched and previously working lines. If I do Tools -> Clean Project and run again, it's working fine.
Does anyone have the same problem or I'm missing something?

Thank you in advance.
 

vfafou

Well-Known Member
Licensed User
Longtime User
This is an example.
Every time I change something in the code, I see another error of other untouched lines of my code.
B4X:
Error occurred on line: 83 (B4XMainPage)
java.lang.RuntimeException: Field: _logindata not found in: java.lang.Object
    at anywheresoftware.b4a.shell.Shell$FieldCache.getField(Shell.java:923)
    at anywheresoftware.b4a.shell.Shell.getField(Shell.java:697)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:360)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1760)
    at android.os.Handler.handleCallback(Handler.java:900)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:219)
    at android.app.ActivityThread.main(ActivityThread.java:8347)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
Not a common issue. You will need to make some tests. Does it happen in all your projects? Try to temporary disable the antivirus.
Hello Erel!
I have the antivirus shields permanently off.
I have another app without B4XPages implementation and I haven't have this problem!
May something relevant to B4XPages confuses debugger?
One more problem noticed is that when I change something in a line of code or I add a line in debug mode and hot compile the app, when I do something at the UI the app crashes. If I clean project and run again in debug mode it's OK!
Anyone having the same problem?
 
Upvote 0

Paolo Venuta

Member
Licensed User
This is an example.
Every time I change something in the code, I see another error of other untouched lines of my code.
B4X:
Error occurred on line: 83 (B4XMainPage)
java.lang.RuntimeException: Field: _logindata not found in: java.lang.Object
    at anywheresoftware.b4a.shell.Shell$FieldCache.getField(Shell.java:923)
    at anywheresoftware.b4a.shell.Shell.getField(Shell.java:697)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:360)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1760)
    at android.os.Handler.handleCallback(Handler.java:900)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:219)
    at android.app.ActivityThread.main(ActivityThread.java:8347)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
uninstall the app and reinstall
 
Upvote 0
Top