Android Question App crash on start while using version 8.30 Beta 1

IamTrying

Active Member
Licensed User
Getting following crash error on start:

B4X:
Logger connected to:  HUAWEI MYA-L41
--------- beginning of crash
FATAL EXCEPTION: main
Process: io.t.sms, PID: 27709
java.lang.RuntimeException: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:170)
    at anywheresoftware.b4a.BA$2.run(BA.java:360)
    at android.os.Handler.handleCallback(Handler.java:819)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
Caused by: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
    at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:565)
    at libcore.io.IoBridge.sendto(IoBridge.java:534)
    at java.net.PlainSocketImpl.write(PlainSocketImpl.java:505)
    at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:42)
    at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:271)
    at java.io.BufferedOutputStream.flushInternal(BufferedOutputStream.java:185)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:85)
    at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:62)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:297)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
    ... 8 more
Caused by: android.system.ErrnoException: sendto failed: EBADF (Bad file descriptor)
    at libcore.io.Posix.sendtoBytes(Native Method)
    at libcore.io.Posix.sendto(Posix.java:211)
    at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
    at libcore.io.IoBridge.sendto(IoBridge.java:532)
    ... 18 more
--------- beginning of main
getServiceInstance failed!
getServiceInstance failed!
 

DonManfred

Expert
Licensed User
Longtime User
Hiding your code you are using is a great help for us (ZERO HELP)
 
Upvote 0

IamTrying

Active Member
Licensed User
YES - i get same error on every time i start, In release mode it also crashing. In older version of B4A IDE the app was running but not showing any Log(""); outputs on the IDE.

Right now i retry again but now i am getting something new:

Dg8uQuK.png

5z90PfH.png


B4X:
B4A Version: 8.30 BETA #1
Parsing code.    (0.02s)
Compiling code.    (0.15s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
Generating R file.    (0.11s)
Compiling debugger engine code.    Error
javac 1.8.0_144

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate
# An error report file with more information is saved as:
# C:\Users\tpt\Desktop\github\B4A-NO~1\android\ANDROI~3\Objects\hs_err_pid5308.log
[thread 3804 also had an error]
[thread 12920 also had an error]
#
# Compiler replay data is saved as:
# C:\Users\tpt\Desktop\github\B4A-NO~1\android\ANDROI~3\Objects\replay_pid5308.log
 
Upvote 0

IamTrying

Active Member
Licensed User
Now i am getting following error, on every start.

B4X:
Logger connected to:  HUAWEI MYA-L41
--------- beginning of crash
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 27709
java.lang.RuntimeException: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:170)
    at anywheresoftware.b4a.BA$2.run(BA.java:360)
    at android.os.Handler.handleCallback(Handler.java:819)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
Caused by: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
    at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:565)
    at libcore.io.IoBridge.sendto(IoBridge.java:534)
    at java.net.PlainSocketImpl.write(PlainSocketImpl.java:505)
    at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:42)
    at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:271)
    at java.io.BufferedOutputStream.flushInternal(BufferedOutputStream.java:185)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:85)
    at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:62)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:297)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
    ... 8 more
Caused by: android.system.ErrnoException: sendto failed: EBADF (Bad file descriptor)
    at libcore.io.Posix.sendtoBytes(Native Method)
    at libcore.io.Posix.sendto(Posix.java:211)
    at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
    at libcore.io.IoBridge.sendto(IoBridge.java:532)
    ... 18 more
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 2468
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
    at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:92)
    at anywheresoftware.b4a.objects.NotificationWrapper.setValue(NotificationWrapper.java:122)
    at anywheresoftware.b4a.objects.NotificationWrapper.setSound(NotificationWrapper.java:109)
    at io.tpt.sms.myservice._service_start(myservice.java:488)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at io.tpt.sms.myservice.handleStart(myservice.java:100)
    at io.tpt.sms.myservice.access$000(myservice.java:8)
    at io.tpt.sms.myservice$1.run(myservice.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at io.tpt.sms.myservice.onStartCommand(myservice.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3284)
    at android.app.ActivityThread.access$2200(ActivityThread.java:196)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
    at android.os.Handler.dispatchMessage(Handler.java:111)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 2567
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
    at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:92)
    at anywheresoftware.b4a.objects.NotificationWrapper.setValue(NotificationWrapper.java:122)
    at anywheresoftware.b4a.objects.NotificationWrapper.setSound(NotificationWrapper.java:109)
    at io.tpt.sms.myservice._service_start(myservice.java:488)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at io.tpt.sms.myservice.handleStart(myservice.java:100)
    at io.tpt.sms.myservice.access$000(myservice.java:8)
    at io.tpt.sms.myservice$2.run(myservice.java:80)
    at android.os.Handler.handleCallback(Handler.java:819)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
--------- beginning of main
getServiceInstance failed!
getServiceInstance failed!
getServiceInstance failed!
getServiceInstance failed!
 
Upvote 0

IamTrying

