{ "id": "171152", "key": "TIMOB-25794", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-02-22T23:10:59.000+0000", "created": "2018-02-21T18:15:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" }, { "id": "20099", "name": "Release 7.2.0", "archived": false, "released": true, "releaseDate": "2018-06-14" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-05-16T23:37:55.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" }, { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\n*This is a regression from 7.0.2.GA*\r\n\r\nWhen adding a UI element that is created using hyperloop to a Ti.UI.View the app will crash with no logs\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar Canvas = require('Windows.UI.Xaml.Controls.Canvas');\r\nvar SolidColorBrush = require('Windows.UI.Xaml.Media.SolidColorBrush');\r\nvar Colors = require('Windows.UI.Colors');\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor: 'fuchsia'\r\n});\r\nvar box = new Canvas();\r\nbox.Background = new SolidColorBrush(Colors.Red);\r\nbox.Width = 50;\r\nbox.Height = 50;\r\nwin.addEventListener('click', function() {\r\n\tview.add(box); \r\n});\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the above code to an existing classic project with hyperloop setup\r\n2. Build for any Windows target\r\n3. Click the view when the app launches\r\n\r\nh5.Actual\r\n\r\nApp crashes\r\n\r\nh5.Expected\r\n\r\nApp should not crash", "attachment": [], "flagged": false, "summary": "Windows: Adding a hyperloop created UI element to a View crashes the app", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "SDK: 7.2.0.v20180221081245, 7.1.0.v20180221064031\r\nWindows 10 1709\r\nWindows 10 Mobile Emulator 10.0.14393.0", "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "434726", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Note, this was found while running through the hyperloop-examples app, namely the View Animation example https://github.com/appcelerator/hyperloop-examples/blob/master/app/views/windows/animateview.xml", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-02-21T20:13:03.000+0000", "updated": "2018-02-21T20:13:03.000+0000" }, { "id": "434749", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/1200\r\n7_1_0: https://github.com/appcelerator/titanium_mobile_windows/pull/1201", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-22T04:06:48.000+0000", "updated": "2018-02-22T04:06:48.000+0000" }, { "id": "434796", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-22T23:10:59.000+0000", "updated": "2018-02-22T23:10:59.000+0000" }, { "id": "435191", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified changes in 7.2.0.v20180302144729 and 7.1.0.v20180302141418.\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-03-05T13:40:58.000+0000", "updated": "2018-03-05T13:40:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }