{ "id": "139355", "key": "TIMOB-17997", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-11-28T06:45:33.000+0000", "created": "2014-11-10T22:02:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "audioplayer", "ios", "module_media", "mp3", "qe-3.4.1", "qe-manualtest" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-11-28T06:45:33.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Calling start() or play() on an AudioPlayer that has the url set to a local file results in a crash:\r\n{code}\r\n[DEBUG] : Application booted in 146.823049 ms\r\n[DEBUG] : -[__NSCFDictionary close]: unrecognized selector sent to instance 0x14ebef40\r\n[ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] : Reason:\r\n[ERROR] : -[__NSCFDictionary close]: unrecognized selector sent to instance 0x14ebef40\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x26068c1f + 126\r\n[ERROR] : 1 libobjc.A.dylib 0x33870c8b objc_exception_throw + 38\r\n[ERROR] : 2 CoreFoundation 0x2606e039 + 0\r\n[ERROR] : 3 CoreFoundation 0x2606bf57 + 714\r\n[ERROR] : 4 CoreFoundation 0x25f9ddf8 _CF_forwarding_prep_0 + 24\r\n[ERROR] : 5 MediaModule 0x0022316b MediaModule + 1692011\r\n[ERROR] : 6 Foundation 0x26d77b5b + 1118\r\n[ERROR] : 7 libsystem_pthread.dylib 0x33f33e93 + 138\r\n[ERROR] : 8 libsystem_pthread.dylib 0x33f33e07 _pthread_start + 118\r\n[ERROR] : 9 libsystem_pthread.dylib 0x33f31b90 thread_start + 8\r\n[ERROR] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary close]: unrecognized selector sent to instance 0x14ebef40'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (0x26068c1f 0x33870c8b 0x2606e039 0x2606bf57 0x25f9ddf8 0x22316b 0x26d77b5b 0x33f33e93 0x33f33e07 0x33f31b90)\r\n{code}\r\n\r\n*Steps to reproduce issue*:\r\n1. Create a project with the attached files\r\n2. Launch the app on an iOS device and click 'play'\r\n3. Notice that the app crashes, occasionally with the above error\r\n\r\n*Expected results*:\r\nThe local file is played properly or no crash is witnessed if the file/method is unsupported.\r\n\r\n*Notes*:\r\nsnippet for reference:\r\n{code}\r\nvar audioPlayer = Ti.Media.createAudioPlayer({\r\n\turl : 'toddle.mp3'\r\n});\r\nvar but = Ti.UI.createButton({\r\n\ttitle : 'Play',\r\n\ttop : 20,\r\n});\r\nbut.addEventListener('click', function(e) {\r\n\taudioPlayer.start();\r\n\talert(\" Playing !!\");\r\n});\r\n{code}", "attachment": [ { "id": "52438", "filename": "audioPlayerTest.zip", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-10T22:02:22.000+0000", "size": 691891, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: playing local file in AudioPlayer results in crash", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 3.4.0.201409261245\r\nTitanium SDK 3.4.0\r\nCLI 3.4.0\r\nXcode 6.1.0\r\niPhone 6, iOS 8.1\r\niPhone 5, iOS 7.1.1", "closedSprints": [ { "id": 258, "state": "closed", "name": "2014 Sprint 24 SDK", "startDate": "2014-11-24T22:28:25.425Z", "endDate": "2014-12-06T01:00:00.000Z", "completeDate": "2014-12-08T17:21:15.171Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "333366", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Added support for local audio file playback.\r\nPR Here: https://github.com/appcelerator/titanium_mobile/pull/6378", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-24T09:42:45.000+0000", "updated": "2014-11-24T09:42:45.000+0000" }, { "id": "333451", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_5_X\r\nhttps://github.com/appcelerator/titanium_mobile/pull/6389", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-24T19:42:41.000+0000", "updated": "2014-11-24T19:42:41.000+0000" }, { "id": "333805", "author": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "body": "The local file is played properly without any crash.\r\nTested on the below Environment: \r\n1. Mac OSX Yosemite 10.10\r\n2. Appcelerator Studio, build: 3.4.1.201410281743\r\n3. Titanium SDK, build: 3.5.0.v20141125154115\r\n4. Titanium CLI, build: 3.4.1\r\n5. Alloy: 1.5.1\r\n6. Xcode 6.1\r\n7. iOS SDK 8.1\r\n8. iPhone 5s with iOS 8.1\r\n", "updateAuthor": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-11-26T03:16:53.000+0000", "updated": "2014-11-26T03:16:53.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }