Hi Guys
I have a problem with some code - as soon as it attempts to run in debug I get the following Error report (it is OK if compiled as a release version). Previously this code as worked when last tested about a month ago.
I have had this type of error before but usually if is fixed after invoking Tools->Clean Project - but this error occurs every time I attempt run it in debug.
I am using v10.0 of B4A - the phone is an Android 6 and I am using a USB connection to the device.
I have tried the following
Unstall the original App on the phone.
Reset the phone
Restarted the IDE and rebooted the computer.
Can anyone give me a pointer?
Kind regards
Dave Morris
I have a problem with some code - as soon as it attempts to run in debug I get the following Error report (it is OK if compiled as a release version). Previously this code as worked when last tested about a month ago.
Error log:
java.lang.RuntimeException: Unable to create service arena.Epos.starter: java.lang.RuntimeException: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3096)
at android.app.ActivityThread.-wrap4(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1586)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5816)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: java.lang.RuntimeException: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
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 arena.Epos.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3086)
... 8 more
Caused by: java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:577)
at libcore.io.IoBridge.sendto(IoBridge.java:546)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:509)
at java.net.PlainSocketImpl.-wrap1(PlainSocketImpl.java)
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.virtualAssets(Shell.java:124)
... 12 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:544)
... 19 more
I have had this type of error before but usually if is fixed after invoking Tools->Clean Project - but this error occurs every time I attempt run it in debug.
I am using v10.0 of B4A - the phone is an Android 6 and I am using a USB connection to the device.
I have tried the following
Unstall the original App on the phone.
Reset the phone
Restarted the IDE and rebooted the computer.
Can anyone give me a pointer?
Kind regards
Dave Morris