-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[0.74.0] AppState module has an error on android #44251
Comments
|
@NiuGuohui Just to confirm, you're on New Architecture right? |
I tried again. Now AppState seems to be working properly. But I found that this error still occurs when enable bridgeless, and after disabled bridgeless, it no longer reports an error. |
@cortinico can confirm that I have run into this. I meant to reach out about it but I wanted to investigate myself first as it doesn't repro reliably and I'm not sure of the cause |
Great thanks for confirming it 👍 |
@alanjhughes @NiuGuohui can we isolate what's the problem here? I've tried to reproduce, and yes, the:
gets fired but that's unrelated. I was able to successfully use the repro.mov |
I think
|
That's because you're looking at the class in @alanjhughes what was the error you were facing? |
@cortinico its this error but it's only happening on app launch and not every time. Kudo reproduced in a RN project without expo. I'll speak to him today and see if he found a reliable way to reproduce. |
So, should an |
We could pick ac3261f on the 0.74 release branch that would solve this |
It seems this issue is still present in 0.74.1 (tried also 0.74.1-rc.0)
|
I see the same error in 0.74.1 as well.
|
I have the same issue but this is from RN as AAR and uploaded to the Android native
|
ac3261f |
@cortinico I'm using
|
Do you mean you see the app crashing or is it appearing in the log? |
@cortinico the error appears in the log, and the app just shows a blank screen and fails to render its loading screen, but does not crash. Let me know if it's expected that this error will still appear in logs without crashing. That could indicate some other issue in my code that isn't related to this. |
It's expected that it appears in the logs, as we're raising a soft exception. It shouldn't cause your app to crash though |
i still have it on RN 0.76.1 |
Description
After I migrated to 0.74, I found that Logcat was reporting an error:
Unhandled SoftException com. Facebook. react. bridge ReactNoCrashSoftException: Tried to access onWindowFocusChange while context is not ready
The AppState.addEventListener fn not triggered
Steps to reproduce
index.js
React Native Version
0.74.0
Affected Platforms
Runtime - Android, Build - MacOS
Areas
JSI - Javascript Interface, Bridgeless - The New Initialization Flow
Output of
npx react-native info
Stacktrace or Logs
Reproducer
none
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: