Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DA4210B54 for ; Thu, 16 Jan 2014 00:24:21 +0000 (UTC) Received: (qmail 41069 invoked by uid 500); 16 Jan 2014 00:24:20 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 40998 invoked by uid 500); 16 Jan 2014 00:24:19 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 40987 invoked by uid 99); 16 Jan 2014 00:24:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 00:24:19 +0000 Date: Thu, 16 Jan 2014 00:24:19 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4755) Crash in Media.setVolume MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-4755?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1387286= 7#comment-13872867 ]=20 Shazron Abdullah commented on CB-4755: -------------------------------------- Confirmed the crash, and confirmed the patch fixes the crash. Pulling in patch. > Crash in Media.setVolume > ------------------------ > > Key: CB-4755 > URL: https://issues.apache.org/jira/browse/CB-4755 > Project: Apache Cordova > Issue Type: Bug > Components: iOS, 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: Shazron Abdullah > Priority: Critical > Fix For: 3.4.0 > > > Media.setVolume causes the application to crash after Media.release was c= alled: > {code} > *** Terminating app due to uncaught exception 'NSInvalidArgumentException= ', reason: '*** setObjectForKey: object cannot be nil (key: 6df28c63-6f6b-2= 9e5-b12f-09189833dbbd)' > *** First throw call stack: > ([=E2=80=A6]) > 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 =3D new Media("test.caf"); > m.release(); > m.setVolume(1); // crash in this call > {code} > This works: > {code} > var m =3D 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 unf= inished in general. If {{soundCache}} is nil it creates a cache, but doesn'= t do anything else. -- This message was sent by Atlassian JIRA (v6.1.5#6160)