TeamAmaze / TeamAmaze/AmazeFileManager
getFilesList: tv_nsec value -274790335440 is not in [0, 999999999]
Open
Nobody has claimed this yet.
Area-FileOperations
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)
Exception
- App Name: Amaze File Manager
- Package: com.amaze.filemanager
- Version: 3.6.1
- User Action: UI Error
- Request: Application crash
- OS: Linux Android 10 - 29
- Device: ali
- Model: XT1925-5
- Product: revengeos_ali
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: tv_nsec value -274790335440
is not in [0, 999999999]
at android.system.StructTimespec.<init>(StructTimespec.java:35)
at libcore.io.Linux.stat(Native Method)
at libcore.io.ForwardingOs.stat(ForwardingOs.java:222)
at libcore.io.BlockGuardOs.stat(BlockGuardOs.java:389)
at libcore.io.ForwardingOs.stat(ForwardingOs.java:222)
at android.app.ActivityThread$AndroidOs.stat(ActivityThread.java:7270)
at java.io.UnixFileSystem.getLength(UnixFileSystem.java:298)
at java.io.File.length(File.java:970)
at
com.amaze.filemanager.filesystem.root.ListFilesCommand.getFilesList(ListFilesCommand.kt:162)
at
com.amaze.filemanager.filesystem.root.ListFilesCommand.listFiles(ListFilesCommand.kt:70)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.doInBackground(LoadFilesListTask.java:232)
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
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 filesystem/root/ListFilesCommand.kt line 162, where the crash occurs, and trace the call from listFiles. Use the reported Android 10–29 stack trace to investigate the failing file-length lookup. Done means the file listing no longer crashes with the reported tv_nsec exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100