iosfirebasecrashexc-bad-accessnanopb

Crash in nanopb iOS 17.4.0


My app started crashing right on startup on iOS 17.4. Prior this version everything was ok. Crashlytics says this is some crash in nanopb on main thread in pb_check_proto3_default_value + 342.

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000001736eb51c

enter image description here

As you can see, right in AppDelegate, Firebase starts its warming up routines (I guess) and crashes.

nanopb sources are cryptic for me because I don't know C. The worst part the bug is reproducible only in Testflight builds, local builds (both release and debug) work well.

What can I do, guys? Maybe some of you experienced this problem on iOS 17.4 as well?


Solution

  • This is a bug in Firebase, which should be fixed in version 10.22.0.

    https://github.com/firebase/firebase-ios-sdk/issues/11403