Android Question java.lang.RuntimeException: Unable to create service - java.io.EOFException

juacochero

Member
Licensed User
Longtime User
Hi everyone,
I've been trying to run my app in debug mode for the past couple of hours, and I still get the same error: java.lang.RuntimeException: Unable to create service ilpla.appear.starter: java.lang.RuntimeException: java.io.EOFException

Log:


B4X:
java.lang.RuntimeException: Unable to create service ilpla.appear.starter: java.lang.RuntimeException: java.io.EOFException
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:4643)
    at android.app.ActivityThread.access$1800(ActivityThread.java:271)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2144)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:210)
    at android.os.Looper.loop(Looper.java:299)
    at android.app.ActivityThread.main(ActivityThread.java:8250)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
Caused by: java.lang.RuntimeException: java.io.EOFException
    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 ilpla.appear.starter.onCreate(starter.java:34)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:4630)
    ... 9 more
Caused by: java.io.EOFException
    at java.io.DataInputStream.readFully(DataInputStream.java:200)
    at java.io.DataInputStream.readInt(DataInputStream.java:389)
    at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:136)
    ... 13 more


I went through pretty much everything in the forum, and tried:
- Removed all breakpoints (seems that it was the cause for many users)
- Added #DebuggerForceFullDeployment: True and #DebuggerForceStandardAssets: True to the project attributes
- Cleaned, reinstalled, deleted, the app several times
- Tried it through USB debug, through the Bridge, and with an emulator.... nothing worked, same error
- Running B4a 12, no antivirus or firewall, all permissions on the app...

Here's a link to the full project as well (sorry, it's big to attach!).
Any help would be more than appreciated, i'm going crazy over here!
 

juacochero

Member
Licensed User
Longtime User
Update: I have two or three projects that are "big" like the one I attached here, none of them run on debug, same error.
Smaller projects work, and new projects also.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…