{ "id": "172060", "key": "TIMOB-26299", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-24T17:21:08.000+0000", "created": "2018-08-14T11:17:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "20183", "description": "", "name": "Release 7.4.0", "archived": false, "released": true, "releaseDate": "2018-09-17" }, { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-05T13:08:46.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": "It seems like our Ti.Media.AudioPlayer test-suite crashes in some situations. The crash report is attached and looks like being an issue with the KVO-observer we use to handle the AVPlayer API. I remember we had some issue with closing the audio-player and still listening to the KVO, so this may be similar.", "attachment": [ { "id": "65451", "filename": "mocha_2018-08-13-161358_morimoto-macos.crash", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-16T09:27:42.000+0000", "size": 162490, "mimeType": "application/octet-stream" }, { "id": "65440", "filename": "mocha_2018-08-13-163538_ginsu-macos06.crash", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-14T11:18:15.000+0000", "size": 162491, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: Ti.Media.AudioPlayer test-suite crashes in some situations", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "440817", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "While running the test case some times I am finding following crash - \r\n\r\n{code:java}\r\n[ERROR] The application has crashed with an uncaught exception 'NSInternalInconsistencyException'.\r\n[ERROR] Reason:\r\n[ERROR] stopAudioSession called too many times\r\n[ERROR] Stack trace:\r\n[ERROR] 0 CoreFoundation 0x0000000106f0673b __exceptionPreprocess + 331\r\n[ERROR] 1 libobjc.A.dylib 0x0000000105d47735 objc_exception_throw + 48\r\n[ERROR] 2 CoreFoundation 0x0000000106f064c2 +[NSException raise:format:arguments:] + 98\r\n[ERROR] 3 Foundation 0x00000001029cf1bf -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194\r\n[ERROR] 4 mocha 0x000000010026c773 -[TiMediaAudioSession stopAudioSession] + 339\r\n[ERROR] 5 mocha 0x00000001001aef73 -[TiMediaAudioPlayerProxy stop:] + 515\r\n[ERROR] 6 mocha 0x00000001001ac3b4 -[TiMediaAudioPlayerProxy _destroy] + 84\r\n[ERROR] 7 mocha 0x000000010019b5d9 -[TiProxy dealloc] + 105\r\n[ERROR] 8 libobjc.A.dylib 0x0000000105d59dcc _ZN11objc_object17sidetable_releaseEb + 202\r\n[ERROR] 9 mocha 0x00000001000d79fa -[KrollObject dealloc] + 138\r\n[ERROR] 10 libobjc.A.dylib 0x0000000105d59dcc _ZN11objc_object17sidetable_releaseEb + 202\r\n[ERROR] 11 mocha 0x00000001000d5d52 KrollFinalizer + 450\r\n[ERROR] 12 JavaScriptCore 0x000000010080bc3e _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE7destroyEPNS_6JSCellE + 110\r\n[ERROR] 13 JavaScriptCore 0x0000000100f871cf _ZN3JSC11MarkedBlock6Handle16specializedSweepILb1ELNS1_9EmptyModeE1ELNS1_9SweepModeE0ELNS1_20SweepDestructionModeE1ELNS1_12ScribbleModeE0ELNS1_18NewlyAllocatedModeE1ELNS1_9MarksModeE1ENS_31JSDestructibleObjectDestroyFuncEEEvPNS_8FreeListES3_S4_S5_S6_S7_S8_RKT6_ + 175\r\n{code}\r\n\r\nwhich shows the problem is with Ti.Media.AudioPlayer not with Ti.Media.VideoPlayer.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-16T09:22:03.000+0000", "updated": "2018-08-16T09:22:03.000+0000" }, { "id": "440818", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks [~vijaysingh], I updated the ticket to reflect that! TIMOB-26302 may also be related then. I was curious anyway, why the video-player changes would begin to crash again months after running successfully.\r\n\r\n*EDIT*: I think we may have two different kind of crashes:\r\n- One for stopping the audio player (see above)\r\n- One for not properly cleaned up observers (see crash-logs moved over from TIMOB-26302)\r\n\r\n*EDIT 2*: It looks like we are using {{stopAudioSession}} too many times.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-16T09:25:33.000+0000", "updated": "2018-08-16T09:29:56.000+0000" }, { "id": "440843", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/10260", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-17T06:04:04.000+0000", "updated": "2018-08-17T06:04:04.000+0000" }, { "id": "442340", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket* Ti.Media.AudioPlayer test-suite no longer showing any crashes.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-05T13:08:38.000+0000", "updated": "2018-10-05T13:08:38.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }