Android Question Debug Enable Create Service

Jhonn

Member
B4A 10.2
JAVA 11

Release works properly in real device and emulator, but debug log this:

Registro conectado a: 0123456789ABCDEF
--------- beginning of system
--------- beginning of main
java.lang.RuntimeException: Unable to create service com.magussoft.ludustriumphorum.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:3263)
at android.app.ActivityThread.-wrap5(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1617)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
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:92)
at com.magussoft.ludustriumphorum.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3253)
... 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
 

Jhonn

Member
Fail:

1602958400521.png
I

Work:
1602958565543.png


B4A Versión: 10.2
Java Versión: 11
Parseando código. (0.00s)
Building folders structure. (0.19s)
Compilando código. (0.27s)
Compilado códigos de diseños. (0.14s)
Organizando librerías. (0.00s)
(AndroidX SDK)
Generando el fichero R. (0.41s)
Compilando el código Java generado. (3.04s)
Convirtiendo byte code a dex optimizado. (1.31s)
Empaquetando ficheros. (0.47s)
Copiando los recursos de librerias (0.00s)
Firmando fichero de paquete (clave de depuración) (1.64s)
ZipAlign file. (0.07s)
Instalando archivo al dispositivo. (5.35s)
Device serial: 0123456789ABCDEF
*** Legacy debugger is deprecated. ***
It is recommended to switch to the default debugger (Tools - IDE Options).
Completado con éxito

i used b4a example and running change "Legacy Debugger" but logs warning "is deprecated", when changed againt not works! How to fixed it?
 

Jhonn

Member
Thanks for answer!

If with all the projects I was using it normally until that error appeared. I even used the example project from the ide and tried and it didn't work for me either. I have checked antivirus but it shows no b4a related issues. What did give me problems was adb.exe not downloading from memory. Now it has worked again for me sometimes I get the error when the operating system crashes with the Android emulator open, could it be out of memory?
 
Top