-
Notifications
You must be signed in to change notification settings - Fork 2.2k
IOS Bug, RNFBAuthModule.m - line 1146 -[RNFBAuthModule firebaseUserToDict:] com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS #3416
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
Comments
Hi @hiroyaiizuka, could you please provide a code sample of where the error occurs? |
Additionally, if you've got a native code issue, it seems like you will need a native code fix, yes? That will necessarily be based off most current code, so you should start your testing based off current code. That's 6.4.0 for react-native-firebase, and firebase iOS SDKs 6.21.0 specified like so https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-v6.sh#L33 Imagine the time wasted if the issue was already fixed and all you needed to do was specify a couple different numbers! |
Thank you for your quick reply. To tell you the truth, I'm not familiar with Native code.. (8.1.1 - 9.0.0 is our latest release, and upgraded rn firebase from 5.4.2 to 6.3.4) As you taught me, I will upgrade rn-firebae to 6.4.0 ! |
I updated and still getting the error. |
Hello 👋, to help manage issues we automatically close stale issues.
|
Hey @hiroyaiizuka, do you have any further information regarding the crash? Do you know which authentication route (e.g. facebook, anonymous, etc) is causing the majority of the errors? Could you provide the full stack trace, please? Has there been any improvement since upgrading to version |
Thank you for your reply! Here is the stackTrace.
|
I had a similar issue with Apple Auth firebase/firebase-ios-sdk#4561 - they smell the same. I now null check the username and the email before I call the apple login or the firebase get emails for user stuff. Perhaps with stricter checking on the arguments to each API call you would succeed, and/or breakpoints in the upstream iOS SDK code (it's open source actually) you could see what's happening It really looks like an upstream issue but there's a chance not since the final stack seems to be in the callback handler here |
facing the same issue with firebase SDK v6.13.0 and
@hiroyaiizuka are you experiencing the crashes with any particular version of iOS? in my case all the crashes occurred on users with iOS 13.4.1 |
@gearguy365 strongly recommend upgrade to react-native-firebase current (v7.x) and SDKs current (iOS is on 6.25.x now I think?) - should be the best path as troubleshooting old code will have everyone chasing already-fixed phantoms, specifically #3339 was massive, and it merged in react-native-firebase 6.4, there are likely others so getting current should be step 1 |
@gearguy365 The breakdown is |
After upgrade react-native firebase latest version, error still happens 😥
|
What's the result of a search for upstream issues in firebase-ios-sdk? |
Thank you for your reply! I read this issue and in next release, we will add strict null check in email, password. As you pointed out , we also doubt the possibility that currentUser null problem might cause this.
Our codes included above, so we add
and also add null check before calling auth API. before:
after:
This change will be released 6/20 ~ 6/27. Thank you for your kindness. |
I upgraded latest firebase module and insert null checks where auth api are used, but crash still lasts... |
Hello 👋, to help manage issues we automatically close stale issues.
|
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Is this issue fixed? I am getting so many crashes. What's the solution? |
Issue
IOS only bug.
App was crashed with title error log on Firebase Crashlystics.
We use Firebase Authentication with email, apple sign-in, facebook, and anonymous login.
error log is below.
firebase.json
for react-native-firebase v6:Environment
"react-native": "0.61.5",
"@react-native-firebase/app": "^6.3.4",
"@react-native-firebase/auth": "^6.3.4",
"@react-native-firebase/crashlytics": "^6.3.4",
Platform that you're experiencing the issue on:
react-native-firebase
version you're using that has this issue:6.3.4
The text was updated successfully, but these errors were encountered: