{ "id": "175688", "key": "TIMOB-28217", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-04-08T15:21:44.000+0000", "created": "2020-11-02T22:48:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "videoplayer" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-07-23T17:34:11.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": "When setting property 'showControl' at creation time of Ti.Media.VideoPlayer and 'url' property later is crashing the app.\r\n\r\nTest Case - \r\n\r\n{code:java}\r\nvar basewin = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n\tlayout : 'vertical'\r\n});\r\n\r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n top : 120,\r\n autoplay : false,\r\n backgroundColor : 'blue',\r\n height : 300,\r\n width : 300,\r\n mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT,\r\n showsControls: true,\r\n // url: 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4' // Setting url at creation time will not crash\r\n});\r\n\r\nvideoPlayer.url = 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4';\r\nbasewin.add(videoPlayer);\r\nbasewin.open();\r\n{code}\r\n\r\n\r\nWork around - \r\n Set url property at Ti.Media.VideoPlayer creation time.\r\n", "attachment": [], "flagged": false, "summary": "iOS: Ti.Media.VideoPlayer is crashing when setting showsControls earlier than url property ", "creator": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1219, "state": "closed", "name": "2021 Sprint 5", "startDate": "2021-03-01T19:02:00.000Z", "endDate": "2021-03-12T19:02:00.000Z", "completeDate": "2021-03-15T03:30:49.472Z", "originBoardId": 114 }, { "id": 1220, "state": "closed", "name": "2021 Sprint 6", "startDate": "2021-03-15T03:31:12.088Z", "endDate": "2021-03-27T03:31:00.000Z", "completeDate": "2021-03-26T19:18:15.760Z", "originBoardId": 114 }, { "id": 1221, "state": "closed", "name": "2021 Sprint 7", "startDate": "2021-03-29T19:18:00.000Z", "endDate": "2021-04-09T19:18:00.000Z", "completeDate": "2021-04-12T21:26:15.427Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458316", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/12508", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-01T20:57:08.000+0000", "updated": "2021-03-01T20:57:08.000+0000" }, { "id": "458535", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-07T14:48:04.000+0000", "updated": "2021-04-07T14:48:04.000+0000" }, { "id": "458551", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X branches", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-04-08T15:21:41.000+0000", "updated": "2021-04-08T15:21:41.000+0000" }, { "id": "458899", "author": { "name": "antonioduran", "key": "antonioduran", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello. Good afternoon.\r\n\r\nI am still getting the crash even adding the workaround suggested. This is a critical issue.\r\nWhen I try to set the url property on the controller of the video component, the app is crashing. \r\nWith {color:#14892c}9.3.2.GA it is working pretty good{color}, but with TiSDK {color:#d04437}10.0.0.GA it is still crashing.{color}\r\n\r\n*I am using the following specs:*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 9.0.1\r\nNode.js\r\n Node.js Version = 14.17.3\r\n npm Version = 6.14.13\r\n\r\nAppcelerator CLI\r\n Installer = 6.0.0\r\n Core Package = 9.0.1\r\n\r\nTitanium CLI\r\n CLI Version = 5.3.2\r\n node-appc Version = 1.1.2\r\n{code}\r\n\r\n*Log:*\r\n{code:java}\r\n[DEBUG] *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller: should have parent view controller: but actual parent is:'\r\n[DEBUG] *** First throw call stack:\r\n[DEBUG] ( \r\n[DEBUG] 0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242\r\n[DEBUG] 1 libobjc.A.dylib 0x00007fff20193ff5 objc_exception_throw + 48\r\n[DEBUG] 2 CoreFoundation 0x00007fff20422e98 -[NSException initWithCoder:] + 0\r\n[DEBUG] 3 UIKitCore 0x00007fff24c01690 -[UIView(Hierarchy) _associatedViewControllerForwardsAppearanceCallbacks:performHierarchyCheck:isRoot:] + 225\r\n[DEBUG] 4 UIKitCore 0x00007fff24c01dfc -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 334\r\n[DEBUG] 5 UIKitCore 0x00007fff24c02c97 _makeSubTreePerformSelector + 631\r\n[DEBUG] 6 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 7 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 8 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 9 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 10 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 11 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 12 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 13 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 14 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 15 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 16 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 17 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 18 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 19 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 20 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 21 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 22 UIKitCore 0x00007fff24c02cb4 _makeSubTreePerformSelector + 660\r\n[DEBUG] 23 UIKitCore 0x00007fff24c11fb5 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 484\r\n[DEBUG] 24 demo 0x0000000102177247 -[DkNappDrawerDrawer controller] + 3338\r\n[DEBUG] 25 demo 0x00000001021777de -[DkNappDrawerDrawer frameSizeChanged:bounds:] + 35\r\n[DEBUG] 26 TitaniumKit 0x00000001026bfe43 -[TiUIView checkBounds] + 517\r\n[DEBUG] 27 TitaniumKit 0x00000001026c00be -[TiUIView setBounds:] + 83\r\n[DEBUG] 28 TitaniumKit 0x00000001026d4e5b -[TiViewProxy relayout] + 842\r\n[DEBUG] 29 TitaniumKit 0x00000001026d435a -[TiViewProxy refreshView:] + 405\r\n[DEBUG] 30 TitaniumKit 0x00000001026d50a0 -[TiViewProxy layoutChildrenIfNeeded] + 141\r\n[DEBUG] 31 TitaniumKit 0x00000001026f4b5c performLayoutRefresh + 272\r\n[DEBUG] 32 CoreFoundation 0x00007fff2039178a __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20\r\n[DEBUG] 33 CoreFoundation 0x00007fff2039127c __CFRunLoopDoTimer + 924\r\n[DEBUG] 34 CoreFoundation 0x00007fff2039081a __CFRunLoopDoTimers + 265\r\n[DEBUG] 35 CoreFoundation 0x00007fff2038ae69 __CFRunLoopRun + 2013\r\n[DEBUG] 36 CoreFoundation 0x00007fff2038a1a7 CFRunLoopRunSpecific + 567\r\n[DEBUG] 37 GraphicsServices 0x00007fff2b874d85 GSEventRunModal + 139\r\n[DEBUG] 38 UIKitCore 0x00007fff246c14df -[UIApplication _run] + 912\r\n[DEBUG] 39 UIKitCore 0x00007fff246c639c UIApplicationMain + 101\r\n[DEBUG] 40 demo 0x0000000101cc2ba2 main + 1170\r\n[DEBUG] 41 libdyld.dylib 0x00007fff2025abbd start + 1\r\n[DEBUG] 42 ??? 0x0000000000000001 0x0 + 1\r\n[DEBUG] ) \r\n[DEBUG] libc++abi: terminating with uncaught exception of type NSException\r\n{code}\r\n\r\nNote: Perhaps this crash is due that I am using the module of :\r\n{code:java}\r\n dk.napp.drawer\r\n{code}\r\n\r\nPlease let me know whether you have any doubt or question.\r\n\r\nThanks, and best,\r\nAntonio Duran.", "updateAuthor": { "name": "antonioduran", "key": "antonioduran", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-07-23T17:34:11.000+0000", "updated": "2021-07-23T17:34:11.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }