TeamAmaze / TeamAmaze/AmazeFileManager

Crash after linking Onedrive

Open
#3,368 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Cloud 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)

Attempted to link a OneDrive account under an organization.

Exception

  • App Name: Amaze File Manager
  • Package: com.amaze.filemanager
  • Version: 3.7.2
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 12 - 32
  • Device: raven
  • Model: Pixel 6 Pro
  • Product: raven
Crash log

java.lang.RuntimeException: An error occurred while executing
doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
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 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
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:920)
Caused by: android.database.StaleDataException: Attempted to access a
cursor after it has been closed.
at
android.database.BulkCursorToCursorAdaptor.throwIfCursorIsClosed(BulkCursorToCursorAdaptor.java:63)
at
android.database.BulkCursorToCursorAdaptor.getCount(BulkCursorToCursorAdaptor.java:69)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:238)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:287)
at android.database.CursorWrapper.moveToNext(CursorWrapper.java:206)
at
com.amaze.filemanager.asynchronous.asynctasks.CloudLoaderAsyncTask.doInBackground(CloudLoaderAsyncTask.java:375)
at
com.amaze.filemanager.asynchronous.asynctasks.CloudLoaderAsyncTask.doInBackground(CloudLoaderAsyncTask.java:51)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 4 more


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 by reading CloudLoaderAsyncTask.doInBackground at line 375 and the surrounding cursor handling. Reproduce the crash by linking a OneDrive account under an organization on Android 12, then verify that the cursor-related failure no longer occurs during linking.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.