Periodically every time after returning to the first controller by means of a button on the second controller
@IBAction func closeButton(sender: UIButton) { self.dismissViewControllerAnimated(false, completion: nil) } trying to press any button of the first controller, the application hangs and throws into an error box with an error. there is no error message when it is more beautiful in the logs. On the simulator and on the device, the application remains on, but it hangs, the buttons do not respond.
For extra outlets checked, there is no excess. crash occurs after returning from only one controller. The same method is used on other controllers, but the crash never happened. What can be wrong?