AmazeFileManager icon indicating copy to clipboard operation
AmazeFileManager copied to clipboard

Unable to query content resolver for images / media files

Open amaze-issue-automation[bot] opened this issue 3 years ago • 2 comments

Issue explanation (write below this line)

Exception

  • App Name: Amaze
  • Package: com.amaze.filemanager
  • Version: 3.6.1
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 10 - 29
  • Device: lavender
  • Model: Redmi Note 7
  • Product: lavender_eea
Crash log

java.lang.RuntimeException: An error occurred while executing
doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:399)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.IllegalArgumentException: Volume external_primary not
found
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:170)
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
at
android.content.ContentProviderProxy.query(ContentProviderNative.java:423)
at android.content.ContentResolver.query(ContentResolver.java:946)
at android.content.ContentResolver.query(ContentResolver.java:881)
at android.content.ContentResolver.query(ContentResolver.java:837)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.listMediaCommon(LoadFilesListTask.java:358)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.listImages(LoadFilesListTask.java:334)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.doInBackground(LoadFilesListTask.java:171)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.doInBackground(LoadFilesListTask.java:68)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 3 more


Dupe #1015

EmmanuelMess avatar Sep 08 '21 12:09 EmmanuelMess

@EmmanuelMess I wonder how this will be a duplicate to #1015. It is SecurityException that is being thrown there & here it is IllegalArgumentException. Also, it points to TextReader#getInputStream but this crash points to LoadFilesListTask#listMediaCommon. (even though the file got moved, is it to LoadFilesListTask?)

VishnuSanal avatar Jul 03 '22 11:07 VishnuSanal