-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Crash when modal gets shown #735
Comments
progress is INF because of persistentKeyboardHeight, it's 0.0 |
Can we just check if
|
Well, if you can prepare it that would be a dope!
We can and it will fix a crash, but I would like to use it only as a last resort. If we add that check we'll send So my assumption is that we need to figure out why those insets changes are coming 🤔 Do you think it's doable to create a reproduction example? |
Hi! Yes, I agree that the problem is somewhere higher. However, here obviously a division by 0 and an application crash can occur. I would add a check and an error log so that the application at least doesn't crash. Even with broken animation, but that's already a softer error than a crash. However, I can no longer reproduce this. In another run of the project I did not find the error again. Creating a reproducible example with the same versions did not yield any errors either. So far my project is in the process of migration to 0.76 and the new arch. Let the Issue stay open, I may find something within a week or two. |
Okay @exzos28 I also see that a similar issue has been created in #737 I feel a pain, when the app crashes, so I think it makes sense to add a dirty workaround with converting a value to |
## 📜 Description Add a numerical safety test to keyboard animation progress ## 💡 Motivation and Context It solves a random crash in production where progress is infinite Fixes #739 #737 #735 ## 📢 Changelog ### Android - added `isInfinite` check along with `isNaN`; ## 🤔 How Has This Been Tested? Releasing it to production via a patch package the error report disappeared ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
I merged a fix - at least it should prevent a crash (but may lead to unexpected/inconsistent UI state: #740 (comment) Let me know if you encounter any further issues. If you can prepare a reproduction example that would be a dope, since we can manage to discover a root problem and provide a fix 🤞 |
The issue is still valid.
The project has:
When I open a modal window I get a crash
java.lang.RuntimeException: folly::toJson: JSON object value was an INF when serializing value at “progress”
A bit of information from the debugger:
Additional context
#718
#714
The text was updated successfully, but these errors were encountered: