firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.55k stars 1.45k forks source link

[in-AppMessaging][Crash] FIRIAMRenderingWindowHelper.m #9376

Closed limaAniceto closed 1 year ago

limaAniceto commented 2 years ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Seeing firebase crashes spike since we started a campaign This campaign uses a card and it has a button/images

image image image

Steps to reproduce:

  1. Create a campaign with a card and target iOS

I could not reproduce this locally but seen it on firebase crashlytics

morganchen12 commented 2 years ago

Based on the presence of CPTemplateApplicationScene, this is likely a crash occurring when Firebase tries to present messages with CarPlay connected. For the time being, you can probably work around this crash by suppressing messages until CarPlay is disconnected.

limaAniceto commented 2 years ago

Thank you for the quick response @morganchen12 🙏

We'll follow your advice, have a great day 👋

EmDee commented 1 year ago

Oh wow! We've seen this crash for quite a while now, but never connected it to Firebase, because the Sentry crash logs were very cryptic:

NSInvalidArgumentException

-[CPTemplateApplicationScene coordinateSpace]: unrecognized selector sent to instance 0x153e709c0

I wouldn't be surprised if a lot of others ran into this without noticing.