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

jcesarmobile edited comment on CB-7577 at 9/26/14 10:00 AM:
------------------------------------------------------------

Yes, it works when buildng with xcode 6

But there is still a problem, it doesn't work if the viewcontroller where the 
input type='file' is presented modally. It doesn't affect regular cordova apps, 
but might affect users using cleaver, and maybe InAppBrowser plugin (not tested 
on the latest version)

You'll get a warning like this and the modal view will be dissmissed.

Warning: Attempt to present <UIImagePickerController> on 
<UINavigationController> whose view is not in the window hierarchy!

But it doesn't crash anymore


was (Author: jcesarmobile):
Yes, it works when buildng with xcode 6

But there is still a problem, it doesn't work if the viewcontroller where the 
input type='file' is presented modally. It doesn't affect regular cordova apps, 
but might affect users using cleaver, and maybe InAppBrowser plugin (not tested 
on the latest version)

You'll get a warning like this and the modal view will be dissmissed.

Warning: Attempt to present <UIImagePickerController> on 
<UINavigationController> whose view is not in the window hierarchy!

> Cordova Crashes on IOS8 when Using input type="file"
> ----------------------------------------------------
>
>                 Key: CB-7577
>                 URL: https://issues.apache.org/jira/browse/CB-7577
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: iOS
>    Affects Versions: 3.5.0, 3.6.0
>         Environment: ios8
>            Reporter: Sven Brunner
>            Priority: Critical
>
> The app crashes when using an '<input type="file" />' after asking if you 
> want to record an Photo/Video or get the file from media.
> Console says the following:
> {code}
> <Error>: *** Terminating app due to uncaught exception 
> 'NSInternalInconsistencyException', reason: 'Trying to dismiss 
> UIAlertController <UIAlertController: 0x12eddb820> with unknown presenter.'
>       *** First throw call stack:
>       (0x18553a084 0x195e2c0e4 0x185539fc4 0x18a085fac 0x189cb0724 
> 0x189cea7b8 0x189ce9e58 0x189cbd660 0x189f5bd6c 0x189cbbbc8 0x1854f2324 
> 0x1854f15c8 0x1854ef678 0x18541d664 0x18e51b5a4 0x189d22984 0x1000c64f4 
> 0x19649aa08)
> Sep 18 10:39:13 iPad ReportCrash[577] <Error>: task_set_exception_ports(B07, 
> 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to