You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Klaus Schmidt (JIRA)" <ji...@apache.org> on 2012/09/17 10:09:09 UTC

[jira] [Created] (CB-1479) Cordova 2.1 Capture Problem

Klaus Schmidt created CB-1479:
---------------------------------

             Summary: Cordova 2.1 Capture Problem
                 Key: CB-1479
                 URL: https://issues.apache.org/jira/browse/CB-1479
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.1.0
         Environment: iOS 5.1.1, Cordova 2.1.0, iPad3
            Reporter: Klaus Schmidt
            Assignee: Shazron Abdullah


Hi,
I've updated my app from cordova 2.0.0 to the actual sourcecode of cordova 2.1.0.
The capturing of audio, video and image, which is working fine in 2.0.0, doesn't work any more. After start capturing with the following code
navigator.device.capture.captureAudio(processMediaFiles, errorCallback);
directly I get the following error:

2012-09-14 17:37:35.352 Test[8922:707] -[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0

2012-09-14 17:37:35.354 Test[8922:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0'

*** First throw call stack:

(0x35b6588f 0x33789259 0x35b68a9b 0x35b67915 0x35ac2650 0x497f3 0x68d55 0x686f7 0x689a5 0x35ac41fb 0x34f94747 0x35b39ad3 0x35b3929f 0x35b38045 0x35abb4a5 0x35abb36d 0x33856439 0x33293cd5 0x39e9 0x3980)

terminate called throwing an exception(gdb) 

Solution: I found out, that divergenting from the documenation, the "CDVCapture.m" for iOS capturing has not an optional parameter "options" in the call of .captureXY(success,error,[options]), the parameter "options" has now to be present, otherwise the error above occurs.
So, changing my call to be called with a blank options object, it works:
navigator.device.capture.captureAudio(processMediaFiles, errorCallback,{});

Can you please change the iOS code for "CDVCapture.m" or otherwise change the documentation for the options-parameter?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1479) Cordova 2.1 Capture Problem in no options provided

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1479:
---------------------------------

    Summary: Cordova 2.1 Capture Problem in no options provided  (was: Cordova 2.1 Capture Problem)
    
> Cordova 2.1 Capture Problem in no options provided
> --------------------------------------------------
>
>                 Key: CB-1479
>                 URL: https://issues.apache.org/jira/browse/CB-1479
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iOS 5.1.1, Cordova 2.1.0, iPad3
>            Reporter: Klaus Schmidt
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> Hi,
> I've updated my app from cordova 2.0.0 to the actual sourcecode of cordova 2.1.0.
> The capturing of audio, video and image, which is working fine in 2.0.0, doesn't work any more. After start capturing with the following code
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback);
> directly I get the following error:
> 2012-09-14 17:37:35.352 Test[8922:707] -[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0
> 2012-09-14 17:37:35.354 Test[8922:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0'
> *** First throw call stack:
> (0x35b6588f 0x33789259 0x35b68a9b 0x35b67915 0x35ac2650 0x497f3 0x68d55 0x686f7 0x689a5 0x35ac41fb 0x34f94747 0x35b39ad3 0x35b3929f 0x35b38045 0x35abb4a5 0x35abb36d 0x33856439 0x33293cd5 0x39e9 0x3980)
> terminate called throwing an exception(gdb) 
> Solution: I found out, that divergenting from the documenation, the "CDVCapture.m" for iOS capturing has not an optional parameter "options" in the call of .captureXY(success,error,[options]), the parameter "options" has now to be present, otherwise the error above occurs.
> So, changing my call to be called with a blank options object, it works:
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback,{});
> Can you please change the iOS code for "CDVCapture.m" or otherwise change the documentation for the options-parameter?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1479) Cordova 2.1 Capture Problem if no options provided

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-1479.
----------------------------------

    Resolution: Fixed

Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/5c529750
                
> Cordova 2.1 Capture Problem if no options provided
> --------------------------------------------------
>
>                 Key: CB-1479
>                 URL: https://issues.apache.org/jira/browse/CB-1479
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iOS 5.1.1, Cordova 2.1.0, iPad3
>            Reporter: Klaus Schmidt
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> Hi,
> I've updated my app from cordova 2.0.0 to the actual sourcecode of cordova 2.1.0.
> The capturing of audio, video and image, which is working fine in 2.0.0, doesn't work any more. After start capturing with the following code
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback);
> directly I get the following error:
> 2012-09-14 17:37:35.352 Test[8922:707] -[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0
> 2012-09-14 17:37:35.354 Test[8922:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0'
> *** First throw call stack:
> (0x35b6588f 0x33789259 0x35b68a9b 0x35b67915 0x35ac2650 0x497f3 0x68d55 0x686f7 0x689a5 0x35ac41fb 0x34f94747 0x35b39ad3 0x35b3929f 0x35b38045 0x35abb4a5 0x35abb36d 0x33856439 0x33293cd5 0x39e9 0x3980)
> terminate called throwing an exception(gdb) 
> Solution: I found out, that divergenting from the documenation, the "CDVCapture.m" for iOS capturing has not an optional parameter "options" in the call of .captureXY(success,error,[options]), the parameter "options" has now to be present, otherwise the error above occurs.
> So, changing my call to be called with a blank options object, it works:
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback,{});
> Can you please change the iOS code for "CDVCapture.m" or otherwise change the documentation for the options-parameter?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1479) Cordova 2.1 Capture Problem

