Skip to content

Crash in [APMMeasurement fetchRemoteConfig]  #12614

@eparis-bit

Description

@eparis-bit

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)
...

Screenshot 2024-03-22 at 10 42 43 AM

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 snippet
    {
      "identity" : "firebase-ios-sdk",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/firebase-ios-sdk",
      "state" : {
        "revision" : "fcf5ced6dae2d43fced2581e673cc3b59bdb8ffa",
        "version" : "10.23.0"
      }
    }

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions