-
Notifications
You must be signed in to change notification settings - Fork 606
Native crash reports missing symbol information (file name, line number, function name) #1978
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
Comments
Any update on this? We are having the same issue |
Haven't had symbol information in native crashes for months. This was first reported in July. Really looking forward to being able to understand our crashes again, some day. Was hoping that having a sample project to reproduce the problem would facilitate the resolution. |
seeing the same behavior. |
Looks like this is fixed with:
I checked this using |
I can confirm that it works on my side too with:
Using com.android.tools.build:gradle:4.1.0 and gradle wrapper 6.5 |
I've just tried using the same configuration and it still doesn't work. Running My project tree is structured like detailed here: #1700 (comment) ------ Dec 2020 update -------Thanks to the Firebase support I finally got it back to work! I leave a quick recap here hoping it will help those who are facing a similar issue. Build setup
Checklist
Now you should be able to see the stacktraces on the Firebase console when a native crash occurs. |
I have a few questions. (2) Looks like gradlew uploadCrashlyticsSymbolFile is able to upload the symbols successfully. I can see that a compressed file is generated and is uploaded. However, I am still not able to find the symbols in firebase. Do we need to configure anything in the Firebase console? I am using:
|
I'm not sure about Cmake, sorry. I use GNU Makefile and I just added the flag to my LDFLAGS.
Please check if the build id of your native lib is part of the name of the uploaded compressed file (e.g.
No, I didn't changed anything on that side. |
FYI, if you are using firebase-crashlytics-ndk 17.3.0+ and firebase-crashlytics-gradle 2.4.1+, you no longer need to specify the stripped libs directory. |
[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
./gradlew clean assembleRelease uploadCrashlyticsSymbolFileRelease
*.so
name andMissing
. For example:Relevant Code:
Here's a sample app: https://github.com/libon/CrashObfuscationTest
It doesn't include native code, but it depends on a native library, linphone.
The sample project has a screen with a button, which when pressed, forces a crash in linphone by calling a method with a
null
value which isn't supported by linphone:To upload the debugging symbols to crashlytics, it extracts them from the debug artifact provided by linphone and copies them to the relevant folders specified by
strippedNativeLibsDir
andunstrippedNativeLibsDir
.Note, the crashes appear correctly with the file names and line numbers if Android Gradle Plugin
3.6.3
is used instead of4.0.1
.The problem also exists with Android Gradle Plugin
4.2.0-alpha10
(the latest version as of today)The text was updated successfully, but these errors were encountered: