firebase / quickstart-unity

Firebase Quickstart Samples for Unity
https://firebase.google.com/games
Apache License 2.0
819 stars 424 forks source link

Cannot upload debug symbols for Android to crashlytics #1298

Closed nioan closed 1 year ago

nioan commented 1 year ago

[READ] For Firebase Unity SDK issues, please report to Firebase Unity open-source

Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the issue here:

Cannot upload symbols with firebase cli. The original symbols file is 2.7GB. Following some advice on unity forums, I removed dbg.so files and re-zipped the symbols. The result is a symbols file slightly over 300MB.

This all is happening in a ruby image in docker. I don't see any java binary installed, but this probably is bundled with the firebase cli.

I tried to upload with the following command: firebase crashlytics:symbols:upload --app= --token='' ./symbols.zip

I get the following error:

i Generating symbols for ./Fantastic_Battles-1.0-v3873.symbols.zip ⚠ An unknown error occurred

Error: java command failed with args: -jar,/root/.cache/firebase/crashlytics/buildtools/crashlytics-buildtools-2.9.1.jar,-symbolGenerator,breakpad,-symbolFileCacheDir,/tmp/crashlytics-8bfa47d0-5ad7-4a44-940d-801203314456/nativeSymbols/1-768264781817-android-d20c4070873c6fabe38728/breakpad,-verbose,-generateNativeSymbols,-unstrippedLibrary,./.symbols.zip,-clientName,firebase-cli;crashlytics-buildtools

The error occurs with both the original 2.7GB symbols file as well as the 300MB version I created (maximum zip, no dbg.so files).

Steps to reproduce:

Not sure how you can reproduce on your side.

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) 100%

What happened? How can we make the problem occur?

Not sure how you can reproduce on your side. Happy to send the symbols file in a private message.

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
paulinon commented 1 year ago

Hi @nioan,

This issue appears to be more related to the Firebase CLI rather than the SDK, but the cause of this behavior could be related to the command you're using. Take note that the command for uploading symbols is

firebase crashlytics:symbols:upload --app=<FIREBASE_APP_ID> <PATH/TO/SYMBOLS>

You may refer to our documentation for more information. If the issue persists after making changes to your command, you may raise this to the Firebase CLI GitHub repository. Feel free to include any relevant information such as CLI version and latest error logs.