{ "id": "124176", "key": "TIMOB-16134", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-21T00:24:11.000+0000", "created": "2013-12-24T16:13:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_media", "qe-manualtest" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "38218", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "131434", "key": "AC-897", "fields": { "summary": "Android: Creating/playing Sound objects can cause app to crash on exit", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2015-05-07T19:20:01.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": "Normal using of mediaplayer generated an error on console:\r\n\r\n[ERROR] : MediaPlayer: Should have subtitle controller already set\r\n\r\nHint: http://stackoverflow.com/questions/20166186/android-mediaplayer-warning-should-have-subtitle-controller-already-set", "attachment": [ { "id": "44964", "filename": "Screen Shot 2014-01-06 at 11.02.09 AM.png", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T06:01:21.000+0000", "size": 73003, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: MediaPlayer on KitKat displays console error about subtitle controller", "creator": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android, 19", "closedSprints": [ { "id": 154, "state": "closed", "name": "2014 Sprint 15 SDK", "startDate": "2014-07-21T21:56:31.515Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T21:03:51.067Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "285818", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We would be happy to look at this issue if you can provide a simple test case to reproduce this issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-26T06:17:46.000+0000", "updated": "2013-12-26T06:17:46.000+0000" }, { "id": "286892", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue on Android KitKat device. Running above test case prints an error on the Studio console but the test works fine. Please see the attached screenshot for reference.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T06:00:47.000+0000", "updated": "2014-01-07T06:00:47.000+0000" }, { "id": "294294", "author": { "name": "matt_m", "key": "matt_m", "displayName": "Matt Moskal", "active": true, "timeZone": "America/New_York" }, "body": "This error is not always innocuous. Intermittently it will crash the app. I can't see what specific conditions are needed for this error to crash the app, but see the error in the crash logs on Google Play.\r\n\r\n[ERROR] : MediaPlayer: Should have subtitle controller already set\r\n[WARN] : dalvikvm: threadid=35: thread exiting with uncaught exception (group=0x41753ba8)\r\n[ERROR] : TiApplication: (Timer-23) [67747,68173] Sending event: exception on thread: Timer-23 msg:java.lang.IllegalStateException; Titanium 3.2.0,2013/12/20 10:57,d9182d6\r\n[ERROR] : TiApplication: java.lang.IllegalStateException\r\n[ERROR] : TiApplication: \tat android.media.MediaPlayer.isPlaying(Native Method)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.media.TiSound$2.run(TiSound.java:516)\r\n[ERROR] : TiApplication: \tat java.util.Timer$TimerImpl.run(Timer.java:284)\r\n[ERROR] : MediaPlayer: Should have subtitle controller already set\r\n\r\n", "updateAuthor": { "name": "matt_m", "key": "matt_m", "displayName": "Matt Moskal", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-23T14:30:23.000+0000", "updated": "2014-02-23T14:30:23.000+0000" }, { "id": "295174", "author": { "name": "asbadve", "key": "asbadve", "displayName": "ajinkya sadanand badve", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey i m having the same error please anybody help.............", "updateAuthor": { "name": "asbadve", "key": "asbadve", "displayName": "ajinkya sadanand badve", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-01T18:02:51.000+0000", "updated": "2014-03-01T18:02:51.000+0000" }, { "id": "308045", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TC-4236 has a very detailed description and workaround for this issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T17:37:34.000+0000", "updated": "2014-06-09T17:37:34.000+0000" }, { "id": "310205", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Given the existence of a workaround, moving this into 3.3.1.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-20T17:36:36.000+0000", "updated": "2014-06-20T17:36:36.000+0000" }, { "id": "311116", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/5855\r\n\r\nLooking at the Android source for mediaplayer, the error message about \"subtitle controller\" is just a information message saying that the subtitle controller is not set and doesn't cause any problem. The real issue is correctly described in TC-4236. If the timer event get executed during media player is releasing, calling isPlaying will throw IllegalStateException as described in the Android documentation. \r\nThe changes are\r\nJust like in other places, handle the exception while calling isPlaying.\r\nStop the progress timer in 'onDestroy' and 'release' before media player is released.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-26T18:03:48.000+0000", "updated": "2014-06-26T18:03:48.000+0000" }, { "id": "315531", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The error itself is innocuous. But the associated PR addresses the crash reported in TC-4236.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-23T20:47:38.000+0000", "updated": "2014-07-23T20:47:38.000+0000" }, { "id": "319616", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\nThe PR above only fixes the crash case & we still see the error. But, the error is innocuous.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.0.201408180158\r\nTi SDK : 3.4.0.v20140819094113\r\nMac OSX : 10.8.5\r\nAlloy : 1.5.0-dev\r\nCLI - 3.4.0-dev\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-21T00:23:14.000+0000", "updated": "2014-08-21T00:23:14.000+0000" }, { "id": "351955", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Now I see the error twice each time I play a local video file. With remote file, the error shows only once.\r\n\r\nI wonder why the error shows twice with local files?\r\n\r\nI tested it on Android 5.0 and SDK 3.5.1.\r\n\r\n", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-07T19:20:01.000+0000", "updated": "2015-05-07T19:20:01.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }