{ "id": "153978", "key": "TIMOB-20161", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-12-28T23:32:03.000+0000", "created": "2015-12-21T20:11:07.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "50168", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "153726", "key": "TIMOB-20143", "fields": { "summary": "Windows: Titanium.UI.WebView don't load local html page", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T00:55:48.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": "When running the webview unit tests locally, specifically the test that loads appcelerator.com, I am seeing some troubling output. Even after the test finishes and passes, the output is spamming with:\r\n{code}\r\nException thrown at 0x76F92ED2 in NMocha.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x054FF02C.\r\nInvalid parameter passed to C runtime function.\r\nInvalid parameter passed to C runtime function.\r\nInvalid parameter passed to C runtime function.\r\n{code}\r\n\r\nI'm going to guess we don't clean up the webview properly. Doesn't get triggered by the local html file, but from loading appcelerator.com. My best guess is some JS is running on a setTimeout or something like that and keeps trying to trigger on a partially GC'd webview.\r\n\r\nI tried calling stopLoading() and removing the listeners on the destructor, but that didn't seem to help any. In fact, I placed a breakpoint in the destructor and it was never called! I think we may have some issues where when a window is closed we don't clean up after it properly.\r\n\r\nWhen I switched to script only debugging, I saw the following (though not sure we'll change our homepage to fix these):\r\n{code}\r\n'NMocha.exe' (Script): Loaded 'Script Code (WebView/3.0)'. \r\nException was thrown at line 4, column 14147 in http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js\r\n0x800a139e - JavaScript runtime error: SyntaxError\r\nException was thrown at line 4, column 14533 in http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js\r\n0x800a139e - JavaScript runtime error: SyntaxError\r\nException was thrown at line 30, column 191 in http://stats.g.doubleclick.net/dc.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 30, column 267 in http://stats.g.doubleclick.net/dc.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 30, column 390 in http://stats.g.doubleclick.net/dc.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 25, column 265 in http://a.adroll.com/j/roundtrip.js\r\n0x800a138f - JavaScript runtime error: Unable to get property 'conv_value' of undefined or null reference\r\nException was thrown at line 16, column 1357 in http://www.google-analytics.com/analytics.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 16, column 1460 in http://www.google-analytics.com/analytics.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 16, column 1609 in http://www.google-analytics.com/analytics.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 16, column 1357 in http://www.google-analytics.com/analytics.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 16, column 1460 in http://www.google-analytics.com/analytics.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 16, column 1609 in http://www.google-analytics.com/analytics.js\r\n0x800a1391 - JavaScript runtime error: 'ActiveXObject' is undefined\r\nException was thrown at line 1, column 26216 in https://js.intercomcdn.com/intercom.0d212436.js\r\n0x800a139e - JavaScript runtime error: SyntaxError\r\nException was thrown at line 1, column 26609 in https://js.intercomcdn.com/intercom.0d212436.js\r\n0x800a139e - JavaScript runtime error: SyntaxError\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Webview not cleaned up when parent window closed", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 543, "state": "closed", "name": "2015 Sprint 26 SDK", "startDate": "2015-12-19T01:30:23.690Z", "endDate": "2016-01-02T01:30:00.000Z", "completeDate": "2016-01-04T02:30:59.966Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "373583", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Looks relevant: [Crash in Native WebView control - Windows 8.1 app|https://social.msdn.microsoft.com/Forums/en-US/33bae9b0-ce48-4495-b0ad-04c2075a10a3/crash-in-native-webview-control-windows-81-app?forum=winappswithcsharp]\r\n\r\nMicrosoft Escalation Engineer says \"this is a known bug. I don't have a workaround at this time\" on January 30, 2015.\r\n\r\nFYI this happens on Windows 10 store app too.\r\n\r\n{code:javascript}\r\nvar webview = Titanium.UI.createWebView({ url: 'http://www.appcelerator.com' });\r\nvar window = Titanium.UI.createWindow();\r\nwindow.add(webview);\r\nwindow.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-28T23:32:03.000+0000", "updated": "2015-12-28T23:32:03.000+0000" }, { "id": "416105", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue here is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T00:55:48.000+0000", "updated": "2017-03-29T00:55:48.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }