-
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
NullPointerException: Attempt to invoke virtual method 'JavaTimerManager$IdleCallbackRunnable.cancel()' on a null object reference #44842
Labels
Comments
|
github-actions
bot
added
Newer Patch Available
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
labels
Jun 8, 2024
|
@javache thought maybe you could have a look at this! thanks :) |
github-actions
bot
added
Needs: Attention
Issues where the author has responded to feedback.
and removed
Needs: Author Feedback
labels
Jun 8, 2024
This seems like the same issue as #38832. It was closed by @cortinico for lack of symbolicated traces but I'm not sure I understand why (it does have a full stacktrace which does show the exact line that's throwing — because another variable can set that variable to null). Are more details needed at this point? |
gaearon
added a commit
to bluesky-social/social-app
that referenced
this issue
Jun 8, 2024
cortinico
added
Resolution: PR Submitted
A pull request with a fix has been provided.
and removed
Needs: Triage 🔍
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Needs: Attention
Issues where the author has responded to feedback.
labels
Jun 10, 2024
cortinico
added a commit
to cortinico/react-native
that referenced
this issue
Jun 10, 2024
Summary: This attempts to fix facebook#44842 by capturing the accessed field in a new variable. We don't have a way to reproduce this & this is a best guess fix. Changelog: [Android] [Fixed] - Tentative fix for NPE `JavaTimerManager$IdleCallbackRunnable.cancel` Differential Revision: D58356826
Titozzz
pushed a commit
that referenced
this issue
Jun 18, 2024
…44852) Summary: Pull Request resolved: #44852 This attempts to fix #44842 by capturing the accessed field in a new variable. We don't have a way to reproduce this & this is a best guess fix. Changelog: [Android] [Fixed] - Tentative fix for NPE `JavaTimerManager$IdleCallbackRunnable.cancel` Reviewed By: javache Differential Revision: D58356826 fbshipit-source-id: d016df9a52f81a8d645a0a100c6bc6111841e24e
Titozzz
pushed a commit
that referenced
this issue
Jun 18, 2024
…44852) Summary: Pull Request resolved: #44852 This attempts to fix #44842 by capturing the accessed field in a new variable. We don't have a way to reproduce this & this is a best guess fix. Changelog: [Android] [Fixed] - Tentative fix for NPE `JavaTimerManager$IdleCallbackRunnable.cancel` Reviewed By: javache Differential Revision: D58356826 fbshipit-source-id: d016df9a52f81a8d645a0a100c6bc6111841e24e
Titozzz
pushed a commit
that referenced
this issue
Jun 18, 2024
…44852) Summary: Pull Request resolved: #44852 This attempts to fix #44842 by capturing the accessed field in a new variable. We don't have a way to reproduce this & this is a best guess fix. Changelog: [Android] [Fixed] - Tentative fix for NPE `JavaTimerManager$IdleCallbackRunnable.cancel` Reviewed By: javache Differential Revision: D58356826 fbshipit-source-id: d016df9a52f81a8d645a0a100c6bc6111841e24e
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
We got this in Sentry:
The stack trace says it essentially happens here:
react-native/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java
Lines 104 to 106 in 61de7da
The only way I can imagine it happening is due to concurrent access to
mCurrentIdleCallbackRunnable
. So I wonder if the fix is to capturemCurrentIdleCallbackRunnable
locally before doing the null check? Or else addsynchronized
.Steps to reproduce
Unknown. But! Look at the stack trace.
React Native Version
0.74.1
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/bluesky-social/social-app/
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: