{ "id": "169892", "key": "TIMOB-25343", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-09-30T00:36:53.000+0000", "created": "2017-09-25T22:00:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19878", "name": "Hyperloop 2.1.3", "archived": false, "released": true, "releaseDate": "2017-08-04" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-09T06:47:52.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5. Description\r\nWhen attempting to get the Current ApplicationView using Hyperloop and the function GetForCurrentView(https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.applicationview#Windows_UI_ViewManagement_ApplicationView_GetForCurrentView) The App crashes with the error message attached.\r\n\r\nh5. Reproduction Steps\r\n# Run the attached sample app on Windows Simulator or device\r\n# Click on the \"Click me to Crash' label\r\n# App crashes.\r\n", "attachment": [ { "id": "63362", "filename": "app.zip", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-25T21:59:49.000+0000", "size": 7126441, "mimeType": "application/zip" } ], "flagged": false, "summary": "Windows: App crashes when attempting to access ApplicationView", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.15063\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 6.11.3\r\n npm Version = 3.10.10\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.9\r\n Core Package = 6.2.4\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n node-appc Version = 0.2.41\r\n\r\nTitanium SDKs\r\n 6.2.1.GA\r\n Version = 6.2.1\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.2.1.GA\r\n Platforms = android, mobileweb, windows\r\n git Hash = 301ffa4\r\n git Timestamp = 9/20/2017 00:47\r\n node-appc Version = 0.2.43\r\n\r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n Not compatible; Intel® CPU required\r\n\r\nJava Development Kit\r\n Version = 1.8.0_131\r\n Java Home = C:\\Program Files (x86)\\Java\\jdk1.8.0_131\r\n\r\nMicrosoft (R) Visual Studio\r\n 14.0 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\\r\n CLR Version = v4.0.30319\r\n MSBuild Version = v14.0.25420.1\r\n Windows Phone SDKs = not installed\r\n\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n", "closedSprints": [ { "id": 951, "state": "closed", "name": "2017 Sprint 20 SDK", "startDate": "2017-09-24T17:50:18.277Z", "endDate": "2017-10-08T17:50:00.000Z", "completeDate": "2017-10-09T20:38:07.840Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428440", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-26T01:15:42.000+0000", "updated": "2017-09-30T00:37:11.000+0000" }, { "id": "428611", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~kiguchi] We are in the QE-testing of 2.2.0 already, will this be part of 2.2.0? [~rramirez] Please let us know by Monday so we can decide whether it's already resolved by the supplied version or not, thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-29T18:33:57.000+0000", "updated": "2017-09-29T18:33:57.000+0000" }, { "id": "428616", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~rramirez] I am not able to reproduce the issue even on Hyperloop 2.1.3 & 2.2.0 + Titanium 6.2.0.GA. I guess you need to make sure to call {{GetForCurrentView()}} _after Window is actually opened_ because there's no Window to retrieve before Window is opened? I tested the code like below.\r\n\r\n{code}\r\nvar ApplicationView = require('Windows.UI.ViewManagement.ApplicationView');\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green' }),\r\n Button = require('Windows.UI.Xaml.Controls.Button'),\r\n button = new Button();\r\n\r\nwin.addEventListener('open', function() {\r\n var view = ApplicationView.GetForCurrentView();\r\n alert(view);\r\n});\r\n\r\nbutton.Content = 'CLOSE THIS WINDOW';\r\nbutton.addEventListener('Tapped', function (e) {\r\n win.close();\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\n[~hknoechel] Currently I'm guessing there's nothing to be fixed for this ticket.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-30T00:36:09.000+0000", "updated": "2017-09-30T00:36:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }