TeamAmaze / TeamAmaze/AmazeFileManager
Crash whilst opening DB file
Open
Nobody has claimed this yet.
From-Email
Issue-Bug
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
Issue explanation (write below this line)
Attempting to open Google Maps Cache map-cache as database. Instant crash.
Exception
- App Name: Amaze File Manager
- Package: com.amaze.filemanager
- Version: 3.8.5
- User Action: UI Error
- Request: Application crash
- OS: Linux Android 13 - 33
- Device: panther
- Model: Pixel 7
- Product: panther
Crash log
java.lang.StringIndexOutOfBoundsException: begin -2, end 13, length 143
at java.lang.String.checkBoundsBeginEnd(String.java:3942)
at java.lang.String.substring(String.java:2467)
at com.amaze.filemanager.filesystem.files.FileUtils.lambda$openWith$3(FileUtils.java:574)
at com.amaze.filemanager.filesystem.files.FileUtils.$r8$lambda$rMklDrt65KZ3BjNJAHz0NdQF610(Unknown Source:0)
at com.amaze.filemanager.filesystem.files.FileUtils$$ExternalSyntheticLambda2.onSelection(Unknown Source:10)
at com.afollestad.materialdialogs.MaterialDialog.onItemSelected(MaterialDialog.java:193)
at com.afollestad.materialdialogs.DefaultRvAdapter$DefaultVH.onClick(DefaultRvAdapter.java:203)
at android.view.View.performClick(View.java:7542)
at android.view.View.performClickInternal(View.java:7519)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:29476)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7918)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Sent from Yahoo Mail on Android
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at com.amaze.filemanager.filesystem.files.FileUtils.openWith, especially FileUtils.java line 574, and reproduce the crash by opening the Google Maps Cache map-cache database file. Done means the file-opening action no longer crashes on the reported Android setup; no test file is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100