Here is the flow that is causing this freezing behavior:
- ViewController is loaded
- In viewDidLoad method AR data points are initialized and handed to PRARManager to start AR (this works fine)
- At any moment user can take picture of their surrounding with UIImagePickerController sourceTypeCamera.
- User clicks button to display camera control.
- User finishes taking picture OR cancels
- At this point, AR Camera feed is frozen. AR Data points are still rendered correctly in place, but the camera feed is stuck and won't refresh.
I've tried stoping PRARManager before displaying camera, and then starting after camera is finished, but no luck. Something about loading UIImagePickerController breaks PRARManager's camera feed.
I'll report if I find any fixes