-
-
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
[Android 9] Crash on opening a Modal with KeyboardProvider around the app #714
Comments
@wcastand interesting! I'm constantly running e2e tests that include an integration with Modal and so far I don't receive any crashes. The problem is that |
yeah i tried to make a repro knowing it would help a lot but must be a combination of weird things in our repo + it's on old android phone and it's so slow to test xDDD i tried multiple things already but no luck so far :/ |
@wcastand yeah, I have Android 9 real device so I understand the pain 😅 Probably you are right - it's a combination of things. So really keen to know what exactly makes |
it was a hard battle but after a few hours, i got it ahah https://github.com/wcastand/bug-modal-android hopefully it crashes for you too now 😅 |
@kirillzyusko copied the code of the PR in my repo and no more crashes on my samsung ! |
@wcastand awesome! Then you can temporarily patch the dependency via Don't have any ETA at the moment (I though I could publish it in first weeks of December, but let's see how it goes 👀), but I hope I can publish it this month 🙂 |
looks like i get the crash on a pixel 9 with android 15 with the same error msg and same screen :/ @kirillzyusko |
@wcastand which version of the library do you use? Basically I think it's impossible to get the same crash, because we added a check, that will set |
i tried to reproduce locally on the same device as the user and same android version but coulnd't do it so far. the reason i posted a comment is because it's the same error msg, in the same place in the app, with the same behavior etc. I was wondering since it's on android 15, the newest could it be that the lib doesn't check for android 15 or they changed their API again or something like that, that would branch into a place where we don't do the check? |
@wcastand ah, I understand what do you mean. Well, the problem that you described and prepared a reproduction for was really easily reproducible - and I fixed it in #718 However people later on discovered that the same issue happens on newest Android devices too (such as Android 14/15) - but the problem was the fact that people were able to see exceptions in Sentry/Crashlytic/etc., but weren't able to reproduce it on their own or in reproduction examples. I assume it can be kind of a race condition that may be hard to catch at the moment and to fix this edge case I cane up with another solution in #740 (it's more like a workaround, but I think it's better to show non existing animation rather than crash the app). And I believe I included latest fix in |
i'm on 1.15.2 on dev, but production is on 1.14.5 could be explaining why i couldn't reproduce locally ! :) Thanks for the time and explanation i will push the update as soon as possible in production and hopefully it will fix the crash for us too. :) for now i think we can assume it's good to go :) |
Awesome @wcastand ! 🔥 In case if you find a way to reproduce the problem - don't hesitate to open a new issue or post an update here 🙌 |
Describe the bug
Only happening to me on <= Android 9 so far, when i open a
Modal
fromreact-native
, the app crashes. error beingjava.lang.RuntimeException: folly::toJson: JSON object value was an INF when serializing value at "progress"
seems to be related to animated values hitting the INF value somehow. the crash disapear when i remove
<KeyboardController/>
from my layout.I'm on an expo dev client app on SDK 52
Couldn't manage to a minimal reproduce so far but will keep trying, just wanted to make the issue in case the error makes more sense to you than to me x)
Expected behavior
No crash
Smartphone (please complete the following information):
Additional context
here the error log:
The text was updated successfully, but these errors were encountered: