incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-864) Failure in writing a large file blocks Cordova
Date Fri, 15 Jun 2012 19:21:42 GMT

     [ https://issues.apache.org/jira/browse/CB-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah resolved CB-864.
---------------------------------

    Resolution: Fixed

Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/7e579165

Suppress NSLog on command failure, only print in DEBUG configuration.
When NSLog is printed, it truncates to the first 1K characters only.
                
> Failure in writing a 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
>            Priority: Critical
>             Fix For: 1.9.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

        

Mime
View raw message