title: Rotation: I receive the error "wait_fences: failed to receive reply: 10004003"
body: <p>I have found some similar questions on stackoverflow, but they can not solve my question. The fist time when I do rotation , I receive the error "wait_fences: failed to receive reply: 10004003" and it will be blocked for one or two seconds to print the new view on the new orientation, my code is as below:  </p>
  
  <pre><code>- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:    (NSTimeInterval)duration
  {
      if (isLandScape) {
          [self toHorizontalBrowserView];
      } else {
          [self toVerticalBrowserView];
      }
  }
  
  - (void)toHorizontalBrowserView
  {
      [horizontalBrowserViewController viewWillAppear:YES];
      [self.activeViewController viewWillDisappear:YES];
      [self.activeViewController.view removeFromSuperview];
      [_viewController.centerView insertSubview: horizontalBrowserViewController.view atIndex:0];
      [self.activeViewController viewDidDisappear:YES];
      [horizontalBrowserViewController viewDidAppear:YES];
      self.activeViewController = horizontalBrowserViewController;
  }
  
  - (void)toVerticalBrowserView
  {    
      [verticalPhotoBrowserViewController viewWillAppear:YES];
      [self.activeViewController viewWillDisappear:YES];
      [self.activeViewController.view removeFromSuperview];
      [_viewController.centerView insertSubview:verticalPhotoBrowserViewController.view atIndex:0];
      [self.activeViewController viewDidDisappear:YES];
      [verticalPhotoBrowserViewController viewDidAppear:YES];
      _activeViewController = verticalPhotoBrowserViewController;
  }
  </code></pre>
  
  <p>What is the cause of this problem? How to fix it?</p>