title: Swift: WebThread: EXC_BAD_ACCESS crash UIWebView
body: <p>I'm loading a YouTubePlayerView using <a href="https://github.com/gilesvangruisen/Swift-YouTube-Player/" rel="nofollow noreferrer">this</a> library. Sometimes the video loads, sometimes I get <code>EXC_BAD_ACCESS</code>. Here is the dump I'm getting:</p>
  
  <p><img src="https://i.stack.imgur.com/rZlMQ.png" alt="]!["></p>
  
  <p>I'm not sure what is happening. I read in another similar post that I should set <code>setAnimationsEnabled:NO</code> but I'm unable to do that. Any other suggestions?</p>
  
  <hr>
  
  <p>Update: Here's the code that's using the player:</p>
  
  <pre><code>import YouTubePlayer
  
  class SongViewController: UIViewController {
  
  @IBOutlet weak var videoPlayer: YouTubePlayerView!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          videoPlayer.loadVideoID("gCYcHz2k5x0")
          videoPlayer.playerVars = ["playsinline": "1"]
  
      }
  
  }
  </code></pre>