Android Question What Does This Mean? java.io.EOFException

Shadow&Max

Active Member
Licensed User
Longtime User
All of a sudden, I'm getting this error... It only happens in debug (rapid) mode but runs perfectly in release mode. I start it up in debug mode, it waits to connect to the debugger, then dies with this. And, it's NOT every time... I just ran it in debug again, and I ran fine. Exited out of the app, started it up again, and once again got the error.. No changes no new data, nuttin'!

java.lang.RuntimeException: java.io.EOFException
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:159)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:91)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:76)
at com.twodogapps.pts.main.afterFirstLayout(main.java:90)
at com.twodogapps.pts.main.access$100(main.java:16)
at com.twodogapps.pts.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.EOFException


at libcore.io.Streams.readFully(Streams.java:83)
at java.io.DataInputStream.readInt(DataInputStream.java:103)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:131)
... 14 more
 

Shadow&Max

Active Member
Licensed User
Longtime User
Jon... Are you sure there are NO breakpoints set, even in other modules that you're not working on at the time? In my case, if I'm working in module1, and there's a breakpoint set someplace in module7, it'll fail... not always but most of the time... Removing the breakpoints almost always solves it.
 
Last edited:
Upvote 0

Shadow&Max

Active Member
Licensed User
Longtime User
Yes, it's something that needs to be fixed along the way... Erel?
 
Upvote 0

Shadow&Max

Active Member
Licensed User
Longtime User
Wondering what the best way to get something to you that actually triggers it... But when it happens, it's always the breakpoints. Sorry, been out of commission for several months... getting back to everything now, slowly but surely...
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I have the same problem with v5.50 in debug mode.
If I delete the breakpoints, it works.
With breakpoints not working.
It occurs in larger projects.
It does not happen with small projects.
Regards.
 
Upvote 0

JTmartins

Active Member
Licensed User
Longtime User
Out of nowhere I started to have this error too.

The only things I installed in this computer over the weekend was Eclipse IDE (mars version) with ADT pluggin and InteliJIdea (not android studio).

Main main project now does not go into debug mode. It crashes as soon as it tries to run on an external tablet.

The only way is to remove all breakpoints and then recompile again in debug mode and even like that sometimes it fails. Very anoying situation

java.lang.RuntimeException: java.io.EOFException
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:167)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:99)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:88)
at Gesdriver.QR.main.afterFirstLayout(main.java:94)
at Gesdriver.QR.main.access$000(main.java:17)
at Gesdriver.QR.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5299)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:830)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:646)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.EOFException
at libcore.io.Streams.readFully(Streams.java:83)
at java.io.DataInputStream.readInt(DataInputStream.java:103)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:139)
... 14 more
 
Last edited:
Upvote 0

Shadow&Max

Active Member
Licensed User
Longtime User
As you can see, yes, this has been around for a while. And, it's ALWAYS the breakpoints.

It only seems to happen to me on apps that had a bunch of screens and a lot of code...
 
Upvote 0

JTmartins

Active Member
Licensed User
Longtime User
Unfortunately in my case, I can't as my boss does not allow me to (I asked), because this is a company project with lots of references to servers addresses, passwords, etc. (used only by employees).

and this is the only project where so far this is happening (also is the biggest one)
 
Upvote 0

Shadow&Max

Active Member
Licensed User
Longtime User
I will when I get back later Erel...
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
I have this problem pretty much daily with version 6.31
has there been a definitive solution?
Rusty
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks Erel,
I already had
#DebuggerForceStandardAssets: True
in my code and it still occurs,
but then added:
#DebuggerForceFullDeployment: True
Which seems to fix it for now...
Rusty
 
Upvote 0
Top