When using the patch codes from above to take photo attachment, if we take only one photo then maybe less percentage to crash. When taking more than two then high percentage to crash the whole app. Thanks!
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[fvc presentViewController:svc animated:YES completion:^{
NSLog(@"Presenting Image Picker");
}];
}];
}
I record some log messages for your reference. Hopefully this can be fixed.
2015-02-12 10:48:17.968 NewSDSI[3399:662257] Presenting view controllers on detached view controllers is discouraged <AGSPopupsContainerViewController: 0x1349c3e00>.
2015-02-12 10:48:22.903 NewSDSI[3399:662257] Presenting view controllers on detached view controllers is discouraged <AGSPopupsContainerViewController: 0x1349c3e00>.
2015-02-12 10:48:26.275 NewSDSI[3399:662257] Presenting view controllers on detached view controllers is discouraged <AGSPopupsContainerViewController: 0x1349c3e00>.
2015-02-12 10:50:14.792 NewSDSI[3399:662257] Presenting view controllers on detached view controllers is discouraged <AGSAttachmentCollectorViewController: 0x134641c50>.
2015-02-12 10:50:22.953 NewSDSI[3399:662257] Presenting view controllers on detached view controllers is discouraged <AGSAttachmentCollectorViewController: 0x134641c50>.
2015-02-12 10:50:23.003 NewSDSI[3399:662257] Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before
snapshotting or snapshot after screen updates.
2015-02-12 10:50:23.006 NewSDSI[3399:662257] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code
that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the
UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x1746837f0 UIView:0x17438e450.height == 0.454545*CAMModeDial:0x1346abd40.height - 4.09091>",
"<NSLayoutConstraint:0x1742971b0 CAMShutterButton:0x1345a14c0.centerY == CAMBottomBar:0x1346ab9b0.centerY>",
"<NSLayoutConstraint:0x1742929d0 V:[CAMShutterButton:0x1345a14c0]-(0)-[CAMModeDial:0x1346abd40]>",
"<NSLayoutConstraint:0x174294d70 CAMModeDial:0x1346abd40.bottom == UIButton:0x134596410'Cancel'.top>",
"<NSLayoutConstraint:0x1742925c0 V:[UIButton:0x134596410'Cancel']-(31)-| (Names: '|':CAMBottomBar:0x1346ab9b0 )>",
"<NSLayoutConstraint:0x174294910 'UIView-Encapsulated-Layout-Height' V:[PLImagePickerCameraView:0x134a56a00(0)]>",
"<NSLayoutConstraint:0x174296d00 CAMBottomBar:0x1346ab9b0.height == PLImagePickerCameraView:0x134a56a00.height>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1746837f0 UIView:0x17438e450.height == 0.454545*CAMModeDial:0x1346abd40.height - 4.09091>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-12 10:50:23.008 NewSDSI[3399:662257] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code
that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the
UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x1742971b0 CAMShutterButton:0x1345a14c0.centerY == CAMBottomBar:0x1346ab9b0.centerY>",
"<NSLayoutConstraint:0x1742929d0 V:[CAMShutterButton:0x1345a14c0]-(0)-[CAMModeDial:0x1346abd40]>",
"<NSLayoutConstraint:0x174294d70 CAMModeDial:0x1346abd40.bottom == UIButton:0x134596410'Cancel'.top>",
"<NSLayoutConstraint:0x1742925c0 V:[UIButton:0x134596410'Cancel']-(31)-| (Names: '|':CAMBottomBar:0x1346ab9b0 )>",
"<NSLayoutConstraint:0x174294910 'UIView-Encapsulated-Layout-Height' V:[PLImagePickerCameraView:0x134a56a00(0)]>",
"<NSLayoutConstraint:0x174296d00 CAMBottomBar:0x1346ab9b0.height == PLImagePickerCameraView:0x134a56a00.height>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1742929d0 V:[CAMShutterButton:0x1345a14c0]-(0)-[CAMModeDial:0x1346abd40]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-12 10:50:23.519 NewSDSI[3399:662257] Presenting Image Picker