Active Member
Licensed User
Still same crash after updating SDK to `C:\Program Files (x86)\Android\android-sdk\platforms\android-21\android.jar`

3q77s06.png

B4X:
Logger connected to:  HUAWEI MYA-L41
--------- beginning of crash
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 27709
java.lang.RuntimeException: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:170)
    at anywheresoftware.b4a.BA$2.run(BA.java:360)
    at android.os.Handler.handleCallback(Handler.java:819)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
Caused by: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
    at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:565)
    at libcore.io.IoBridge.sendto(IoBridge.java:534)
    at java.net.PlainSocketImpl.write(PlainSocketImpl.java:505)
    at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:42)
    at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:271)
    at java.io.BufferedOutputStream.flushInternal(BufferedOutputStream.java:185)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:85)
    at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:62)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:297)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
    ... 8 more
Caused by: android.system.ErrnoException: sendto failed: EBADF (Bad file descriptor)
    at libcore.io.Posix.sendtoBytes(Native Method)
    at libcore.io.Posix.sendto(Posix.java:211)
    at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
    at libcore.io.IoBridge.sendto(IoBridge.java:532)
    ... 18 more
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 2468
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
    at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:92)
    at anywheresoftware.b4a.objects.NotificationWrapper.setValue(NotificationWrapper.java:122)
    at anywheresoftware.b4a.objects.NotificationWrapper.setSound(NotificationWrapper.java:109)
    at io.tpt.sms.myservice._service_start(myservice.java:488)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at io.tpt.sms.myservice.handleStart(myservice.java:100)
    at io.tpt.sms.myservice.access$000(myservice.java:8)
    at io.tpt.sms.myservice$1.run(myservice.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at io.tpt.sms.myservice.onStartCommand(myservice.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3284)
    at android.app.ActivityThread.access$2200(ActivityThread.java:196)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
    at android.os.Handler.dispatchMessage(Handler.java:111)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 2567
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
    at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:92)
    at anywheresoftware.b4a.objects.NotificationWrapper.setValue(NotificationWrapper.java:122)
    at anywheresoftware.b4a.objects.NotificationWrapper.setSound(NotificationWrapper.java:109)
    at io.tpt.sms.myservice._service_start(myservice.java:488)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at io.tpt.sms.myservice.handleStart(myservice.java:100)
    at io.tpt.sms.myservice.access$000(myservice.java:8)
    at io.tpt.sms.myservice$2.run(myservice.java:80)
    at android.os.Handler.handleCallback(Handler.java:819)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
--------- beginning of main
getServiceInstance failed!
getServiceInstance failed!
 
Upvote 0

IamTrying

Active Member
Licensed User
@Erel:

1. When i have active line Notification1.Notify(1) then it crash on start. But when i comment it out its now running.

B4X:
Sub Service_Create
    Log(">>> Service: Service_Create")
    Notification1.Initialize
    Notification1.Icon = "icon"
    Notification1.Vibrate = True
End Sub

Sub Service_Start (StartingIntent As Intent)
    Log(">>> Service: Service_Start")  
    WS.KeepAlive(True)
  
    Notification1.OnGoingEvent = True
  
    Notification1.Sound = True
    Notification1.Vibrate = True
    Notification1.AutoCancel = False
    'Notification1.Notify(1)
    Notification1.SetInfo("B4a test", Main)
    Service.StartForeground(1, Notification1)  
    'Sleep(2000)  
    Finish  
End Sub

2. But still Log("") is never showing in Logs?
B4X:
#BridgeLogger:true

3. When app is started till running this is shown on the logs:

B4X:
Logger connected to:  HUAWEI MYA-L41
--------- beginning of crash
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 27709
java.lang.RuntimeException: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:170)
    at anywheresoftware.b4a.BA$2.run(BA.java:360)
    at android.os.Handler.handleCallback(Handler.java:819)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
Caused by: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
    at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:565)
    at libcore.io.IoBridge.sendto(IoBridge.java:534)
    at java.net.PlainSocketImpl.write(PlainSocketImpl.java:505)
    at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:42)
    at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:271)
    at java.io.BufferedOutputStream.flushInternal(BufferedOutputStream.java:185)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:85)
    at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:62)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:297)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
    ... 8 more
