-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version 1.16.0 : Fatal Exception: NSRangeException Cannot remove an observer <KeyboardMovementObserver 0x301d09cc0> for the key path "center" from <UIInputSetHostView 0x157fd7b10> because it is not registered as an observer. #802
Comments
@ethanneff are you sure that crash comes from the latest (1.16.2) keyboard-controller version? It points to
In
|
@ethanneff and can you give more information? Did you use the lib before and you had a small amount of crashes, then started to use 1.16 and the amount of crashes has been increased? If you updated the lib, then which potential versions can be used in production? |
Sorry, I was looking into it as well - but could not reproduce it. We are still getting some crashes on iOS devices. We are using Below is another stack trace:
|
@ethanneff just want to confirm - are you 100% sure that If yes, then can I open a PR with a fix and ask you to apply those changes in your project with Thank you for being active on that issue 🙌 |
@ethanneff may I kindly ask you to apply that patch: #805 and see if the crash got resolved or not? |
yes, we are on 1.16.2
I can try #805. However, we are unable to reproduce the error on our staging environments - so we will have to see it in our canary deploy next week with real users. |
@ethanneff yeah, okay, sure, let's wait next week 👍 Please, keep me updated 🤗 |
We can close this out. The issue was related to version 1.16.0 |
Okay, awesome - glad it was solved in patch versions 😊 |
I have seen this issue even from 1.16.2. The fix for me was to move the KeyboardProvider to a place that never re-renders (e.g. the root that only contains the KeyboardProvider that wraps the old root). After I did this, the crash never happens again. Hope this is helpful for others having this issue. |
Describe the bug
Getting lots of crashes on iOS devices
The text was updated successfully, but these errors were encountered: