Open chrisballinger opened 10 years ago
Also having the same issue. my app crashes on a long press gesture with a text view.
We're encountering this issue on our app when a keyboard appears after using a UIAlertView
with a text view.
It appear that:
keyboardActiveInput
.keyboardActiveInput
to become a zombie.UITextViewTextDidBeginEditingNotification
.UIKeyboardDidShowNotification
is posted, accessing the zombie.One solution that seems to be working for me is to filter messages to setKeyboardActiveInput:
where the responder is not in the same window as the view:
- (void)setKeyboardActiveInput:(UIResponder *)keyboardActiveInput
{
if (![keyboardActiveInput respondsToSelector:@selector(window)] || [(id)keyboardActiveInput window] != self.window) {
keyboardActiveInput = nil;
}
...
We are seeing this issue as well in our crash reporting system. I was able to isolate one which was a timing issue with presenting an alert at the same time the keyboard was being dismissed. But another instance I am having a hard time tracking down
Not sure how to reproduce, but has been showing up in my crash logs. Here is the section that has problems (line 222):
Here are two of them:
Here is the second one:
I'll update the issue when more information is available.