Android Question App crashing for some users

jai

Active Member
Licensed User
Longtime User
I have a large app that seems to work fine but it crashes for some users as shown in the Crashes and ANRs report on Google Play dashboard. It has been tested on several Android devices using Android 6,7,10 - 12 and cannot duplicate the error to be able to pinpoint where these error is coming from.

I need help in locating the source of the problem and any suggestions for its correction. Here is a stack trace for one of the issues-

main._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0 Crash

Exception : android.system.ErrnoException open failed
at libcore.io.IoBridge.open (IoBridge.java:574)
at java.io.FileInputStream.<init> (FileInputStream.java:160)
at anywheresoftware.b4a.objects.streams.File.OpenInput (File.java:215)
at anywheresoftware.b4a.objects.streams.File.Copy (File.java:341)
at com.sawhney.planmode (main.java:35802)
at com.sawhney.planmode.main$ResumableSub_MenuSelection_2.resume (main.java:23866)
at com.sawhney.planmode.main._menuselection_2 (main.java:23185)
at java.lang.reflect.Method.invoke
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:213)
at anywheresoftware.b4a.keywords.Common.CallSub4 (Common.java:1084)
at anywheresoftware.b4a.keywords.Common.CallSubNew (Common.java:1031)
at com.sawhney.planmode.main._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0 (main.java:35956)
at com.sawhney.planmode.main$ResumableSub_cMenuPanelBtn_click.resume (main.java:3426)
at com.sawhney.planmode.main._cmenupanelbtn_click (main.java:3272)
at java.lang.reflect.Method.invoke
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:213)
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent (BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick (ViewWrapper.java:80)
at android.view.View.performClick (View.java:7512)
at android.view.View.performClickInternal (View.java:7489)
at android.view.View.access$3700 (View.java:857)
at android.view.View$PerformClick.run (View.java:29019)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:233)
at android.os.Looper.loop (Looper.java:334)
at android.app.ActivityThread.main (ActivityThread.java:8333)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1065)
Caused by android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Linux.open
at libcore.io.ForwardingOs.open (ForwardingOs.java:563)
at libcore.io.BlockGuardOs.open (BlockGuardOs.java:274)
at libcore.io.ForwardingOs.open (ForwardingOs.java:563)
at android.app.ActivityThread$AndroidOs.open (ActivityThread.java:8209)
at libcore.io.IoBridge.open (IoBridge.java:560)

Also, is there a primer or other reference place that could help make sense of the stack trace report to an uninitiated one.

Thank you.
 

BlueVision

Active Member
Licensed User
Longtime User
After a short "flight" over the log...
Somehow the app is trying to access a file or folder, which does not exist.
Caused by android.system.ErrnoException: open failed: ENOENT (No such file or directory)
 
Upvote 0

jai

Active Member
Licensed User
Longtime User
Thanks So it seems but can't replicate it. I've tried fresh installs on several devices. They all test ok for all types of file loads and saves. Any way to narrow it down to the statement or file that may be causing it?
 
Upvote 0

BlueVision

Active Member
Licensed User
Longtime User
Hard to investigate from here without knowing the application. Looks like it is obfuscated too. Are you able to investigate the failing devices by model? Did you raise the APK-level (remember also the restrictions for accessing internal folders on SDK30 and upwards and so on).
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
Thanks So it seems but can't replicate it. I've tried fresh installs on several devices. They all test ok for all types of file loads and saves. Any way to narrow it down to the statement or file that may be causing it?
What Android version on the devices where the app crashes? Did you compare it with other devices?
 
Upvote 0
Top