-
Notifications
You must be signed in to change notification settings - Fork 38
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
[Bug] SIGSEGV in firebase::analytics::SetConsent #1104
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @gamma-omg, thanks for reaching out. Were you using a previous version of Firebase Analytics before encountering this issue? If so, could you share which version was it? I'm wondering if this was caused by a recent update in our native Firebase Android SDK which was added during the release of version 12.1.0 of Firebase Unity SDK. |
Hi @argzdev, thanks for your reply. We were using Firebase 11.9.0 when we first encountered this issue. We had been using this version for quite some time without any problems. However, when we started using the |
Thanks for the extra details, @gamma-omg. Any chance you could share some sample code snippets of your usage with |
@argzdev Hi! Unfortunately, I can't provide you with detailed source code, but here's what we basically do: Before using any Firebase APIs, we ensure that Firebase is fully initialized by calling our initialization method, which caches the initialization task to prevent redundant calls:
The FirebaseService.Require method works as follows:
Once Firebase is initialized, we set the user's consent preferences using FirebaseAnalytics.SetConsent. The consent statuses are determined using Google's User Messaging Platform (UMP):
If you need any additional information, please let me know. I'll try to help you as much as I can. |
We have the same problem. Any updates? |
Description
We are experiencing a significant number of crashes related to Firebase Analytics when calling the
FirebaseAnalytics.SetConsent
method, as reported by Google Play Console. Below are the details from the crash logs:Even with invalid parameters passed to
FirebaseAnalytics.SetConsent
, we expect this method to handle errors gracefully by either throwing an exception or logging the error. However, it currently causes the application to crash.Could you please investigate this issue? Ideally, the method should fail gracefully without crashing the app.
Reproducing the issue
We were unable to reproduce the issue locally and have only observed it through crash logs provided by Google Play Console. According to these reports:
Firebase Unity SDK Version
12.1.0
Unity editor version
2022.3.41f1
Installation Method
.unitypackage
Problematic Firebase Component(s)
Analytics
Other Firebase Component(s) in use
Analytics, Crashlytics, Messaging, Remote Config
Additional SDKs you are using
Targeted Platform(s)
Android
Unity editor platform
Mac, Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Relevant Log Output
No response
If using CocoaPods for Apple platforms, the project's Podfile.lock
No response
The text was updated successfully, but these errors were encountered: