Mikael Andersson created CB-864:
-----------------------------------

             Summary: Writing large file blocks Cordova
                 Key: CB-864
                 URL: https://issues.apache.org/jira/browse/CB-864
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.7.0
         Environment: Reproduced on two environments - iOS version: 5.1 
(272.21) simulator (on OS X 10.7.3) AND iOS version: 5.1.1. 

Cordova 1.7.0 
            Reporter: Mikael Andersson
            Assignee: Shazron Abdullah
             Fix For: 1.8.0


The write method never returns/throws when trying to write a ~3 MB file. After 
write is called, a message is logged: "FAILED pluginJSON = { "className": 
"File", "methodName": "write" ... and then the contents of the file!

After the writing the file to the log, the following is written: "void 
SendDelegateMessage(NSInvocation*): delegate 
(webView:decidePolicyForNavigationAction:request:frame:decisionListener:) 
failed to return after waiting 10 seconds. main run loop mode: 
kCFRunLoopDefaultMode"

There are multiple issues: 
 1. The file should not be written to the log. 
 2. I have not found any way to inhibit logging (which could have been a 
workaround).
 3. The call must return or throw.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to