-
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
Crash in [APMMeasurement fetchRemoteConfig] #12614
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Seeing this as well after updating Firebase pods to 10.23.0 |
Thanks for reporting. I tried to reproduce the issue but I'm unable to get the same error. Is it possible for you to provide a reproducible example? |
I tried a different things that could help fix the issue. First I tried downgrading to Firebase 10.22.1 / GoogleAppMeasurement 10.22.1 => no crash Then I updated back to Firebase 10.23.0 / GoogleAppMeasurement 10.23.0 => crash on first app launch Second, I swizzled the method [NSString isBitEnabledAtIndex:] to intercept the calls to this method and to inspect the arguments: that method is call with self = empty string @"" and index = 754. It raised an exception and crash the app.
It looks like that method is called when parsing the protobuf response of that http request:
Maybe I have some usual configs in my app on Firebase. My workaround to prevent the crash:
|
Thanks for the report. We have a fix for this crash that will go out in the next release. |
Internal tracking bug b/331256683. |
Firebase 10.23.1 was just released, which includes the fix for this issue. |
@paulb777 @htcgh Would it be possible for the team to please upload a |
Sorry, we're not able to generate a Firebase.zip for this patch release. The fix will be available in the 10.24.0 zip due out next week. In the meantime, the 10.23.1 binaries can be extracted from the CocoaPods or Swift Package Manager releases. |
Description
App crash at first startup after fresh install, after a few seconds. The stack trace indicate a crash when APMMeasurement calls [NSString(Bit) isBitEnabledAtIndex:]:
Fatal Exception: NSInvalidArgumentException
-[__NSCFConstantString characterAtIndex:]: Range or index out of bounds
0 CoreFoundation 0xec678 (Missing UUID 5a6c1f41bf7032f6a1d65b894dd21362)
1 libobjc.A.dylib 0x2bc80 objc_exception_throw
2 CoreFoundation 0x1b4cbc (Missing UUID 5a6c1f41bf7032f6a1d65b894dd21362)
3 CoreFoundation 0x1b4cf4 (Missing UUID 5a6c1f41bf7032f6a1d65b894dd21362)
4 CoreFoundation 0x381b4 (Missing UUID 5a6c1f41bf7032f6a1d65b894dd21362)
5 Bandsintown Concerts 0x18fdb90 -[NSString(Bit) isBitEnabledAtIndex:]
6 Bandsintown Concerts 0x18f9c94 -[APMTCFClient stringRepresentationFromTCFData]
7 Bandsintown Concerts 0x18f9ea0 -[APMTCFClient persistedValuesEqualCurrentData]
8 Bandsintown Concerts 0x18f974c -[APMTCFClient setConsentFromTCFData]
9 Bandsintown Concerts 0x18a1f68 -[APMMeasurement tcfClientSetConsentFromData]
10 Bandsintown Concerts 0x1899dd0 -[APMMeasurement uploadData]
11 Bandsintown Concerts 0x18a0d30 -[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:]
12 Bandsintown Concerts 0x18a0668 __35-[APMMeasurement fetchRemoteConfig]_block_invoke
13 libdispatch.dylib 0x26a8 (Missing UUID c49a5fc2c87339139603004f5d0175e7)
14 libdispatch.dylib 0x4300 (Missing UUID c49a5fc2c87339139603004f5d0175e7)
...
Reproducing the issue
No response
Firebase SDK Version
10.23.0
Xcode Version
15.2
Installation Method
Swift Package Manager
Firebase Product(s)
Analytics
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetIf using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: