Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when trying to open the root directory #3247

Closed
nm17 opened this issue Apr 3, 2022 · 4 comments · Fixed by #3257
Closed

App crashes when trying to open the root directory #3247

nm17 opened this issue Apr 3, 2022 · 4 comments · Fixed by #3257
Assignees
Labels
Issue-Bug Related unexpected behavior or something worth investigating.

Comments

@nm17
Copy link

nm17 commented Apr 3, 2022

Issue explanation (write below this line)

App crashes when trying to open the root directory. I have proper root privileges on my phone using Magisk. Using the latest release from Github v3.6.7. I can browse the sdcard just fine.

Exception

  • App Name: Amaze
  • Package: com.amaze.filemanager
  • Version: 3.6.7
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 7.0 - 24
  • Device: M5Note
  • Model: M5 Note
  • Product: meizu_M5 Note
Crash log

java.lang.RuntimeException: An error occurred while executing doInBackground()
	at android.os.AsyncTask$3.done(AsyncTask.java:318)
	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
	at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
	at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.NumberFormatException: For input string: ""
	at java.lang.Long.parseLong(Long.java:455)
	at java.lang.Long.parseLong(Long.java:485)
	at com.amaze.filemanager.filesystem.files.FileUtils.parseName(FileUtils.java:828)
	at com.amaze.filemanager.filesystem.root.ListFilesCommand.parseStringForHybridFile(ListFilesCommand.kt:207)
	at com.amaze.filemanager.filesystem.root.ListFilesCommand.listFiles(ListFilesCommand.kt:60)
	at com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.doInBackground(LoadFilesListTask.java:250)
	at com.amaze.filemanager.asynchronous.asynctasks.LoadFilesListTask.doInBackground(LoadFilesListTask.java:75)
	at android.os.AsyncTask$2.call(AsyncTask.java:304)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	... 3 more


@VishnuSanal
Copy link
Member

@TranceLove Wasn't this fixed with #2894 🤔

@VishnuSanal VishnuSanal added the Issue-Bug Related unexpected behavior or something worth investigating. label Apr 7, 2022
@TranceLove
Copy link
Collaborator

I thought so. And with #2881 I thought everything should be covered, including stock toybox as seen in modern Android stock roms.

Would like to see the result of stat -c '%A %h %G %U %B %Y %N' * and ls -l / if you have access to rooted adb shell.

@nm17
Copy link
Author

nm17 commented Apr 14, 2022

@TranceLove I'll try in a couple of days, don't have access to the phone right now, sorry!

@nm17
Copy link
Author

nm17 commented Apr 15, 2022

@TranceLove @VishnuSanal
log-stat-and-ls.txt

@TranceLove TranceLove self-assigned this Apr 16, 2022
TranceLove added a commit that referenced this issue Apr 16, 2022
Fixes #3247.

Some *box implementations (toybox?) would use extra space characters to format file list outputs. Hence we update the regex to split values with one or more spaces instead of one only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Related unexpected behavior or something worth investigating.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants