title: App crashes only on specific device
body: <p>After adding VoIP pushes (via Pushwoosh) for VoIP app using Skylink SDK I faced the crash, only on one my device (iPhone 5s 8.4). Looks like it's about video capturing. Another testers feel fine (iPhone 5s, iPhone 6, 8.4.1, 9.1), and my iPhone 4s is not crashing when I force-connect it to room without VoIP pushes.</p>
  
  <p>UPD : crash is randomly reproduced on another devices</p>
  
  <p>Here's crashing logs:</p>
  
  <pre><code>Nov 13 19:43:12 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: didConnectWithMessage (null)
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: didReceiveResponse() 200
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: connectionDidFinishLoading()
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: VERSION 10x
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: Response {"sid":"TBa15c2vlAMqi-3EAAlU","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: websocket supported -&gt; using it now
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: Received All information:
  sid: TBa15c2vlAMqi-3EAAlU
  heartbeat: 25.000000
  Transport: &lt;SocketIOTransportWebsocket: 0x174226ac0&gt;
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: start/reset Heartbeat
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: Prepare to send()
  Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: queue &gt;&gt;&gt; 2
  Nov 13 19:43:18 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: onData 40
  Nov 13 19:43:18 iPhone-5s-Aft3rmath SkylinkP2P[1282] &lt;Warning&gt;: onConnect()
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::setPowerStateGated: 1
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::power_on_hardware
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::power_on_hardware - using ISP-FAST
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_EnableFastISPClock_gated, enableFlag=1
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_EnableFastISPClock_gated - using ISP-FAST
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_EnableFastISPClock_gated, enableFlag=1
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_EnableFastISPClock_gated - using ISP-FAST
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_SelectBestMIPIFrequencyIndex_gated - channel: 1, currentRawBitDepth: 1, index: 5
  Nov 13 19:43:18 iPhone-5s-Aft3rmath ReportCrash[1306] &lt;Error&gt;: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
  Nov 13 19:43:18 iPhone-5s-Aft3rmath ReportCrash[1306] &lt;Notice&gt;: ReportCrash acting against PID 1282
  Nov 13 19:43:18 iPhone-5s-Aft3rmath ReportCrash[1306] &lt;Notice&gt;: Formulating crash report for process SkylinkP2P[1282]
  Nov 13 19:43:18 iPhone-5s-Aft3rmath mediaserverd[19] &lt;Notice&gt;: '' Aft3rmath.SkylinkP2P(pid = 1282) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
  Nov 13 19:43:18 iPhone-5s-Aft3rmath locationd[57] &lt;Notice&gt;: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
  Nov 13 19:43:18 iPhone-5s-Aft3rmath com.apple.xpc.launchd[1] (UIKitApplication:Aft3rmath.SkylinkP2P[0xff15][1282]) &lt;Notice&gt;: Service exited due to signal: Segmentation fault: 11
  Nov 13 19:43:18 iPhone-5s-Aft3rmath ReportCrash[1306] &lt;Notice&gt;: Saved report to /var/mobile/Library/Logs/CrashReporter/SkylinkP2P_2015-11-13-194318_iPhone-5s-Aft3rmath.ips
  Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_FlushInactiveDARTMappings: 0x00000000
  Nov 13 19:43:18 iPhone-5s-Aft3rmath SpringBoard[50] &lt;Warning&gt;: Application 'UIKitApplication:Aft3rmath.SkylinkP2P[0xff15]' crashed.
  </code></pre>
  
  <p>And here's all crash free logs look like:</p>
  
  <pre><code>Nov 13 21:43:11 Daniil SkylinkP2P[1852] &lt;Warning&gt;: didConnectWithMessage (null)
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: didReceiveResponse() 200
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: connectionDidFinishLoading()
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: VERSION 10x
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: Response {"sid":"raDmeW9m-Cue0K5_AAlT","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: websocket supported -&gt; using it now
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: Received All information:
          sid: raDmeW9m-Cue0K5_AAlT
          heartbeat: 25.000000
          Transport: &lt;SocketIOTransportWebsocket: 0x174226aa0&gt;
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: start/reset Heartbeat
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: Prepare to send()
  Nov 13 21:43:12 Daniil SkylinkP2P[1852] &lt;Warning&gt;: queue &gt;&gt;&gt; 2
  Nov 13 21:43:15 Daniil SkylinkP2P[1852] &lt;Warning&gt;: onData 40
  Nov 13 21:43:15 Daniil SkylinkP2P[1852] &lt;Warning&gt;: onConnect()
  Nov 13 21:43:15 Daniil kernel[0] &lt;Notice&gt;: AppleH6CamIn::setPowerStateGated: 1
  Nov 13 21:43:15 Daniil kernel[0] &lt;Notice&gt;: AppleH6CamIn::power_on_hardware
  Nov 13 21:43:15 Daniil kernel[0] &lt;Notice&gt;: AppleH6CamIn::power_on_hardware - using ISP-FAST
  Nov 13 21:43:15 Daniil SkylinkP2P[1852] &lt;Warning&gt;: doQueue() &gt;&gt; 1
  Nov 13 21:43:16 Daniil kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_EnableFastISPClock_gated, enableFlag=1
  Nov 13 21:43:16 Daniil kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_EnableFastISPClock_gated - using ISP-FAST
  Nov 13 21:43:16 Daniil kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_EnableFastISPClock_gated, enableFlag=1
  Nov 13 21:43:16 Daniil kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_EnableFastISPClock_gated - using ISP-FAST
  Nov 13 21:43:16 Daniil kernel[0] &lt;Notice&gt;: AppleH6CamIn::ISP_SelectBestMIPIFrequencyIndex_gated - channel: 1, currentRawBitDepth: 3, index: 5
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>UPD: Crashlytics points on <code>cricket::VideoCapturer::SetCaptureState(cricket::CaptureState)</code></p>