[
https://issues.apache.org/jira/browse/CB-8442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14378377#comment-14378377
]
Jonathan C. Bradley commented on CB-8442:
-----------------------------------------
FileSystem Plugin [version 1.3.2], (and 1.3.3)
I too am having this issue in the iOS app I am currently working on. However,
I have a few different places in the app where the behavior is inconsistent.
The bug does NOT occur on one page when writing 1000+ new small files
(consistent).
The bug DOES occur on a separate page where I am overwriting an existing file
repeatedly. The plugin becomes unresponsive somewhere around 350 saves
(consistent). However, I added logic to reduce the number of save operations
for this page to about 1/5th (potential to lose last four operations at most,
reduces 1000 potential saves down to 200). Strangely, the plugin now becomes
unresponsive after about 90 saves (450 operations, saving the state every 5
operations) (consistent).
The bug also DOES occur on another page. On this third page, I am potentially
toggling the state of the data on the fly, and saving it in a separate file.
Therefore I have opted to attempt to delete the old file, if the state of the
data changes, after every successful write and handle appropriately if the file
does not exist or has already been deleted. On this page, the plugin fails
somewhere around 50 save-one/delete-other operations (consistent).
Refreshing the page seems to fix the issue and reset the "counter" leading up
to when it will become unresponsive again, and could be a potential workaround.
However, this is detrimental to the user-experience. Our next app we're
looking to do single-page and refreshing the page will not be viable option.
> [iOS] After several (hundreds) file write operations, the plugin stops
> working and no error is dispatched.
> ----------------------------------------------------------------------------------------------------------
>
> Key: CB-8442
> URL: https://issues.apache.org/jira/browse/CB-8442
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Affects Versions: 4.0.0
> Environment: iOS 8.1.x
> iOS PLATFORM VERSION: 3.7.0
> Simulator, iPad Mini Retina, iPhone 4, iPhone 5s
> Reporter: Andrea
> Priority: Critical
>
> File Plugin [version 1.3.2]
> After several (hundreds) file write operations (with arrayBuffer), the plugin
> becomes unresponsive and no error is dispatched.
> Given a list of files, it seems it happens always at the same point ( in my
> case after 484 write operations, or 492, or 469, etc.). I'm quite sure it's
> not related to the type of file. No errors are returned. The plugin simply
> stops working. I guess all the plugins become unresponsive.
> With the same number operations, but executed through FileTransfer->
> download, there are no problems.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]