Posted by "Becky Gibson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457168#comment-13457168 ] 

Becky Gibson commented on CB-1479:
----------------------------------

This is a byproduct of the change to the new exec format.  We should also update the mobile-spec tests to NOT pass in the optional options parameter.  I think the fix should be made in the code unless the other platforms are also not following the docs.  
                
> Cordova 2.1 Capture Problem
> ---------------------------
>
>                 Key: CB-1479
>                 URL: https://issues.apache.org/jira/browse/CB-1479
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iOS 5.1.1, Cordova 2.1.0, iPad3
>            Reporter: Klaus Schmidt
>            Assignee: Shazron Abdullah
>
> Hi,
> I've updated my app from cordova 2.0.0 to the actual sourcecode of cordova 2.1.0.
> The capturing of audio, video and image, which is working fine in 2.0.0, doesn't work any more. After start capturing with the following code
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback);
> directly I get the following error:
> 2012-09-14 17:37:35.352 Test[8922:707] -[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0
> 2012-09-14 17:37:35.354 Test[8922:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0'
> *** First throw call stack:
> (0x35b6588f 0x33789259 0x35b68a9b 0x35b67915 0x35ac2650 0x497f3 0x68d55 0x686f7 0x689a5 0x35ac41fb 0x34f94747 0x35b39ad3 0x35b3929f 0x35b38045 0x35abb4a5 0x35abb36d 0x33856439 0x33293cd5 0x39e9 0x3980)
> terminate called throwing an exception(gdb) 
> Solution: I found out, that divergenting from the documenation, the "CDVCapture.m" for iOS capturing has not an optional parameter "options" in the call of .captureXY(success,error,[options]), the parameter "options" has now to be present, otherwise the error above occurs.
> So, changing my call to be called with a blank options object, it works:
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback,{});
> Can you please change the iOS code for "CDVCapture.m" or otherwise change the documentation for the options-parameter?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1479) Cordova 2.1 Capture Problem if no options provided

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1479:
---------------------------------

    Summary: Cordova 2.1 Capture Problem if no options provided  (was: Cordova 2.1 Capture Problem in no options provided)
    
> Cordova 2.1 Capture Problem if no options provided
> --------------------------------------------------
>
>                 Key: CB-1479
>                 URL: https://issues.apache.org/jira/browse/CB-1479
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iOS 5.1.1, Cordova 2.1.0, iPad3
>            Reporter: Klaus Schmidt
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> Hi,
> I've updated my app from cordova 2.0.0 to the actual sourcecode of cordova 2.1.0.
> The capturing of audio, video and image, which is working fine in 2.0.0, doesn't work any more. After start capturing with the following code
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback);
> directly I get the following error:
> 2012-09-14 17:37:35.352 Test[8922:707] -[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0
> 2012-09-14 17:37:35.354 Test[8922:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0'
> *** First throw call stack:
> (0x35b6588f 0x33789259 0x35b68a9b 0x35b67915 0x35ac2650 0x497f3 0x68d55 0x686f7 0x689a5 0x35ac41fb 0x34f94747 0x35b39ad3 0x35b3929f 0x35b38045 0x35abb4a5 0x35abb36d 0x33856439 0x33293cd5 0x39e9 0x3980)
> terminate called throwing an exception(gdb) 
> Solution: I found out, that divergenting from the documenation, the "CDVCapture.m" for iOS capturing has not an optional parameter "options" in the call of .captureXY(success,error,[options]), the parameter "options" has now to be present, otherwise the error above occurs.
> So, changing my call to be called with a blank options object, it works:
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback,{});
> Can you please change the iOS code for "CDVCapture.m" or otherwise change the documentation for the options-parameter?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1479) Cordova 2.1 Capture Problem

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1479:
---------------------------------

    Fix Version/s: 2.2.0
    
> Cordova 2.1 Capture Problem
> ---------------------------
>
>                 Key: CB-1479
>                 URL: https://issues.apache.org/jira/browse/CB-1479
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iOS 5.1.1, Cordova 2.1.0, iPad3
>            Reporter: Klaus Schmidt
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> Hi,
> I've updated my app from cordova 2.0.0 to the actual sourcecode of cordova 2.1.0.
> The capturing of audio, video and image, which is working fine in 2.0.0, doesn't work any more. After start capturing with the following code
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback);
> directly I get the following error:
> 2012-09-14 17:37:35.352 Test[8922:707] -[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0
> 2012-09-14 17:37:35.354 Test[8922:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull objectForKey:]: unrecognized selector sent to instance 0x3f6695e0'
> *** First throw call stack:
> (0x35b6588f 0x33789259 0x35b68a9b 0x35b67915 0x35ac2650 0x497f3 0x68d55 0x686f7 0x689a5 0x35ac41fb 0x34f94747 0x35b39ad3 0x35b3929f 0x35b38045 0x35abb4a5 0x35abb36d 0x33856439 0x33293cd5 0x39e9 0x3980)
> terminate called throwing an exception(gdb) 
> Solution: I found out, that divergenting from the documenation, the "CDVCapture.m" for iOS capturing has not an optional parameter "options" in the call of .captureXY(success,error,[options]), the parameter "options" has now to be present, otherwise the error above occurs.
> So, changing my call to be called with a blank options object, it works:
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback,{});
> Can you please change the iOS code for "CDVCapture.m" or otherwise change the documentation for the options-parameter?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira