Repository navigation
Description
[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:
- For general technical questions, post a question on StackOverflow
with the firebase tag. - For general Firebase discussion, use the firebase-talk
google group. - For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Android Studio version: Android Studio 4.0
Build #AI-193.6911.18.40.6514223, built on May 20, 2020 - Firebase Component: Firebase Crashlytics NDK
- Component version:
firebase-crashlytics-gradle: 2.9.1
firebase-crashlytics-ndk: 18.2.11
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
run app:generateCrashlyticsSymbolFile[AnyBuildType]
It seems to be a similar situation to this Issue: #3338
Although our exit code is 1, compared to theirs which was 126.
We are using the Unreal Engine, and have been doing so with Crashlytics integrated into our app for multiple years now without ever encountering such an issue. We managed to track it down to a particular commit, which was quite a large change in the codebase, and without any particular clues from the failure itself it's hard for us to know where to start to diagnose the problem.
It will be nearly impossible for us to create a MCVE since that would probably include the Unreal Engine, and since we don't really know why it is failing we don't know what would be required in the MCVE to reproduce the issue.
This is the output I receive:
output.txt
stderr.txt
I've tried following the suggestions in the thread above to get more information, but having a bit of trouble.
If I run the dump_syms.exe manually on the specific .so file that is causing the failure (libue4.so) with the -v option I get the following output only:
'Failed to mmap ELF file 'app\build\intermediates\merged_native_libs\release\out\lib\armeabi-v7a\libUE4.so': No error
Failed to write symbol file.'
However I'm not sure I'm supplying the correct parameters to dump_syms. I'm trying to follow the instructions here:
https://www.chromium.org/developers/decoding-crash-dumps/
where it mentions running:
dump_syms /lib/libfoo.so /usr/debug/lib > /tmp/libfoo.so.sym
But even with the .so files that the symbol generation succeeds on (libplaycore.so for example) I get the error:
libplaycore.so: file contains no debugging information (no ".stab" or ".debug_info" sections)
So I think I'm doing something wrong.
As with the poster in the linked thread, I'd expect more information about the failure itself in order to diagnose the issue properly. As it stands I'm not 100% where the problem lies.
Activity
google-oss-bot commentedon Nov 3, 2022
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
humanolaranja commentedon Dec 8, 2022
Facing the same
smg-daniell commentedon Jan 9, 2023
I have exactly the same issue on windows, but I don't get this error on Mac
mrober commentedon Feb 3, 2023
The dump_syms executable distributed with the Crashlytics gradle plugin is modified, can you try running that command manually again but use the dump_syms located in
build/crashlytics/{debug|release}/dump_syms/? If that still does not work, would you be willing to share your symbols file with us? If so, please reach out to Firebase support, provide them with the symbols file, and mention my name mrober. Thanks!limjonguk commentedon Feb 6, 2023
I'm experiencing the same issue after updating Crashlytics.
The test environment is as follows.
[Build environment]
[updated version]
There were several processes, but the build was successful by changing the symbol file generator to cSYM. (The symbol file generator has been changed to 'breakped' since crashlytics-gradle v2.8.0)
But still seems to be having issues. Null symbol file generated for.. message is displayed and the symbol file is not normally created.
I've contacted Firebase support and are working on this issue with Marlon (Case 10215122). If there are any additional confirmations, we will share them.
jpainam commentedon Apr 17, 2023
Experiencing the same issue
mrober commentedon May 18, 2023
I am trying to reproduce this issue on Windows. Would somebody be willing to send an example of their symbols file that experiences this issue to Firebase Support and mentioned my ldap mrober? Then I can look deeper.
limjonguk commentedon May 18, 2023
@mrober Hello, we are still talking with Marlon about (firebase support : Case 10215122).
We will reproduce the issue in a few days and share the symbol file. thank you.
unpaleness commentedon May 23, 2023
Experiencing the same issue with our project, but we don't use UE, we have custom engine.
9 remaining items
unpaleness commentedon Jun 29, 2023
Hi!
I've tried to use 2.9.7-alpha as mentioned above but unfortunately the problem still persists. The difference is in the error code:
> java.io.IOException: Breakpad symbol generation failed (exit=-1073741511), see STDERRIt fails on the same big *.so file > 2GB
mrober commentedon Jun 29, 2023
@unpaleness would you be able to send me the so file so I can look into it? You can reach out to Firebase Support and it will get routed to me. Thanks
unpaleness commentedon Jun 30, 2023
I've also checked a weird approach and it works:
danbachler commentedon Jul 31, 2023
I am running into a very similar problem except my exit code is 134. (same error as #4699)
The build environment is a Linux VM, managed by CircleCI, but the same build step also failed on a Linux machine (Mint 21.1 Cinnamon, Kernel 5.15.0-78-generic), and a Mac machine (Ventura 13.4.1).
The issue is with a golang lib (.so), all other libs both internal and external process fine.
We are running version 2.9.7 on all mentioned devices.
rostyslavbur commentedon Aug 4, 2023
@mrober Hi, after update to 2.9.7(or 2.9.8) facing similar issue "java.io.IOException: Breakpad symbol generation failed (exit=-1073741511), see STDERR". When trying to launch dump_syms.exe, even .exe standalone(without specifying any arguments) it fails with an exception "the procedure entry point _ZSt28_throw_bad_array_new_lengthv could not be located in the dynamic link library", checked 2.9.6 version and below, everything is ok, as far as I understand "libstdc++-6.dll" must include that symbol, but it doesn't.
mrober commentedon Aug 4, 2023
Thanks for reporting this everyone. I found there are three issues:
dump_symsbinary itself failing to run on some machines due to an oldlibstdc++-6.dllon Windows since 2.9.7So 1. is fixed in 2.9.7, but some machines might not be able to utilize it due to 3. I will post a new version of
dump_symstoday. And that will be included in the next release in a couple weeks. And 2. is still in progress, I am not sure if it will make it into the next release or the next-next release.mrober commentedon Aug 4, 2023
@rostyslavbur Here is a
dump_symsbinary that I built to avoid the issue withlibstdc++-6.dll. I am still not sure how we will resolve this for the next release, so just consider this a work in progress. Please let me know if you have any issues with this version or any questions.mrober commentedon Aug 28, 2023
The
dump_symsbinary for Windows is fixed in version 2.9.9 of the Crashlytics Gradle plugin. You may need to clean your build environment to ensure the plugin is using the latest version of the binary.We are working on a fix for the issue with symbols for some golang libs failing to upload.
sergeiignatov commentedon Oct 23, 2023
@mrober could you please advice, how can I exclude one prebuilt *.so library from symbol file upload? It will be useful to exclude that golang lib temporarily until fix is released.
mrober commentedon Oct 23, 2023
@sergeiignatov in the mean time you could disable uploading from your gradle build file by setting
nativeSymbolUploadEnabled = false, and then use the Firebase CLI to upload symbols. You can specify each file if you want, or copy all but the golang into a dir and upload that. Sorry for the delay in this issue, we are working on other high priority issues right now, but I do plan to work on this soon.davidgalarza commentedon Apr 16, 2024
Any update I'm facing the same issue to upload android symbols with my MAC M3 PRO:
mrober commentedon Apr 25, 2024
We have a prerelease of the next major version of the Crashlytics Gradle plugin, you can find it in #5733. This has several improvements, including better support native apps. The prerelease comes with the latest upstream changes to Breakpad, which will resolve this problem. If the prerelease does not resolve this problem, please let me know on that issue.