Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AVCaptureSession bug persists between installs

I have a app that opens straight to a camera that is based on this WWDC sample: https://developer.apple.com/library/ios/samplecode/AVCam/Introduction/Intro.html

A few users have been experiencing a bug where the camera does not turn on and does not allow them to capture content.

I just ran into the same issue last night and this is what I observed:

  1. I was debugging a separate issue and the camera was working 100% ok, then all of a sudden, it stopped working.

  2. Every time I would open the app or navigate back to the camera, it would show a dark view of whatever it was currently pointing at, but the image was frozen. Its like it worked for 1 second, then the capture preview would freeze.

  3. I tried force closing and reopening, same problem.

  4. I tried uninstalling and reinstalling, same problem.

  5. I then restarted my phone and the issue was solved.

How is it possible that this bug persists between separate installs?

Does anyone know what might be causing the camera to fail?

How should I go about debugging it if it only occurred once after months of using it and I have no idea what triggers it?

like image 990
Cbas Avatar asked Aug 08 '16 16:08

Cbas


1 Answers

Are you running iOS 9? That might be an iOS 9 software internal bug. I had exactly the same non-reproducible issues but with MapKit's map view rendering. In my case map view was showing just rectangle grid without any map objects - no streets, lakes, rivers, etc.

I've tried to google over internet to find potential reason of such weird issue, but without any luck. Then I've restarted device and that helped, the same as in your case.

Sure, my info is not a full answer, just want to share my experience.

like image 87
Evgeny Karkan Avatar answered Sep 18 '22 23:09

Evgeny Karkan