-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
RCNFetch.m line 246 Random crash after updating the SDK to 6.26.0 #6123
Comments
I found a few problems with this issue:
|
@vinitam I'm sorry you encountered the issue. Could you please also share the supplementary crash info like an exception, crash reason, etc. if available? One of potential crash reasons I can see so far is passing |
We are calling deleteApp within our app which was called previously as well. Attaching the exception for details:
|
@vinitam Thank you for the quick response. The information you provided proves that the reason I described above is most likely behind the crash. As a temporary workaround while waiting for the fix to be released you may try to avoid A bit a side question - I wonder why |
We are dynamically setting firebase config. So every time we set the new config we call As suggested we will remove |
@vinitam In general Firebase has a very limited support for dynamic configuration for now, e.g. the default Firebase app should always be configured at the app start for Analytics to work correctly. Could you please provide more details on the way you dynamically configure Firebase so we can better under if your use case is supported or you may need to make any adjustments? |
Thanks for the response @maksymmalyhin. Just to give you some idea, we are setting firebase with default options at the start of the app. We then make an API call to fetch dynamic config (api key, db url) from the backend and then use the function |
@vinitam Your use case looks reasonable and supported. Calling The PR #6133 that should fix the crash was merged. The fix should be available in the next Firebase release. If you have a chance to test it, you may try to use remote config version from master. Feel free to reopen the issue with more details if you still experience the crash. Thanks. |
@maksymmalyhin I believe I might be having the same sort of problem? Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000028
VM Region Info: 0x28 is not in any region. Bytes before following region: 4342579160
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 0000000102d68000-00000001033e4000 [ 6640K] r-x/r-x SM=COW ....app/*********
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1074]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ********* 0x0000000102f044b8 __65-[RCNConfigFetch refreshInstallationsTokenWithCompletionHandler:]_block_invoke_2 + 1688760 (RCNFetch.m:244)
1 ********* 0x0000000102eb92fc __49-[FIRInstallations installationIDWithCompletion:]_block_invoke + 1381116 (FIRInstallations.m:176)
2 ********* 0x0000000102f3b8e8 __56-[FBLPromise chainOnQueue:chainedFulfill:chainedReject:]_block_invoke.48 + 1915112 (FBLPromise.m:273)
3 libdispatch.dylib 0x0000000196652134 _dispatch_call_block_and_release + 32
4 libdispatch.dylib 0x00000001966535ac _dispatch_client_callout + 20
5 libdispatch.dylib 0x000000019665f85c _dispatch_main_queue_callback_4CF + 968
6 CoreFoundation 0x000000019692c8d4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
7 CoreFoundation 0x000000019692758c __CFRunLoopRun + 1692
8 CoreFoundation 0x0000000196926bc8 CFRunLoopRunSpecific + 480
9 GraphicsServices 0x00000001a0d085cc GSEventRunModal + 164
10 UIKitCore 0x000000019aad9744 UIApplicationMain + 1936
11 ********* 0x0000000102d6f3d8 main + 29656 (main.m:16)
12 libdyld.dylib 0x00000001967a3384 start + 4 I'm trying to use the pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/RemoteConfig', :git => 'https://github.com/firebase/firebase-ios-sdk.git' But I seem to run into this and it might be because of my use of [!] There are multiple dependencies with different sources for `Firebase` in `Podfile`:
- Firebase/Core
- Firebase/Messaging
- Firebase/RemoteConfig (from `https://github.com/firebase/firebase-ios-sdk.git`) |
@Pashtunzoy you can check the version of FirebaseRemoteConfig that was installed by looking at the Podfile.lock. |
@morganchen12 It's |
The latest public (non-master) version is 4.8.0. Something in your Podfile (possibly react?) is causing the Remote Config dependency to be very out-of-date. |
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Random crash after upgrading the SDK to 6.26.0
Steps to reproduce:
The following crash happens on low network on app launch or app update.
The text was updated successfully, but these errors were encountered: