{ "id": "83508", "key": "TIMOB-6523", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-07T22:42:48.000+0000", "created": "2011-12-08T17:32:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T22:42:48.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Titanium.Media.Sound using V8/Rhino crashes on play or repeated play. This occurs in 1.7.5 and 1.8.0.1. The crashes occur in 2.x (occurs after less clicks in V8). Android 3.x/4.0 haven't crashed, but in 3.x the app locked-up. There were instances of 2.x losing sound capabilities (in the app) without a crash, but with similar logs. None of this occurs in iOS. Crash log attached.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run the following code in a new app (sound file attached).\r\n\r\n{code}\r\nvar playCounter = 0;\r\n\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff',\r\n orientationModes:[Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle:'click'\r\n});\r\nbutton.addEventListener('click', Playsound);\r\nwin.add(button);\r\n\r\nwin.open();\r\n\r\nfunction Playsound(){\r\n\tplayCounter++;\r\n\tTi.API.info(\"Playing sound, nr: \" + playCounter);\r\n\tvar player =Ti.Media.createSound({\r\n\t\turl: \"cat.mp3\"\r\n\t});\r\n\t\r\n\tplayer.addEventListener('complete', function(e) {\r\n\t\tplayer.release();\r\n\t\tplayer = null;\r\n\t\tTi.API.info(\"Sound played correctly\");\r\n\t});\r\n\tplayer.play();\r\n}\r\n{code}\r\n\r\n2. Press the 'click' button repeatedly (a dozen times).\r\n\r\nExpected Result:\r\n\r\nThe sounds should play.\r\n\r\nActual Result:\r\n\r\nThe app crashes, sometimes on the first click. Alternately, the click button will no longer play sounds, or no longer register click events.", "attachment": [ { "id": "24535", "filename": "android sound crash.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-08T17:32:21.000+0000", "size": 7530, "mimeType": "text/plain" }, { "id": "24534", "filename": "cat.mp3", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-08T17:32:21.000+0000", "size": 23822, "mimeType": "audio/mp3" } ], "flagged": false, "summary": "Android: Titanium.Media.Sound - V8/Rhino - Android 2.x - player crashes on play or repeated play", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.0.1.v20111208104316\r\nAndroid Runtimes: V8/Rhino\r\nStudio: 1.0.7.201112080131\r\nOS: OS X Lion\r\nDevices Affected: Droid 2.2.2, Nexus S 2.3.6\r\nDevices Tested: Droid 2.2.2, Nexus S 2.3.6, Galaxy Tab 10.1 3.1, Android Emulator 4.0, iPhone 5.0.1, iPhone Simulator 5.0", "comment": { "comments": [ { "id": "421292", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the time passed and lack of progress.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T22:42:48.000+0000", "updated": "2017-06-07T22:42:48.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }