I've updated from B4A V11.5 to V12. Even after a total uninstall/reinstall, I have an issue where the debugger won't connect to anything in debug mode - existing projects or downloaded samples. If I download and run the three pages example I get the waiting for debugger toast, then the app just closes without doing anything else.
In release mode, the app downloads and starts as expected (and log messages work too when enabled).
If I use B4A Bridge, I get log messages saying 'beginning of main', 'beginning of system' and that's it. However, the USB debugger shows the same log messages with exceptions:
This crash was from the example code in the link. Others projects behave the same.
I've tried multiple devices - an elderly Galaxy S5 on Android 6 and a OnePlus 8 on Android 13.
I've had a hunt around the forum to see if others have had the issue, but it's only me :-(
Does anyone have any suggestions?
Thanks in advance!
V
In release mode, the app downloads and starts as expected (and log messages work too when enabled).
If I use B4A Bridge, I get log messages saying 'beginning of main', 'beginning of system' and that's it. However, the USB debugger shows the same log messages with exceptions:
B4X:
Logger connected to: 44669ae6
--------- beginning of main
--------- beginning of system
java.lang.RuntimeException: Unable to create service b4a.example.starter: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.OutputStream.write(byte[])' on a null object reference
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3817)
at android.app.ActivityThread.access$2100(ActivityThread.java:221)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1882)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.OutputStream.write(byte[])' on a null object reference
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:164)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:102)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:94)
at b4a.example.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3807)
... 8 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.OutputStream.write(byte[])' on a null object reference
at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:61)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:124)
... 12 more
This crash was from the example code in the link. Others projects behave the same.
I've tried multiple devices - an elderly Galaxy S5 on Android 6 and a OnePlus 8 on Android 13.
I've had a hunt around the forum to see if others have had the issue, but it's only me :-(
Does anyone have any suggestions?
Thanks in advance!
V