[ 
https://issues.apache.org/jira/browse/CB-5899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13886655#comment-13886655
 ] 

Boston Dell-Vandenberg commented on CB-5899:
--------------------------------------------

Unfortunately, the new commits are crashing the app on load. I'm running 
Android 4.4, there's an error and a warning showing in logcat:

{code}
01-30 10:16:47.838: E/FileUtils(14632): File plugin configuration error: Please 
set AndroidPersistentFileLocation in config.xml to one of "internal" (for new 
applications) or "compatibility" (for compatibility with previous versions)

01-30 10:16:47.938: W/System.err(14632): java.lang.IndexOutOfBoundsException: 
Invalid index 1, size is 0
01-30 10:16:47.938: W/System.err(14632):        at 
java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
01-30 10:16:47.938: W/System.err(14632):        at 
java.util.ArrayList.get(ArrayList.java:308)
01-30 10:16:47.938: W/System.err(14632):        at 
org.apache.cordova.file.FileUtils.requestFileSystem(FileUtils.java:740)
01-30 10:16:47.938: W/System.err(14632):        at 
org.apache.cordova.file.FileUtils.access$100(FileUtils.java:50)
01-30 10:16:47.948: W/System.err(14632):        at 
org.apache.cordova.file.FileUtils$11.run(FileUtils.java:290)
01-30 10:16:47.948: W/System.err(14632):        at 
org.apache.cordova.file.FileUtils$24.run(FileUtils.java:461)
01-30 10:16:47.948: W/System.err(14632):        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
01-30 10:16:47.948: W/System.err(14632):        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
01-30 10:16:47.948: W/System.err(14632):        at 
java.lang.Thread.run(Thread.java:841)
{code}

Does not crash with the official release of the plugin.

> FileError code 5 returned with dirEntry.readEntries()
> -----------------------------------------------------
>
>                 Key: CB-5899
>                 URL: https://issues.apache.org/jira/browse/CB-5899
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File
>    Affects Versions: 3.3.0
>         Environment: Android 4.1, Android 4.4
>            Reporter: Boston Dell-Vandenberg
>            Assignee: Ian Clelland
>
> When attempting to read entries of a DirectoryEntry from the local file 
> system the plugin returns an FileError code 5.
> I am able to successfully read the root directory of the local file system 
> using window.requestFileSystem() but creating a directoryReader and calling 
> readEntries() of any sub directories of the root file system results in the 
> error.
> I am using Cordova 3.3 and have tried both 0.2.5 of the file plugin as well 
> as the current Dev branch.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to