Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25543

iOS: Webview crashes when setting html with ignoreSslError

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Release 6.3.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      iOS SDK11
      Ti 6.3.0.GA - 6.2.2 - 6.1.2

      Description

      When you create a webview like this :

      $.index.add(Ti.UI.createWebView({
          ignoreSslError: true,
          html: 'test in wv'
      }));
      

      It crashes the app with this log

      [ERROR] :  The application has crashed with an uncaught exception 'NSRangeException'.
      [ERROR] :  Reason:
      [ERROR] :  *** -[__NSCFString substringFromIndex:]: Index 177 out of bounds; string length 176
      [ERROR] :  Stack trace:
      [ERROR] :  0   CoreFoundation                      0x0000000115191193 __exceptionPreprocess + 147
      [ERROR] :  1   libobjc.A.dylib                     0x000000011425ef41 objc_exception_throw + 48
      [ERROR] :  2   CoreFoundation                      0x0000000115205cb5 +[NSException raise:format:] + 197
      [ERROR] :  3   Foundation                          0x000000010ea18f05 -[NSString substringFromIndex:] + 126
      [ERROR] :  4   TestDialog                          0x000000010cf4a8b7 +[TiUtils loadAppResource:] + 279
      [ERROR] :  5   TestDialog                          0x000000010d079704 -[LocalProtocolHandler startLoading] + 404
      [ERROR] :  6   CFNetwork                           0x00000001119f6abc ___ZN16CFURLProtocol_NS28_protocolInterface_startLoadEPK20_CFCachedURLResponse_block_invoke + 309
      [ERROR] :  7   libdispatch.dylib                   0x00000001184362b5 _dispatch_client_callout + 8
      [ERROR] :  8   libdispatch.dylib                   0x000000011843b565 _dispatch_block_invoke_direct + 324
      [ERROR] :  9   CFNetwork                           0x000000011196ae74 _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 24
      [ERROR] :  10  CoreFoundation                      0x00000001150df3a8 CFArrayApplyFunction + 72
      [ERROR] :  11  CFNetwork                           0x000000011196ad4a _ZN19RunloopBlockContext7performEv + 132
      [ERROR] :  12  CFNetwork                           0x000000011196abe8 _ZN17MultiplexerSource7performEv + 282
      [ERROR] :  13  CFNetwork                           0x000000011196aa1b _ZN17MultiplexerSource8_performEPv + 65
      [ERROR] :  14  CoreFoundation                      0x0000000115134231 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      [ERROR] :  15  CoreFoundation                      0x00000001151d3e41 __CFRunLoopDoSource0 + 81
      [ERROR] :  16  CoreFoundation                      0x0000000115118b49 __CFRunLoopDoSources0 + 185
      [ERROR] :  17  CoreFoundation                      0x000000011511812f __CFRunLoopRun + 1279
      [ERROR] :  18  CoreFoundation                      0x00000001151179b9 CFRunLoopRunSpecific + 409
      [ERROR] :  19  CFNetwork                           0x0000000111b74fdc _ZL27_privateRunloopEmulationSetPv + 250
      [ERROR] :  20  libsystem_pthread.dylib             0x00000001188f66c1 _pthread_body + 340
      [ERROR] :  21  libsystem_pthread.dylib             0x00000001188f656d _pthread_body + 0
      [ERROR] :  22  libsystem_pthread.dylib             0x00000001188f5c5d thread_start + 13
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gduthieuw Guile
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5996
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration