TeamAmaze / TeamAmaze/AmazeFileManager

`IllegalStateException` on `DataUtils#setPathAsGridOrList`

Open
#3,871 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

From-telegram 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)

Exception

  • App Name: Amaze File Manager
  • Package: com.amaze.filemanager
  • Version: 3.8.5
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 9 - 28
  • Device: ginkgo
  • Model: Redmi Note 8
  • Product: ginkgo
Crash log

java.lang.IllegalStateException: Unexpected failure to classify SearchResult: SearchResult{key=/storage/emulated/0, nodeFound=Node{edge=/storage/emulated/0, value=1, edges=[]}, charsMatched=19, charsMatchedInNodeFound=19, parentNode=Node{edge=, value=null, edges=[Node{edge=/storage/emulated/0, value=1, edges=[]}]}, parentNodesParent=null, classification=null}
 at com.googlecode.concurrenttrees.radix.ConcurrentRadixTree$SearchResult.classify(ConcurrentRadixTree.java:989)
 at com.googlecode.concurrenttrees.radix.ConcurrentRadixTree$SearchResult.<init>(ConcurrentRadixTree.java:969)
 at com.googlecode.concurrenttrees.radix.ConcurrentRadixTree.searchTree(ConcurrentRadixTree.java:932)
 at com.googlecode.concurrenttrees.radix.ConcurrentRadixTree.putInternal(ConcurrentRadixTree.java:456)
 at com.googlecode.concurrenttrees.radix.ConcurrentRadixTree.put(ConcurrentRadixTree.java:83)
 at com.googlecode.concurrenttrees.radixinverted.ConcurrentInvertedRadixTree.put(ConcurrentInvertedRadixTree.java:185)
 at com.amaze.filemanager.utils.DataUtils.setPathAsGridOrList(DataUtils.java:387)
 at com.amaze.filemanager.ui.activities.MainActivity.lambda$onOptionsItemSelected$13(MainActivity.java:1242)
 at com.amaze.filemanager.ui.activities.MainActivity.$r8$lambda$-SioeAO0tOeTL76KMvP2ZjJy0A8(Unknown Source:0)
 at com.amaze.filemanager.ui.activities.MainActivity$$ExternalSyntheticLambda10.apply(Unknown Source:6)
 at com.amaze.filemanager.ui.activities.MainActivity.executeWithMainFragment(MainActivity.java:2518)
 at com.amaze.filemanager.ui.activities.MainActivity.onOptionsItemSelected(MainActivity.java:1136)
 at android.app.Activity.onMenuItemSelected(Activity.java:3609)
 at androidx.fragment.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:328)
 at androidx.appcompat.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:264)
 at androidx.appcompat.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:109)
 at androidx.appcompat.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:66)
 at androidx.appcompat.widget.Toolbar$1.onMenuItemClick(Toolbar.java:221)
 at androidx.appcompat.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:781)
 at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:834)
 at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158)
 at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:985)
 at androidx.appcompat.view.menu.MenuPopup.onItemClick(MenuPopup.java:128)
 at android.widget.AdapterView.performItemClick(AdapterView.java:318)
 at android.widget.AbsListView.performItemClick(AbsListView.java:1198)
 at android.widget.AbsListView$PerformClick.run(AbsListView.java:3178)
 at android.widget.AbsListView$3.run(AbsListView.java:4132)
 at android.os.Handler.handleCallback(Handler.java:873)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:201)
 at android.app.ActivityThread.main(ActivityThread.java:6864)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

Reporter: Kaiha_San

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at DataUtils.java:387 and trace the put call into ConcurrentRadixTree.SearchResult.classify; compare the UI path from MainActivity.java:1242. Reproduce the Android 9 action if possible and establish verification that setting the path no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.