{ "id": "163105", "key": "AC-4443", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-09-09T17:39:47.000+0000", "created": "2016-09-09T14:55:46.000+0000", "labels": [ "crash", "ios", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-09-09T17:39:47.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Creating a new app and adding a webview (as per the example in Titanium documentation) causes the app to crash on an iOS device. Android device & iOS simulator work fine.\r\n\r\nSteps to reproduce:\r\n1) Create a new Mobile App Project\r\n2) Paste the sample code for creating a webview into index.js:\r\n\r\n{code:java}\r\nvar webview = Titanium.UI.createWebView({url:'http://www.appcelerator.com/'});\r\nvar window = Titanium.UI.createWindow();\r\nwindow.add(webview);\r\nwindow.open({modal:true});\r\n{code}\r\n\r\n3) Compile & Launch app - on a device, will crash immediately on attempting to add the webview, with log trace:\r\n\r\n{code:java}\r\n[INFO] : TestWebview/1.0 (5.4.0.4ba4c0a)\r\n[ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] : Reason:\r\n[ERROR] : -[__NSCFBoolean hasPrefix:]: unrecognized selector sent to instance 0x1a16306d8\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x00000001835badb0 + 124\r\n[ERROR] : 1 libobjc.A.dylib 0x0000000182c1ff80 objc_exception_throw + 56\r\n[ERROR] : 2 CoreFoundation 0x00000001835c1c4c + 0\r\n[ERROR] : 3 CoreFoundation 0x00000001835bebec + 872\r\n[ERROR] : 4 CoreFoundation 0x00000001834bcc5c _CF_forwarding_prep_0 + 92\r\n[ERROR] : 5 UIKit 0x000000018894c888 + 196\r\n[ERROR] : 6 UIKit 0x000000018894c558 + 124\r\n[ERROR] : 7 libdispatch.dylib 0x000000018300547c + 16\r\n[ERROR] : 8 libdispatch.dylib 0x00000001830062c0 dispatch_once_f + 80\r\n[ERROR] : 9 UIKit 0x0000000188b97d8c + 72\r\n[ERROR] : 10 UIKit 0x000000018894c3ec + 80\r\n[ERROR] : 11 TestWebview 0x00000001000ce96c TestWebview + 747884\r\n[ERROR] : 12 TestWebview 0x00000001000ceee8 TestWebview + 749288\r\n[ERROR] : 13 TestWebview 0x00000001000d1760 TestWebview + 759648\r\n[ERROR] : 14 TestWebview 0x0000000100087960 TestWebview + 457056\r\n[ERROR] : 15 TestWebview 0x0000000100087d08 TestWebview + 457992\r\n[ERROR] : 16 TestWebview 0x0000000100074430 TestWebview + 377904\r\n[ERROR] : 17 TestWebview 0x000000010005174c TestWebview + 235340\r\n[ERROR] : 18 TestWebview 0x000000010004f854 TestWebview + 227412\r\n[ERROR] : 19 TestWebview 0x000000010004f9a0 TestWebview + 227744\r\n[ERROR] : 20 TestWebview 0x0000000100048eec TestWebview + 200428\r\n[ERROR] : 21 TestWebview 0x0000000100048b8c TestWebview + 199564\r\n[ERROR] : 22 CoreFoundation 0x00000001835c0a60 + 144\r\n[ERROR] : 23 CoreFoundation 0x00000001834b8488 + 284\r\n[ERROR] : 24 TestWebview 0x00000001000384f4 TestWebview + 132340\r\n[ERROR] : 25 TestWebview 0x0000000100036b84 TestWebview + 125828\r\n[ERROR] : 26 TestWebview 0x00000001000ae294 TestWebview + 615060\r\n[ERROR] : 27 TestWebview 0x00000001000368a4 TestWebview + 125092\r\n[ERROR] : 28 TestWebview 0x00000001002263c8 TestWebview + 2155464\r\n[ERROR] : 29 TestWebview 0x00000001002c1200 TestWebview + 2789888\r\n[ERROR] : 30 TestWebview 0x00000001002c7138 TestWebview + 2814264\r\n[ERROR] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean hasPrefix:]: unrecognized selector sent to instance 0x1a16306d8'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (0x1835badb0 0x182c1ff80 0x1835c1c4c 0x1835bebec 0x1834bcc5c 0x18894c888 0x18894c558 0x18300547c 0x1830062c0 0x188b97d8c 0x18894c3ec 0x1000ce96c 0x1000ceee8 0x1000d1760 0x100087960 0x100087d08 0x100074430 0x10005174c 0x10004f854 0x10004f9a0 0x100048eec 0x100048b8c 0x1835c0a60 0x1834b8488 0x1000384f4 0x100036b84 0x1000ae294 0x1000368a4 0x1002263c8 0x1002c1200 0x1002c7138)\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS device crashes on webview add to window", "creator": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS device", "comment": { "comments": [ { "id": "395674", "author": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry, should have specified:\r\nAppcelerator Studio, build: 4.7.0.201607250649\r\nAlloy v1.9.1\r\nTi SDK 5.4.0.GA", "updateAuthor": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-09T14:58:42.000+0000", "updated": "2016-09-09T14:58:42.000+0000" }, { "id": "395685", "author": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Some further info - webview works on some iOS devices but not others:\r\n\r\n- Loads correctly on iPad mini (Model FF432NF/A) running iOS 9.1 (13B143)\r\n- Loads correctly on SAME iPad mini (Model FF432NF/A) running iOS 9.3.5 (13G36)\r\n- Crashes on iPad Air 2 (Model MGL12HC/A) running iOS 9.3.4 (13G35)", "updateAuthor": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-09T15:45:50.000+0000", "updated": "2016-09-09T15:45:50.000+0000" }, { "id": "395695", "author": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Several hours later, we finally discovered that something is being cached on the iPads that is causing the issue - wiping the iPads clean and reinstalling the app made it work perfectly again.\r\n\r\nThis issue can be closed as a PICNIC (Problem In Chair, Not In Computer) ;)", "updateAuthor": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-09T17:37:14.000+0000", "updated": "2016-09-09T17:37:14.000+0000" }, { "id": "395696", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks! Closing issue.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-09T17:39:47.000+0000", "updated": "2016-09-09T17:39:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }