flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[firebase_crashlytics]: java.io.IOException: Breakpad symbol generation failed (exit=1) by GitHub Actions

Open alpha2048 opened this issue 6 months ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Which plugins are affected?

Crashlytics

Which platforms are affected?

Android

Description

When I upload crashlytics symbols generated by Flutter Android build in GitHub Actions (ubuntu-latest), BreakPad error occurs.

Reproducing the issue

Sample Repository: https://github.com/alpha2048/flutter_firebase_crashlytics_test/tree/feature/flutterfire

Reproduce Step:

  1. flutter create
  2. add firebase_core, firebase_crashlytics to pubspec.yaml
  3. Github Actions: build apk with those options: -obfuscate, --split-debug-info
  4. Github Actions: crashlytics:symbols:upload with w9jds/[email protected]

Firebase Core version

~~2.31.0~~ 3.3.0

Flutter Version

3.22.2

Relevant Log Output

java.io.IOException: Breakpad symbol generation failed (exit=1), see STDERR
	at com.google.firebase.crashlytics.buildtools.ndk.internal.breakpad.BreakpadSymbolGenerator.generateSymbols(BreakpadSymbolGenerator.java:129)
	at com.google.firebase.crashlytics.buildtools.Buildtools.generateNativeSymbolFiles(Buildtools.java:306)
	at com.google.firebase.crashlytics.buildtools.CommandLineHelper.executeGenerateSymbols(CommandLineHelper.java:193)
	at com.google.firebase.crashlytics.buildtools.CommandLineHelper.executeCommand(CommandLineHelper.java:125)
	at com.google.firebase.crashlytics.buildtools.CommandLineHelper.main(CommandLineHelper.java:72)
	at com.google.firebase.crashlytics.buildtools.Buildtools.main(Buildtools.java:114)


Error: java command failed with args: -jar,/github/home/.cache/firebase/crashlytics/buildtools/crashlytics-buildtools-3.0.2.jar,-symbolGenerator,breakpad,-symbolFileCacheDir,/tmp/crashlytics-7e5def19-0756-4885-86d6-b898c867ed4a/nativeSymbols/1-88925584673-android-5e29e631a333787113d260/breakpad,-verbose,-generateNativeSymbols,-unstrippedLibrary,outputs,-clientName,firebase-cli;crashlytics-buildtools

Flutter dependencies

Expand Flutter dependencies snippet

Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

If I use an older firebase-action, e.g. v13.10.2, it succeeds. Also, if I upload it from my Mac with the new CLI, it succeeds too.

I don't know what's causing the error. It might be a problem with firebase-action. Sorry, but I'll put it here first.

alpha2048 avatar Aug 11 '24 10:08 alpha2048