[Galaxy S III Original Android Development] curiousrom:
"Files Has Stopped" - LineageOS Files Manager

While I use a third-party root enabled file manger I also use the stock built-in LineageOS 14.1 Files Manager (com.android.documentsui or DocumentsUI) for quick & simple operations but when searching the internal shared storage (sdcard) I got a crash with the message "Files Has Stopped".

After rebooting I could search the external Micro sdcard without any problems but got the crash again when searching internal. Same after rebooting in Safe Mode (long press Power off or Restart) to rule out user installed apps interference.

:cool: I would like to know if anybody else have this error before reporting the bug. :cool:

This is different from MTP Host has stopped described with the fix here: LineageOS S3 i9300 Known Issues Workarounds

I tried with ES File Explorer Pro (blocked from accessing the internet), FX File Explorer, Total Commander and Amaze File Manager and all can search the internal shared storage (sdcard) without any problems.

I have been using stock Official Lineage 14.1 on the S3 i9300 (my daily driver) for 7 months updated almost every week since then (currently 2018-06-28) using the built-in Lineage Updater + Open Gapps ARM Pico (2018-06-30) + Lineage ARM super user add-on.

I noticed it while running LOS 2018-06-23 but then it was a longtime since I used Search in Files so I don't know since when the problem is present.

I can rename, move or copy files w/o any problems.

Here is a snippet of Logcat with the crash & I attached a full logcat made right after the Files has stopped message while in Safe Mode & right after a fresh reboot in case a developer reads this post.

06-29 02:30:19.742 4250 4250 W ModelBackedDocuments:	at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:66)

06-29 02:30:19.742 4250 4250 W ModelBackedDocuments:	at android.os.AsyncTask$2.call(AsyncTask.java:305)

06-29 02:30:19.742 4250 4250 W ModelBackedDocuments:	at java.util.concurrent.FutureTask.run(FutureTask.java:237)

06-29 02:30:19.742 4250 4250 W ModelBackedDocuments:	at com.android.documentsui.ProviderExecutor.run(ProviderExecutor.java:104)

06-29 02:30:19.778 4250 4250 D AndroidRuntime: Shutting down VM

--------- beginning of crash

06-29 02:30:19.785 4250 4250 E AndroidRuntime: FATAL EXCEPTION: main

06-29 02:30:19.785 4250 4250 E AndroidRuntime: Process: com.android.documentsui, PID: 4250

06-29 02:30:19.785 4250 4250 E AndroidRuntime: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

06-29 02:30:19.785 4250 4250 E AndroidRuntime:	at java.util.ArrayList.get(ArrayList.java:411)

06-29 02:30:19.785 4250 4250 E AndroidRuntime:	at com.android.documentsui.dirlist.DocumentsAdapter.isDirectory(DocumentsAdapter.java:91)

06-29 02:30:19.785 4250 4250 E AndroidRuntime:	at com.android.documentsui.dirlist.ModelBackedDocumentsAdapter.getItemViewType(ModelBackedDocumentsAdapter.java:195)

06-29 02:30:19.785 4250 4250 E AndroidRuntime:	at com.android.documentsui.dirlist.SectionBreakDocumentsAdapterWrapper.getItemViewType(SectionBreakDocumentsAdapterWrapper.java:137)

FYI: While I normally use SysLog for quick & easy log collecting, it was disabled in Safe Mode so using the Lineage built-in Terminal app (if enabled in Developer options as well as root) type:

su

logcat -d -f /sdcard/logcat.txt

This will save the log to /sdcard/logcat.txt

***

Daily Driver?

1- HWComposer is not fixed in the Official 14.1 for S3 & I don't care really.

2- The most stable LineageOS 14.1 is the most recent. Zero system crash for my S3 i9300 in 7 months as a daily driver.

This is after a super clean install with full Data partition formatting + wipe as described in my post here + battery optimization & known issues fixes as per my signature below.

***