cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Hanselmann (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-4755) Crash in Media.setVolume
Date Fri, 06 Sep 2013 00:10:52 GMT

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

Michael Hanselmann updated CB-4755:
-----------------------------------

    Description: 
Media.setVolume causes the application to crash after Media.release was called:

{code}
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey:
object cannot be nil (key: 6df28c63-6f6b-29e5-b12f-09189833dbbd)'
*** First throw call stack:
([…])
libc++abi.dylib: terminate called throwing an exception
{code}

Reproduced using Cordova 2.7.0 and 3.0.9:

{code}
$ cordova -v
3.0.9
{code}

Code causing crash:

{code}
var m = new Media("test.caf");
m.release();
m.setVolume(1); // crash in this call
{code}

This works:

{code}
var m = new Media("test.caf");
m.release();
m.play();
m.setVolume(1);
{code}

When I look at {{-[Media setVolume:]}} I get the impression that it's unfinished in general.
If {{soundCache}} is nil it creates a cache, but doesn't do anything else.

  was:
Media.setVolume causes the application to crash after Media.release was called:

{code}
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey:
object cannot be nil (key: 6df28c63-6f6b-29e5-b12f-09189833dbbd)'
*** First throw call stack:
([…])
libc++abi.dylib: terminate called throwing an exception
{code}

Reproduced using Cordova 2.7.0 and 3.0.9:

{code}
$ cordova -v
3.0.9
{code}

Code causing crash:

{code}
var m = new Media("test.caf");
m.release();
m.setVolume(1); // crash in this call
{code}

This works:

{code}
var m = new Media("test.caf");
m.release();
m.play();
m.setVolume(1);
{code}

When I look at {{-[Media setVolume:]}} I get the impression that it's unfinished in general.
If {{soundCache}} is nil it creates a cache, but doesn't do anything further.

    
> Crash in Media.setVolume
> ------------------------
>
>                 Key: CB-4755
>                 URL: https://issues.apache.org/jira/browse/CB-4755
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 2.7.0, 3.0.0
>         Environment: Mac OS X 10.8.4, developing for iOS using Xcode 4.6.3
>            Reporter: Michael Hanselmann
>            Assignee: Steve Gill
>            Priority: Critical
>
> Media.setVolume causes the application to crash after Media.release was called:
> {code}
> *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '***
setObjectForKey: object cannot be nil (key: 6df28c63-6f6b-29e5-b12f-09189833dbbd)'
> *** First throw call stack:
> ([…])
> libc++abi.dylib: terminate called throwing an exception
> {code}
> Reproduced using Cordova 2.7.0 and 3.0.9:
> {code}
> $ cordova -v
> 3.0.9
> {code}
> Code causing crash:
> {code}
> var m = new Media("test.caf");
> m.release();
> m.setVolume(1); // crash in this call
> {code}
> This works:
> {code}
> var m = new Media("test.caf");
> m.release();
> m.play();
> m.setVolume(1);
> {code}
> When I look at {{-[Media setVolume:]}} I get the impression that it's unfinished in general.
If {{soundCache}} is nil it creates a cache, but doesn't do anything else.

--
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

Mime
View raw message