{ "id": "170400", "key": "TIMOB-25543", "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": null, "resolutiondate": null, "created": "2017-11-21T01:12:00.000+0000", "priority": null, "labels": [ "engReviewed", "ios", "webview" ], "versions": [ { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "issuelinks": [], "assignee": null, "updated": "2019-06-04T15:06:17.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "When you create a webview like this :\r\n\r\n\r\n{code:javascript}\r\n$.index.add(Ti.UI.createWebView({\r\n ignoreSslError: true,\r\n html: 'test in wv'\r\n}));\r\n{code}\r\n\r\nIt crashes the app with this log\r\n\r\n\r\n{code:java}\r\n[ERROR] : The application has crashed with an uncaught exception 'NSRangeException'.\r\n[ERROR] : Reason:\r\n[ERROR] : *** -[__NSCFString substringFromIndex:]: Index 177 out of bounds; string length 176\r\n[ERROR] : Stack trace:\r\n[ERROR] : 0 CoreFoundation 0x0000000115191193 __exceptionPreprocess + 147\r\n[ERROR] : 1 libobjc.A.dylib 0x000000011425ef41 objc_exception_throw + 48\r\n[ERROR] : 2 CoreFoundation 0x0000000115205cb5 +[NSException raise:format:] + 197\r\n[ERROR] : 3 Foundation 0x000000010ea18f05 -[NSString substringFromIndex:] + 126\r\n[ERROR] : 4 TestDialog 0x000000010cf4a8b7 +[TiUtils loadAppResource:] + 279\r\n[ERROR] : 5 TestDialog 0x000000010d079704 -[LocalProtocolHandler startLoading] + 404\r\n[ERROR] : 6 CFNetwork 0x00000001119f6abc ___ZN16CFURLProtocol_NS28_protocolInterface_startLoadEPK20_CFCachedURLResponse_block_invoke + 309\r\n[ERROR] : 7 libdispatch.dylib 0x00000001184362b5 _dispatch_client_callout + 8\r\n[ERROR] : 8 libdispatch.dylib 0x000000011843b565 _dispatch_block_invoke_direct + 324\r\n[ERROR] : 9 CFNetwork 0x000000011196ae74 _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 24\r\n[ERROR] : 10 CoreFoundation 0x00000001150df3a8 CFArrayApplyFunction + 72\r\n[ERROR] : 11 CFNetwork 0x000000011196ad4a _ZN19RunloopBlockContext7performEv + 132\r\n[ERROR] : 12 CFNetwork 0x000000011196abe8 _ZN17MultiplexerSource7performEv + 282\r\n[ERROR] : 13 CFNetwork 0x000000011196aa1b _ZN17MultiplexerSource8_performEPv + 65\r\n[ERROR] : 14 CoreFoundation 0x0000000115134231 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\r\n[ERROR] : 15 CoreFoundation 0x00000001151d3e41 __CFRunLoopDoSource0 + 81\r\n[ERROR] : 16 CoreFoundation 0x0000000115118b49 __CFRunLoopDoSources0 + 185\r\n[ERROR] : 17 CoreFoundation 0x000000011511812f __CFRunLoopRun + 1279\r\n[ERROR] : 18 CoreFoundation 0x00000001151179b9 CFRunLoopRunSpecific + 409\r\n[ERROR] : 19 CFNetwork 0x0000000111b74fdc _ZL27_privateRunloopEmulationSetPv + 250\r\n[ERROR] : 20 libsystem_pthread.dylib 0x00000001188f66c1 _pthread_body + 340\r\n[ERROR] : 21 libsystem_pthread.dylib 0x00000001188f656d _pthread_body + 0\r\n[ERROR] : 22 libsystem_pthread.dylib 0x00000001188f5c5d thread_start + 13\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Webview crashes when setting html with ignoreSslError", "creator": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS SDK11\r\nTi 6.3.0.GA - 6.2.2 - 6.1.2", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }