{ "id": "169434", "key": "TIMOB-25081", "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": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-01-10T22:33:27.000+0000", "created": "2017-08-10T10:35:06.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" } ], "issuelinks": [ { "id": "56022", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "169711", "key": "TIMOB-25242", "fields": { "summary": "Android: V8Exception on launch", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:49:15.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Issue Description:*\r\n\r\nWith an app that has Webview on Android. When I close the app (window.close() or Titanium.Android.currentActivity.finish()). I open and close the app the same way again. The next time I click to open the app I get a Runtime error.\r\n\r\nLocation:ti:/module.js\r\nMessage: Uncaught TypeError: Cannot use 'in' operator to search for 'Resources/alloy' in null\r\nSource:return filename in fileIndex;\r\n\r\n*Steps to reproduce*:\r\n1. Create an alloy app and replace with the test code below.\r\n2. When you run it, then press back button on device to close the window. Wait a few seconds. Open again, then repeat. Then it should show the error.\r\n\r\n*Test Code:*\r\nIndex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.js\r\n{code}\r\nvar webview = Titanium.UI.createWebView({url:'http://www.appcelerator.com'});\r\n$.index.add(webview);\r\nfunction doClick(e) {\r\n\talert($.label.text);\r\n}\r\n//$.webview.url = 'http://www.appcelerator.com'; \r\n$.index.open();\r\n$.index.addEventListener('android:back', function(){\r\n // close your current window\r\n\twebview.release();\r\n\t$.index.remove(webview);\r\n\t\r\n\twebview = null;\r\n\tvar activity = Titanium.Android.currentActivity;\r\n\tactivity.finish();\r\n});\r\n{code}\r\n\r\nindex.tss\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\"\r\n}\r\n\r\n\"Label\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\"\r\n}\r\n\r\n\"#label\": {\r\n\tfont: {\r\n\t\tfontSize: 12\r\n\t}\r\n}\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Uncaught TypeError: Cannot use 'in' operator to search for 'Resources/alloy' in null.", "creator": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.12.4\r\n Architecture = 64bit\r\n CPUs = 4\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.9\r\n Core Package = 6.2.3\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.1.2.GA\r\n 6.1.1.GA\r\n\r\nPhysical device: HUWAWEI GR3 2017 (Android 7)\r\n", "closedSprints": [ { "id": 985, "state": "closed", "name": "2018 Sprint 01 SDK", "startDate": "2017-12-31T16:58:54.631Z", "endDate": "2018-01-14T16:58:00.000Z", "completeDate": "2018-01-17T22:44:27.028Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428655", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This should be fixed by TIMOB-25242", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-02T23:29:57.000+0000", "updated": "2017-10-02T23:29:57.000+0000" }, { "id": "432943", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_3_X: https://github.com/appcelerator/titanium_mobile/pull/9711", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-10T00:12:00.000+0000", "updated": "2018-01-10T00:12:00.000+0000" }, { "id": "432996", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-10T22:33:27.000+0000", "updated": "2018-01-10T22:33:27.000+0000" }, { "id": "440085", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:15.000+0000", "updated": "2018-08-06T17:49:15.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }