{ "id": "171159", "key": "TIMOB-25796", "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-22T00:25:44.000+0000", "created": "2018-02-22T14:39:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" }, { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" }, { "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-08-22T00:25:49.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\nAdding a HL created view to a Titanium view multiple times throws the following error\r\n\r\n{code}\r\n[ERROR] : \b\b \b----- Titanium Javascript Runtime Error -----\r\n[ERROR] : \b\b \bMessage: Uncaught Error: Runtime Error: add: unknown exception\r\n{code}\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar Canvas = require('Windows.UI.Xaml.Controls.Canvas');\r\nvar view = Ti.UI.createView({\r\n backgroundColor: 'white'\r\n});\r\nvar SolidColorBrush = require('Windows.UI.Xaml.Media.SolidColorBrush');\r\nvar Colors = require('Windows.UI.Colors');\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 view.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\n4. Click the view again a second time\r\n\r\nh5.Actual\r\n\r\nError shown above is thrown on the second click\r\n\r\nh5.Expected\r\n\r\nNo error should be thrown", "attachment": [], "flagged": false, "summary": "Windows: Adding a hyperloop created UI element to a View multiple times throws an error", "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, 7.0.2.GA\r\nWindows 10 1709\r\nWindows 10 Mobile Emulator 10.0.14393.0", "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": "434886", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1204", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-26T06:27:15.000+0000", "updated": "2018-02-26T06:27:15.000+0000" }, { "id": "439366", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*Closing ticket.*\r\n\r\nThe fix is present in SDK:\r\n\r\n{noformat}\r\n7.4.0.v20180718223310\r\n{noformat}\r\n\r\n*ENV*\r\n\r\n{noformat}\r\nNoka lumia 550 (Win 10) \r\nWs-emulator\r\nWindows 10 Pro: 1803\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.4\r\nTi CLI Ver: 5.1.1\r\nNode Ver: 8.9.1\r\nNPM Ver: 6.1.0\r\n{noformat}", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2018-07-20T15:08:01.000+0000", "updated": "2018-07-20T15:08:01.000+0000" }, { "id": "440975", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening this, just to update fixVersion.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-22T00:25:09.000+0000", "updated": "2018-08-22T00:25:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }