Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.7.0, 3.0.0
-
None
-
Mac OS X 10.8.4, developing for iOS using Xcode 4.6.3
Description
Media.setVolume causes the application to crash after Media.release was called:
*** 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
Reproduced using Cordova 2.7.0 and 3.0.9:
$ cordova -v 3.0.9
Code causing crash:
var m = new Media("test.caf"); m.release(); m.setVolume(1); // crash in this call
This works:
var m = new Media("test.caf"); m.release(); m.play(); m.setVolume(1);
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.