{ "id": "119682", "key": "TIMOB-15087", "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": "15695", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15696", "description": "2013 Sprint 20 API", "name": "2013 Sprint 20 API", "archived": true, "released": true, "releaseDate": "2013-10-04" } ], "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": "2013-10-02T21:54:30.000+0000", "created": "2013-09-08T06:36:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "mobilesdk", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:33:31.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. PROBLEM DESCRIPTION\r\nUpon opening a window which includes a webView the following errors are seen in the console and the app crashes.\r\n\r\nh4. LOG \r\n{code:title=Log}\r\n[DEBUG] objc[35284]: Method cache corrupted. This may be a message to an invalid object, or a memory error somewhere else.\r\n[DEBUG] objc[35284]: receiver 0xe592b10, SEL 0x43d3643, isa 0xf2f4a8, cache 0xf2f4b0, buckets 0xe9e74b, mask 0xb, occupied 0x0\r\n[DEBUG] objc[35284]: receiver 32 bytes, buckets 0 bytes\r\n[DEBUG] objc[35284]: selector 'release'\r\n[DEBUG] objc[35284]: isa ''\r\n[DEBUG] objc[35284]: Method cache corrupted.\r\n{code}\r\n\r\n\r\nh4. TESTCASE\r\nHere's the webview.js file\r\n\r\n{code:title=webview}\r\n var win = Ti.UI.createWindow();\r\n\r\n win.orientationModes= [Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT,Ti.UI.PORTRAIT,Ti.UI.UPSIDE_PORTRAIT];\r\n\r\n\tvar web = Ti.UI.createWebView({\r\n\t\turl: url,\r\n\t\twidth: Ti.UI.FILL,\r\n\t\theight: Ti.UI.FILL,\r\n\t\ttop: 0,\r\n\t\tleft: 0\r\n\t});\r\n\r\n\t\tweb.addEventListener('load', function() {\r\n\t\t\twin.setTitle(web.evalJS('document.title'));\r\n\t\t});\r\n\r\n\t\tweb.addEventListener('error', function(e) {\r\n\t\t\tif(e.errorCode== -1003 || e.error == -1000 || e.error == -1006) al.add(\"That's one bad URL.\");\r\n\t\t\telse alert(e.message)\r\n\t\t});\r\n\r\n\twin.add(web);\r\n\r\n return win;\r\n{code}\r\n\r\nThe above is wrapped inside a module.exports. The calling window grabs the returned win object, and opens it as a child window in the active tab of a Tab Group.", "attachment": [], "flagged": false, "summary": "iOS7: Method Cache Corrupted ", "creator": { "name": "dezinezync", "key": "dezinezync", "displayName": "Nikhil N", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dezinezync", "key": "dezinezync", "displayName": "Nikhil N", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.3.v20130906144623\r\niOS 7 B6\r\nXCode 5 B6", "comment": { "comments": [ { "id": "270439", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this specifically an iOS 7 issue, or does it occur on previous versions?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-09T21:40:29.000+0000", "updated": "2013-09-09T21:40:29.000+0000" }, { "id": "270511", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Initial read by Sabil and Blain is that this is not a bug of ours, and not something to be immediately concerned with.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-10T01:29:27.000+0000", "updated": "2013-09-10T01:29:27.000+0000" }, { "id": "270537", "author": { "name": "dezinezync", "key": "dezinezync", "displayName": "Nikhil N", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This doesn't seem to happen on iOS 6 (still using the aforementioned TiSDK).\r\n\r\nAlthough, I've narrowed this down further. If the url assigned to the webview is invalid (eg. not a valid NSURL), the above errors are thrown and the application crashes instantly.\r\n", "updateAuthor": { "name": "dezinezync", "key": "dezinezync", "displayName": "Nikhil N", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-10T04:16:48.000+0000", "updated": "2013-09-10T04:16:48.000+0000" }, { "id": "273681", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue likely is a apple bug. I could not reproduce the issue with the invalid URL\n\ncode used in testing.\n\n{code}\nvar win = Ti.UI.createWindow();\n \nwin.orientationModes= [Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT,Ti.UI.PORTRAIT,Ti.UI.UPSIDE_PORTRAIT];\n \nvar web = Ti.UI.createWebView({\n url: \"http://asdfasd.cc\",\n width: Ti.UI.FILL,\n height: Ti.UI.FILL,\n top: 0,\n left: 0\n});\n \n web.addEventListener('load', function() {\n win.setTitle(web.evalJS('document.title'));\n });\n \n web.addEventListener('error', function(e) {\n if(e.errorCode== -1003 || e.error == -1000 || e.error == -1006) alert(\"That's one bad URL.\");\n else alert(e.message)\n });\n \nwin.add(web);\n \nwin.open();\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-02T21:52:42.000+0000", "updated": "2013-10-02T21:52:42.000+0000" }, { "id": "273682", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unless we have a better reproducible test case, it would be hard for us to narrow down the bug here. with the testing that i have done. I cannot reproduce this issue. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-02T21:54:30.000+0000", "updated": "2013-10-02T21:54:30.000+0000" }, { "id": "414589", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:33:31.000+0000", "updated": "2017-03-21T22:33:31.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }