Android Question Crash in my app

BW17

Member
Licensed User
Longtime User
Hi,

Sorry for my very bad english....

I have often crashed reported in my Google developer console, on different devices.

It's always :

libcore.io.ErrnoException

emplacement : libcore.io.Posix.open


B4X:
java.lang.RuntimeException: java.io.FileNotFoundException: /data/data/fr.aires.ccinfos/cache/2: open failed: ENOENT (No such file or directory)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:200)
at anywheresoftware.b4a.BA$3.run(BA.java:319)
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:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: /data/data/fr.aires.ccinfos/cache/2: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:409)
at java.io.FileOutputStream.<init>(FileOutputStream.java:88)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:370)
at anywheresoftware.b4a.samples.httputils2.httputils2service._hc_responsesuccess(httputils2service.java:130)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
... 10 more
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at libcore.io.IoBridge.open(IoBridge.java:393)
... 16 more

I am a beginner, and can't find why it works on devices and not on same others.

Thanks in advance for your help.

Bruno.
 

sorex

Expert
Licensed User
Longtime User
what is that file you're trying to read?

/data/data/fr.aires.ccinfos/cache/2

maybe you should add a check if the file exist before you read it.
 
  • Like
Reactions: eps
Upvote 0

eps

Expert
Licensed User
Longtime User
This (above) you need to work out what this file is and where it's being used. Of course it could be being used in a 3rd party library or similar.

A little idea of the code or processing would help to us to be able to help you to work out what is going on.. Otherwise it's a bit like shooting in the dark.
 
Upvote 0
Top