question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[CRASHLYTICS] Android native crashes only have "???" in the title

See original GitHub issue

I’m seeing a strange issue where native Android crashes show up in Crashlytics with “???” as the title instead of something more useful. I’m not sure if this is expected behaviour but it doesn’t feel like it.

Setup: Unity Version: 2019.4.26f1 Firebase Version: 8.8.0

STR:

  • Setup up the quickstart-unity project for Crashlytics.

  • Build for Android

  • Trigger a native crash* and re-open the app.

  • (Optional) Upload the symbol files

  • Go to the Crashlytics dashboard and see the crash ** It should have a title “???”

  • I used this method to trigger a native crash however it also appears in our production environment for native other native crashes:

    public void ThrowNativeCrash()
    {
      // https://stackoverflow.com/questions/17511070/android-force-crash-with-uncaught-exception-in-thread
      var message = new AndroidJavaObject("java.lang.String", "This is a test crash, ignore.");
      var exception = new AndroidJavaObject("java.lang.Exception", message);
	       
      var looperClass = new AndroidJavaClass("android.os.Looper");
      var mainLooper = looperClass.CallStatic<AndroidJavaObject>("getMainLooper");
      var mainThread = mainLooper.Call<AndroidJavaObject>("getThread");
      var exceptionHandler = mainThread.Call<AndroidJavaObject>("getUncaughtExceptionHandler");
      exceptionHandler.Call("uncaughtException", mainThread, exception);
    }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jamier-hhcommented, Mar 8, 2022

Also, I followed the steps here to upload the symbols to Crashlytics and it seemed to make no difference.

0reactions
google-oss-botcommented, Oct 25, 2022

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

@jamier-hh 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashlytics doesn't display native crashes
Fabric is setup and working with the Java layer crashes. The problem: Native crashes get reported but the debug symbols are missing, there...
Read more >
Get Android NDK crash reports | Firebase Crashlytics - Google
If your Android app contains native libraries, you can enable full stack traces and detailed crash reports for your native code from Firebase...
Read more >
Customize your Firebase Crashlytics crash reports
iOS+. Android Flutter Unity. This guide describes how to customize your crash reports using the Firebase Crashlytics SDK. By default, Crashlytics ...
Read more >
[SOLVED] Does anyone have Firebase Crashlytics ...
For my JUCE project, I have setup Crashlytics following the relevant guides for Installing Crashlytics and enabling NDK crash monitoring.
Read more >
How can I collect native crashes info without Crashlytics ...
I need to collect some simple data about native crashes (C/C++/...) hapenning in my app - the fact that a crash has happened...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found