docchang
docchang

Reputation: 1125

Is there a way to get Firebase Crashlytics Unity C# line number crash information?

I've been using Firebase crashlytics for some time and have been trying to get more information on crashes and exceptions on iOS & Google builds. However, I'm can't seem to get the line numbers to show up in Unity C# scripts. Does Crashlytics offer line number details? or I'll have to include another sdk?

Below is an example of an iOS crash.

Non-fatal Exception: InvalidOperationException
0  ???                            0x0 ThrowIfCheckDependenciesRunning (Firebase.FirebaseApp)
1  ???                            0x0 GetInstance (Firebase.FirebaseApp)
2  ???                            0x0 get_DefaultInstance (Firebase.FirebaseApp)
3  ???                            0x0 get_DefaultInstance (Firebase.RemoteConfig.FirebaseRemoteConfig)
4  ???                            0x0 FetchRemoteConfig (FirebaseServer)
5  ???                            0x0 ForegroundPostSynced ()
6  ???                            0x0 OnSuccessEmp ()
7  ???                            0x0 OnSuccessEmp ()
8  ???                            0x0 OnSuccess
9  ???                            0x0 OnSuccess

Upvotes: 1

Views: 854

Answers (1)

Joe Spiro
Joe Spiro

Reputation: 309

Unity iOS builds should upload crashlytics symbols automatically (after Crashlytics version 8.6.1) as part of the Xcode build process. This then allows stacktraces to show c# line numbers.

What versions of the following are you using?

  1. Unity Editor
  2. Firebase SDKs (they should all be at the same version number)
  3. External Dependency Manager for Unity

Additionally, as another thing to check, are those stack frames/method calls in your user code, in a plugin or somewhere else? If they are not in your code, less information may be available.

Upvotes: 1

Related Questions