FireBase FIRMessagingSecureSocket crashing iOS app - ios

I have built an app where people can send messages to other users. My server then makes requests to Firebase to send a notification to the receiving user's device. During internal testing, it works fine. But now that we have open beta testers, there is an error that shows up in Crashlytics for:
UIApplicationMain
signalEventSync
[FIRMessagingSecureSocket stream:handleEvent:]
[FIRMessagingSecureSocket performRead]
[NSData(NSData) subdataWithRange:]
Fatal Exception: NSRangeException
*** -[NSConcreteMutableData subdataWithRange:]: range {0, 18446744073709551423} exceeds data length 16384
Crashyltics logs it about 3-5 times an hour for iOS 10.0.2, 10.0.3, and 10.1.0. So it appears only a small minority is problematic. I've been logging the requests my server makes to Firebase and none of the payloads (JSON, only text) are exceeding a couple hundred characters. I'm using FireBaseCore 3.4.3 and developing with XCode 8.0, Swift 3.0. I have the same app for Android and there are no logs of this crash happening.
Emails I have had with FireBase support have not given any insights to this issue. Has anyone had an issue similar to this? Or any ideas of where to look next?

Related

Firebase Crashlytics reporting crash on iOS application

I am getting a crash on firebase on SKStoreProductViewController, while during testing this crash is not being produced.
Is there anyway to resolve this issue? Thanks.
Fatal Exception: NSInvalidArgumentException
-[SKStoreProductViewController sceneDisconnected:]: unrecognized selector sent to instance
How to resolve the reported issue?
This crash happens in the public release of iOS/iPadOS 15.7, and seed releases of iOS/iPadOS 16 prior to seed 4 [1]. It does not occur in the public release of iOS 16.
The crash primarily happens when the app is in the background and is about to be terminated by the operating system. As a result, these crashes are not expected to be visible to the majority of end users. (One exception is on iPad with an app that supports multiple scenes, and a user manually terminates a scene.)
Your analytics will show an increased in crash rate, however your customers should not be affected by this issue.
You can refer to https://developer.apple.com/forums/thread/714464

Getting an "process suspension ios 12 unable tp acquire assertion for process with pid 0" error in my ionic 3 IOS app

I am build an ionic 3 app. I am using WKWebView 4.0.1 version. The app works fine in Android, however the app crashes after few minutes when I run the IOS version. I get the following error message when the app crashes:
process suspension ios 12 unable to acquire assertion for the process with
pid 0
The app usually crashes when I switch between pages that contain google geojson maps. My ios version is 12.3.1. It seems many people have this issue and many points to the fact that the app is taking up lots of memory. I am completely lost on this now. Please help me through this.

Firebase Crashlytics; misleading crash count?

I'm using Firebase as my backend and I've have an app running in production, which I'm monitoring crashes for in Crashlytics.
Because my app uses bitcode, I upload the dSYM's manually after releasing the app. In the "dSYMs"-tab of Crashlytics in the Firebase console, I see the following "Crash count":
What does this "Crash count" mean?
When looking at the Crashlytics dashboard I see a completely different picture of my app:
For now I'll believe that only one crash happened, but these mystical 1051 crashes aren't very reassuring...

iOS Firebase: Error Unable to generate keypair

In our ios Swift app we use Firebase Analytics. (Firebase 3.16.0, Firebase Analytics 3.8.0, Firebase Core 3.6.0, FirebaseInstanceID 1.0.10)
Our app gets background launched from significant location changes but can be launched and used normally in the foreground. Sometimes we see the following error and warning pop up multiple (a lot of) times in our log.
<Error> [Firebase/Messaging][I-IID010003] Unable to generate keypair.
<Warning> [Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-25308 "(null)"
It looks like those errors and warnings only pop up if the app was actually background launched by the SLC. Where do these errors come from?
Note: Keychain Sharing is setup correctly
thank you.

Firebase crash reporting causing crashes on iOS 10

I noticed that since iOS 10 release I have couple of crashes refers to firebase library system monitoring.
Crashed: com.google.system-monitoring
SIGABRT ABORT 0x0000000186c58ff0
-[FCRSystemMetadata sampleMemoryStats] + 4300660144
I already updated to the latest version of firebase on my app, but is there any way I can fix this?
At this moment, Firebase does not work on iOS 10, neither a device nor a simulator. This is a work in progress, so please stay tuned for updates. You can follow general discussion on Firebase at the firebase-talk group, and the Firebase Blog will have announcements as they occur.

Resources