Caused by: android.system.ErrnoException: sendto failed: EBADF (Bad file descriptor)
    at libcore.io.Posix.sendtoBytes(Native Method)
    at libcore.io.Posix.sendto(Posix.java:211)
    at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
    at libcore.io.IoBridge.sendto(IoBridge.java:532)
    ... 18 more
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 2468
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
    at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:92)
    at anywheresoftware.b4a.objects.NotificationWrapper.setValue(NotificationWrapper.java:122)
    at anywheresoftware.b4a.objects.NotificationWrapper.setSound(NotificationWrapper.java:109)
    at io.tpt.sms.myservice._service_start(myservice.java:488)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at io.tpt.sms.myservice.handleStart(myservice.java:100)
    at io.tpt.sms.myservice.access$000(myservice.java:8)
    at io.tpt.sms.myservice$1.run(myservice.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at io.tpt.sms.myservice.onStartCommand(myservice.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3284)
    at android.app.ActivityThread.access$2200(ActivityThread.java:196)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
    at android.os.Handler.dispatchMessage(Handler.java:111)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 2567
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
    at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:92)
    at anywheresoftware.b4a.objects.NotificationWrapper.setValue(NotificationWrapper.java:122)
    at anywheresoftware.b4a.objects.NotificationWrapper.setSound(NotificationWrapper.java:109)
    at io.tpt.sms.myservice._service_start(myservice.java:488)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at io.tpt.sms.myservice.handleStart(myservice.java:100)
    at io.tpt.sms.myservice.access$000(myservice.java:8)
    at io.tpt.sms.myservice$2.run(myservice.java:80)
    at android.os.Handler.handleCallback(Handler.java:819)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
--------- beginning of main
getServiceInstance failed!
getServiceInstance failed!
getServiceInstance failed!
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
ssl=0x7f6ac34280 cert_verify_callback x509_store_ctx=0x7f666bda40 arg=0x0
ssl=0x7f6ac34280 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
FATAL EXCEPTION: main
Process: io.tpt.sms, PID: 14348
java.lang.RuntimeException: java.net.SocketException: recvfrom failed: EBADF (Bad file descriptor)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:175)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:819)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:210)
    at android.app.ActivityThread.main(ActivityThread.java:5982)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
Caused by: java.net.SocketException: recvfrom failed: EBADF (Bad file descriptor)
    at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:611)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:575)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:486)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:42)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:242)
    at java.io.InputStream.read(InputStream.java:162)
    at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:149)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:234)
    at java.io.DataInputStream.readByte(DataInputStream.java:75)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:353)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:260)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    ... 8 more
Caused by: android.system.ErrnoException: recvfrom failed: EBADF (Bad file descriptor)
    at libcore.io.Posix.recvfromBytes(Native Method)
    at libcore.io.Posix.recvfrom(Posix.java:189)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:572)
    ... 19 more
getServiceInstance failed!
getServiceInstance failed!
getServiceInstance failed!
getServiceInstance failed!
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
ssl=0x7f6789b900 cert_verify_callback x509_store_ctx=0x7f666fda40 arg=0x0
ssl=0x7f6789b900 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
getServiceInstance failed!
getServiceInstance failed!
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
ssl=0x7f6714b280 cert_verify_callback x509_store_ctx=0x7f666fda40 arg=0x0
ssl=0x7f6714b280 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
android.system.ErrnoException: kill failed: ESRCH (No such process)
    at libcore.io.Posix.kill(Native Method)
    at libcore.io.ForwardingOs.kill(ForwardingOs.java:105)
    at java.lang.ProcessManager$ProcessImpl.destroy(ProcessManager.java:260)
    at anywheresoftware.b4a.remotelogger.RemoteLogger.LogCatStop(RemoteLogger.java:132)
    at anywheresoftware.b4a.remotelogger.RemoteLogger.handleIncomingData(RemoteLogger.java:62)
    at anywheresoftware.b4a.remotelogger.Connector.readData(Connector.java:134)
    at anywheresoftware.b4a.remotelogger.Connector.mainLoop(Connector.java:84)
    at anywheresoftware.b4a.remotelogger.Connector.run(Connector.java:53)
    at java.lang.Thread.run(Thread.java:833)
getServiceInstance failed!
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
getaddrinfo: xxx.com get result from proxy gai_error = 0
[getaddrinfo]: hostname=xxx.com; servname=(null); netid=0; mark=0
[getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
ssl=0x7f73f9ae80 cert_verify_callback x509_store_ctx=0x7f666bda40 arg=0x0
ssl=0x7f73f9ae80 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA


How do i make the Log("") works so that i can see output in Logs?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

IamTrying

Active Member
Licensed User
Thank you.

So on every B4A release i have to be very very very very careful weather i should upgrade or not.
Cause last release 8 and 8.30 i did not check descriptions but simply upgraded, suddenly after upgrade, all my app stop working to compile because of that Notify(1).
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can see the backward compatibility policy here: https://www.b4x.com/android/forum/threads/86823/#content

This case was special as the old method will not work on Android 8+ devices and a change was required.
You can keep using an older version and then the notifications will never appear.

The most important point is that when someone answers you question you should read it carefully. Otherwise it is not possible to help you...
 
Upvote 0

IamTrying

Active Member
Licensed User
@Erel: Thank you. I missed that description to read but once i read it it was resolved to at-least start the app and let it run.
(I do not needed the notification part for the moment)

Main Problem's now:

1. In OLD version my app was running in backend and when there is task it was doing it silently from background.
Since Android 8+ all background activity is not working anymore. Only the app works if its active on the screen
if the mobile is in sleep mode or if the back button is pressed then the background service is not working anymore

2. Log("") is not working still

Please advise. Shell i post in new question those two problems i am having? (so that its read friendly for all of us)
 
Upvote 0
Top