Android Question java.net.SocketInputStream.socketRead0

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I have my app in a internal beta testing group on Google Play and in Google Play it's logging the following error..

java.net.SocketException
java.net.SocketInputStream.socketRead0

java.lang.RuntimeException:
at anywheresoftware.b4a.ShellBA.raiseEvent2 (ShellBA.java:170)
at anywheresoftware.b4a.objects.Timer$TickTack.run (Timer.java:105)
at android.os.Handler.handleCallback (Handler.java:790)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6494)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)

Caused by: java.net.SocketException:
at java.net.SocketInputStream.socketRead0 (Native Method)
at java.net.SocketInputStream.socketRead (SocketInputStream.java:114)
at java.net.SocketInputStream.read (SocketInputStream.java:170)
at java.net.SocketInputStream.read (SocketInputStream.java:139)
at java.io.BufferedInputStream.fill (BufferedInputStream.java:248)
at java.io.BufferedInputStream.read (BufferedInputStream.java:267)
at java.io.DataInputStream.readByte (DataInputStream.java:268)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl (Shell.java:335)
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)

The device is a LGE Nexus 5X (bullhead), 2048MB RAM, Android 8.1
(which is my development device, the other internal testers don't have a Nexus 5x).

I have uploaded the Release (obfuscated) version of my app to Google Play for internal testing.

I am using WebSockets which connects to my B4J app.

I am guessing this crash has something to do with the WebSockets?
Any ideas on what might cause the above crash ?

In my app, if the WebSocket is not connected to the server, then I am stopping it from allowing it to send the data to the server.
 

aaronk

Well-Known Member
Licensed User
Longtime User
Yes. You have uploaded a debug app. Note that the debug APK name ends with _DEBUG.
I'm 100% sure it's not the debug app. I only upload the result.apk file. This happened once before so I always double check now before I upload anything.

I wonder if somehow the app reported the crash to Google Play rather than showing it in the IDE (or reported in the IDE and Google Play)?

I have also noticed that if I run the app in release mode, and the app crashes it reports it to Google Play even knowing I haven't uploaded that app version to Google Play. For example, have version 4 on Google Play but run version 5 in release mode without uploading it, it seems to log the crash from version 5 on Google Play.
 
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
I noticed that my device is the only device that has reported the crashes with ShellBA.

The testers haven't had any crashes reported with ShellBA in the crash, so the debugging from the IDE must of reported it to Google Play somehow.
 
Upvote 0
Top