firebase-unity-sdk icon indicating copy to clipboard operation
firebase-unity-sdk copied to clipboard

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

Open CodeMasterYi opened this issue 3 years ago • 6 comments

[REQUIRED] Please fill in the following fields:

  • Unity editor version: Unity 2018.4.36f1
  • Firebase Unity SDK version: 9.6.0
  • Source you installed the SDK: .unitypackage (.unitypackage or Unity Package Manager)
  • Problematic Firebase Component: Crashlytics (Auth, Database, etc.)
  • Other Firebase Components in use: Analytics (Auth, Database, etc.)
  • Additional SDKs you are using: Facebook,AdMob,Adjust,AppLovin Max (Facebook, AdMob, etc.)
  • Platform you are using the Unity editor on: Mac, Windows (Mac, Windows, or Linux)
  • Platform you are targeting: iOS,Android (iOS, Android, and/or desktop)
  • Scripting Runtime: IL2CPP (Mono, and/or IL2CPP)
  • Pre-built SDK from the website or open-source from this repo: Pre-built SDK

[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

CodeMasterYi avatar Oct 19 '22 11:10 CodeMasterYi

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.

paulinon avatar Oct 19 '22 16:10 paulinon

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?

CodeMasterYi avatar Oct 20 '22 02:10 CodeMasterYi

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?

paulinon avatar Oct 20 '22 09:10 paulinon

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 avatar Oct 20 '22 10:10 CodeMasterYi

My iPhone OS version is 14.6

CodeMasterYi avatar Oct 20 '22 10:10 CodeMasterYi

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.

paulinon avatar Oct 20 '22 18:10 paulinon

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 avatar Oct 27 '22 01:10 google-oss-bot

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.

google-oss-bot avatar Nov 03 '22 01:11 google-oss-bot