title: Weird iOS UIWebView Crash called WTF Crash
body: <p>I am using UIWebViews in some of the screens, because I need a perfect Html text parsing.</p>
  
  <p>According to crash reports a huge number of crashes, called WTF Crash, occur on these screens. Here is a trace of that crash</p>
  
  <pre><code>Crashed: WebThread
  EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000bbadbeef
  
  Thread : Crashed: WebThread
  0  JavaScriptCore                 0x184fd2710 WTFCrash + 72
  1  JavaScriptCore                 0x184fd2708 WTFCrash + 64
  2  WebCore                        0x1852b7d78 &lt;redacted&gt; + 362
  3  WebCore                        0x1852b7bec &lt;redacted&gt; + 44
  4  CoreFoundation                 0x1817d8588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
  5  CoreFoundation                 0x1817d632c __CFRunLoopDoObservers + 372
  6  CoreFoundation                 0x1817d6674 __CFRunLoopRun + 696
  7  CoreFoundation                 0x181705680 CFRunLoopRunSpecific + 384
  8  WebCore                        0x1852b5998 &lt;redacted&gt; + 456
  9  libsystem_pthread.dylib        0x18148bb28 &lt;redacted&gt; + 156
  10 libsystem_pthread.dylib        0x18148ba8c _pthread_start + 154
  11 libsystem_pthread.dylib        0x181489028 thread_start + 4
  </code></pre>
  
  <p>There is no OS version, or device relation on this crash. </p>
  
  <p>I am not doing anything fancy on using UIWebView as well. It is added to nib like every other component, and in the implementation file I use it like the following</p>
  
  <pre><code>self.webView.scrollView.scrollEnabled = NO;
  self.webView.scrollView.bounces = NO;
  self.webView.opaque = NO;
  self.webView.backgroundColor = [UIColor clearColor];
  self.webView.delegate = self;
  [self.webView loadHTMLString:htmlString baseURL:nil];
  </code></pre>
  
  <p>Any suggestions on how to solve WTF Crash?</p>
  
  <p>Edit: Here is how htmlString looks like</p>
  
  <pre><code>Printing description of htmlString:
  &lt;html&gt;&lt;body style="font-family:HelveticaNeue; font-size:10; background-color:#E5E4E4; text-align:left; color:#696969 "&gt;test string&lt;/body&gt;&lt;/html&gt;
  </code></pre>