{ "id": "172064", "key": "TIMOB-26302", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-08-16T09:26:43.000+0000", "created": "2018-08-14T15:17:09.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" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-16T09:26:43.000+0000", "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" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{code}\r\nProcess: mocha [41373]\r\nPath: /Users/*/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E206107B-E272-4DE2-922F-0C10E7E9984A/mocha.app/mocha\r\nIdentifier: mocha\r\nVersion: 1.0 (1.0)\r\nCode Type: X86-64 (Native)\r\nParent Process: launchd_sim [41097]\r\nResponsible: mocha [41373]\r\nUser ID: 500\r\n\r\nDate/Time: 2018-08-13 16:11:40.013 -0700\r\nOS Version: Mac OS X 10.13.5 (17F77)\r\nReport Version: 12\r\nAnonymous UUID: EF6D0BE3-DF74-457D-1081-DCCAC848D60F\r\n\r\n\r\nTime Awake Since Boot: 4000000 seconds\r\n\r\nSystem Integrity Protection: enabled\r\n\r\nCrashed Thread: 0 Dispatch queue: com.apple.main-thread\r\n\r\nException Type: EXC_BAD_ACCESS (SIGSEGV)\r\nException Codes: EXC_I386_GPFLT\r\nException Note: EXC_CORPSE_NOTIFY\r\n\r\nTermination Signal: Segmentation fault: 11\r\nTermination Reason: Namespace SIGNAL, Code 0xb\r\nTerminating Process: exc handler [0]\r\n\r\nApplication Specific Information:\r\nCoreSimulator 570 - Device: iPhone 7 Plus - Runtime: iOS 12.0 (16A5327d) - DeviceType: iPhone 7 Plus\r\n\r\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n0 libobjc.A.dylib \t0x00000001126e8f74 object_isClass + 18\r\n1 com.apple.Foundation \t0x000000010f3d3815 KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED + 58\r\n2 com.apple.Foundation \t0x000000010f3cfbce NSKeyValueWillChangeWithPerThreadPendingNotifications + 282\r\n3 com.apple.avfoundation \t0x00000001121a4388 __avplayeritem_fpItemNotificationCallback_block_invoke + 7489\r\n4 libdispatch.dylib \t0x00000001142cf025 _dispatch_call_block_and_release + 12\r\n5 libdispatch.dylib \t0x00000001142d00dd _dispatch_client_callout + 8\r\n6 libdispatch.dylib \t0x00000001142dc070 _dispatch_main_queue_callback_4CF + 1290\r\n7 com.apple.CoreFoundation \t0x0000000113737529 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n8 com.apple.CoreFoundation \t0x0000000113731ba6 __CFRunLoopRun + 2342\r\n9 com.apple.CoreFoundation \t0x0000000113730f41 CFRunLoopRunSpecific + 625\r\n10 com.apple.GraphicsServices \t0x0000000118b7a1b5 GSEventRunModal + 62\r\n11 com.apple.UIKitCore \t0x000000011e98fdf4 UIApplicationMain + 140\r\n12 com.appcelerator.testApp.testing\t0x000000010ca8d656 main + 102 (main.m:30)\r\n13 libdyld.dylib \t0x000000011433f9ed start + 1\r\n{code}", "attachment": [ { "id": "65441", "filename": "mocha_2018-08-13-145817_ginsu-macos07.crash", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-08-14T15:21:54.000+0000", "size": 164470, "mimeType": "application/octet-stream" }, { "id": "65442", "filename": "mocha_2018-08-13-161358_morimoto-macos.crash", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-08-14T15:21:54.000+0000", "size": 162490, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: Crash during cleanup of Ti.Media.VideoPlayer", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "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": "440760", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Saw this on a CI build of master: https://jenkins.appcelerator.org/job/titanium-sdk/job/titanium_mobile/job/master/1274\r\n\r\nThe crash happened during the Ti.Network.HTTPClient tests, but I assume it was just a timing artifact. The Ti.Media.VideoPlayer tests did show failures:\r\n\r\n{code}\r\n08:01:06 [iOS unit tests] [INFO] : \b\b \b !TEST_START: Close window containing a video player (TIMOB-25574)\r\n08:01:06 [iOS unit tests] [INFO] : \b\b \b !TEST_END: {\"state\":\"failed\",\"duration\":0,\"suite\":\"Titanium.Media.VideoPlayer\",\"title\":\"Close window containing a video player (TIMOB-25574)\",\"error\":{\"line\":123,\"column\":15,\"sourceURL\":\"file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti.media.videoplayer.test.js\"},\"message\":\"file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A\",\"stack\":\" C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti.media.videoplayer.test.js:123:15\\n run@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4355:18\\n runTest@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4759:13\\n file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4836:18\\n next@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4684:15\\n file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4694:10\\n next@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4632:26\\n file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4661:9\\n timeslice@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:5760:26\"}\r\n08:01:06 [iOS unit tests] [INFO] : \b\b \b !TEST_START: Release video player and close window (TIMOB-26033)\r\n08:01:06 [iOS unit tests] [INFO] : \b\b \b !TEST_END: {\"state\":\"failed\",\"duration\":92,\"suite\":\"Titanium.Media.VideoPlayer\",\"title\":\"Release video player and close window (TIMOB-26033)\",\"error\":{\"line\":188,\"column\":15,\"sourceURL\":\"file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti.media.videoplayer.test.js\"},\"message\":\"file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A\",\"stack\":\" C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti.media.videoplayer.test.js:188:15\\n run@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4355:18\\n runTest@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4759:13\\n file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4836:18\\n next@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4684:15\\n file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4694:10\\n next@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4632:26\\n file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:4661:9\\n timeslice@file:///Users/build/Library/Developer/CoreSimulator/Devices/3DD60DC9-6139-4EE1-8A1C-4558D4FF3C94/data/Containers/Bundle/Application/E224686A-0866-49D1-B271-BF533A9F9E0F/mocha.app/ti-mocha.js:5760:26\"}\r\n08:01:06 [iOS unit tests] [INFO] : \b\b \b !TEST_START: NETWORK_LAN\r\n08:01:06 [iOS unit tests] [INFO] : \b\b \b !TEST_END: {\"state\":\"passed\",\"duration\":29,\"suite\":\"Titanium.Network\",\"title\":\"NETWORK_LAN\",\"message\":\"\"}\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-08-14T15:19:48.000+0000", "updated": "2018-08-14T15:19:48.000+0000" }, { "id": "440761", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "It's possible that maybe this *isn't* VideoPlayer causing the underlying issue but exhibiting issues due to AudioPlayer misbehaving?\r\n\r\nI just merged over updated unit tests, and perhaps those are the root cause? https://github.com/appcelerator/titanium-mobile-mocha-suite/commit/5c5319dd8dc9a9517b5197d6ebbe8a710888dec7#diff-16dc62f5cc1bf8fcc5df9a0110fe236f\r\n\r\nBasically the AudioPlayer tests now play an mp3 file and set the var to null after each test. I know we recently moved to AVPlayer for Ti.Media.AudioPlayer too: https://github.com/appcelerator/titanium_mobile/commit/e05931ff409acec6739f9606324ade6f10e02706", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-08-14T15:26:19.000+0000", "updated": "2018-08-14T15:26:19.000+0000" }, { "id": "440777", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "You may be right. On iOS, we recently moved the observer-cleanup of the video-player from {{_destroy}} to {{viewDidDetach}}, which is the saver way to do it. For the audio-player it is still in the old place, which could cause it. I will write some tests for this tomorrow.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-14T21:37:06.000+0000", "updated": "2018-08-14T21:37:06.000+0000" }, { "id": "440819", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "As TIMOB-26299 was recently discovered to be AudioPlayer related as well, I will resolve this one as a duplicate of the other one and work with [~vijaysingh] to identify more possible issues.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-16T09:26:43.000+0000", "updated": "2018-08-16T09:26:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }