firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
216 stars 35 forks source link

[Bug] Firebase Crashlytics v9.6.0 Not Working on iOS #493

Closed CodeMasterYi closed 1 year ago

CodeMasterYi commented 1 year ago

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the issue here:

we upgrade Firebase SDK from v9.4.0 to v9.6.0. old version's files are deleted via EDM4U. we are sure we upgrade it in a right way. but we find no crash or non-fatal issues on the firebase console even we explicitly throw an exception. We are sure that it works well on v9.4.0. BTW, 9.6.0 works well on Android.

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? What's the issue repro rate? (eg 100%, 1/5 etc)

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

If you have a downloadable sample project that reproduces the bug you're reporting, you will likely receive a faster response on your issue.

Relevant Code:

// TODO(you): code here to reproduce the problem
paulinon commented 1 year ago

Hi @CodeMasterYi,

Based on the information you provided, I'm getting that crashes or non-fatal issues aren't being reported since upgrading to version 9.6.0 of the SDK, and this occurs on iOS builds. Version 10.0.0 has been released recently. Could you confirm if this version makes a difference? This is to make sure that you have the latest bug fixes and updates, but take note that the minimum supported editor version for this is now Unity 2019.

CodeMasterYi commented 1 year ago

What we find in log!

09:35:25.879395+0800    destiny [Firebase/Crashlytics] Version 9.6.0
09:35:27.891112+0800    destiny 9.6.0 - [FirebaseCrashlytics][I-CLS000000] Warning: NSUncaughtExceptionHandler is 'unknown' in '/private/var/containers/Bundle/Application/552D786E-3ED2-4A81-95D1-F752780A57C5/destiny.app/destiny'
09:35:59.507600+0800    destiny [Firebase/Crashlytics] Version 9.6.0
09:36:01.507874+0800    destiny 9.6.0 - [FirebaseCrashlytics][I-CLS000000] Warning: NSUncaughtExceptionHandler is 'FBSDKExceptionHandler' in '/private/var/containers/Bundle/Application/552D786E-3ED2-4A81-95D1-F752780A57C5/destiny.app/Frameworks/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics'

Sometimes NSUncaughtExceptionHandler is 'unknown' and sometimes it is FBSDKExceptionHandler. I wonder if the firebase exception handler registration has a timeline issue in v9.6.0?

paulinon commented 1 year ago

Hi @CodeMasterYi,

I've used our quickstart to determine if something may be wrong with that specific version, and I didn't find anything unusual. The crashes are seen in the console, and I have not encountered the logs you indicated. With that, could you provide a minimal, reproducible example of your implementation so that we could identify what's causing this behavior? Could you also indicate the OS version of the device you're using?

CodeMasterYi commented 1 year ago

Sorry, I cannot provide an example for you. What if I open another View(For example debug integration view in ApplovinMax SDK) during initialization?

CodeMasterYi commented 1 year ago

My iPhone OS version is 14.6

paulinon commented 1 year ago

Hi @CodeMasterYi,

Are you able to encounter the issue with just the Firebase SDK in your Unity implementation? If so, please provide the sample code you're using to cause crashes in your app. Otherwise, it's possible that the cause of this behavior lies in your project configuration.

google-oss-bot commented 1 year ago

Hey @CodeMasterYi. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 1 year ago

Since there haven't been any recent updates here, I am going to close this issue.

@CodeMasterYi if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.