Flutter Release Crash Stack Trace Unreadable? Symbolize It

A crash report from your Flutter release build shows only hex addresses and a build_id? Keep the split-debug-info symbols for every release and run flutter symbolize to get file and line numbers back.

A Flutter release crash looks unreadable because the build was obfuscated or stripped, and the names were moved into a separate .symbols file. Build with --split-debug-info=<dir> and keep that folder for every release. Then run flutter symbolize -i crash.txt -d <dir> and the hex addresses turn back into Dart function names, files and line numbers.

The hard part is not the command. It is that the symbols file only exists at build time. If you did not save it, the crash from that version stays unreadable forever. This guide shows how to set up the build, store the symbols per version, decode a real trace, and catch crashes that never reach Dart at all.

Step 1: Recognise an Unreadable Trace

A normal Dart stack trace has names and lines:

#0      CartService.total (package:shop/cart_service.dart:42:18)
#1      CartPage.build (package:shop/cart_page.dart:17:30)

A trace from a stripped release build looks like this:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 8123, tid: 8150, name 1.ui
os: android arch: arm64 comp: no sim: no
build_id: '5a3f1c0e8b7d4e2f9c6a1b2d3e4f5a6b'
isolate_dso_base: 7b2c400000, vm_dso_base: 7b2c400000
    #00 abs 0000007b2c9a1f4c virt 00000000005a1f4c _kDartIsolateSnapshotInstructions+0x4e0f4c
    #01 abs 0000007b2c9a2210 virt 00000000005a2210 _kDartIsolateSnapshotInstructions+0x4e1210

That second block is normal for an ahead-of-time compiled release build with symbols split out. The build_id line is the important part. It identifies which build produced the crash, so you can pick the right symbols file.

Step 2: Build With split-debug-info

Pass the flag on every release build. Obfuscation is optional, but if you use --obfuscate the flag is required.

# Android App Bundle for Google Play
flutter build appbundle --obfuscate --split-debug-info=build/symbols/android

# iOS
flutter build ipa --obfuscate --split-debug-info=build/symbols/ios

--split-debug-info removes debug information from the binary and writes it to files in that folder. This also makes the app smaller. Guides on Flutter obfuscation point out the same pairing: obfuscation without the symbols folder gives you crash reports you cannot read.

You will get files like app.android-arm64.symbols, app.android-arm.symbols and app.android-x64.symbols. One file exists per CPU architecture. A crash on a 64-bit phone needs the arm64 file.

Step 3: Save the Symbols Per Release

The build/ folder is overwritten by the next build. A community tool for decoding Flutter traces warns about exactly this: the default symbols folder is replaced on each build, so you must archive it under a versioned path.

Use the version from pubspec.yaml (for example 1.4.2+37). A simple script after the build:

VERSION=$(grep '^version:' pubspec.yaml | awk '{print $2}')
mkdir -p release-symbols/$VERSION
cp -r build/symbols/* release-symbols/$VERSION/

Then store release-symbols/ somewhere that survives your laptop: a private cloud bucket, or the artifacts of your CI job. Do not commit them to a public repository, because they contain the original function names that obfuscation was hiding.

If you use Firebase Crashlytics, upload the folder as part of the build. A DEV Community guide on readable Crashlytics reports describes the firebase crashlytics:symbols:upload step. Without that upload, Crashlytics shows the obfuscated trace.

Step 4: Decode a Crash With flutter symbolize

Save the crash text, from the *** *** *** line down, to a file. Then run:

flutter symbolize -i crash.txt -d release-symbols/1.4.2+37/android

You can also pass a single .symbols file with -d. The output replaces each address line with the function, file and line:

#00 CartService.total (package:shop/cart_service.dart:42:18)
#01 CartPage.build (package:shop/cart_page.dart:17:30)

Two mistakes cause "garbage" output. First, using symbols from a different build. Always match the build_id in the trace to the symbols you saved, and use the file for the right architecture. Second, copying the trace from a tool that trims lines or wraps them. Paste the full text.

Step 5: Catch Dart Errors So You Have a Trace to Decode

A crash you never record cannot be decoded. Register both error hooks at startup:

import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  // Errors thrown inside Flutter framework code (build, layout, paint)
  FlutterError.onError = (FlutterErrorDetails details) {
    reportError(details.exception, details.stack);
  };

  // Errors from async code and platform callbacks
  PlatformDispatcher.instance.onError = (error, stack) {
    reportError(error, stack);
    return true;
  };

  runApp(const MyApp());
}

void reportError(Object error, StackTrace? stack) {
  // Send error.toString() and stack.toString() to your crash tool,
  // together with the app version and build number.
}

Send the stack as raw text with the app version and build number attached. Without the version, you will not know which symbols folder to use.

Step 6: Rule Out the Android-Only Causes

Some release crashes are not Dart errors, so flutter symbolize cannot help. The most common one is R8 stripping a class that a plugin loads by reflection. Reports of this kind of problem, such as this flutter_stripe issue, show a crash that appears only in release.

Signs: the log mentions ClassNotFoundException or NoSuchMethodError. Read it with:

adb logcat -b crash

The fix is a keep rule in android/app/proguard-rules.pro, taken from the plugin's own documentation. If the app crashes before Dart starts, there is no Dart trace at all. The Android log is the only evidence.

To reproduce locally, run the same kind of build your users have:

flutter run --release

A guide on release-only Flutter failures lists the other usual suspects: debug-only config or API URLs that are missing in release, and assert statements that do not run in release builds.

Step 7: Check the Backend Behind the Crash

Many "app crashes" are a backend change meeting an old app version. A field is renamed, a response becomes null, or an endpoint now returns 401. The app parses the response, throws, and the crash trace points at your parsing code. The real cause is a deploy on the server.

When you see a new crash, check two things before you read more code:

  1. Does it affect one app version or all of them?
  2. Did a backend deploy happen just before it started?

For the same pattern in React Native, see Expo App Crashes on Launch in Production.

How Relia Helps

Relia has a Flutter package (flutter pub add relia_flutter) that records sessions, screens, taps, API calls and crashes, split by app version and release. Release builds upload their symbols, so the crash stacks you see are already readable. A crash or failing call in the app is joined to the backend request behind it, so when a backend change breaks only one version of the app, the incident shows both sides in plain words. The Flutter setup guide has the steps.

FAQ

How do I read a Flutter obfuscated stack trace?

Save the full trace to a file and run flutter symbolize -i crash.txt -d <symbols folder or file>. Use the symbols from the same build that crashed.

What if I lost the symbols file?

You cannot recover names for that build. Fix it for the future by archiving the --split-debug-info folder with every release.

Why does my Flutter app crash only in release mode?

Release builds are compiled ahead of time, skip assert, strip unused code with R8 on Android, and use your real config. Run flutter run --release to reproduce, then read adb logcat -b crash.

Do I need --obfuscate to use split-debug-info?

No. --split-debug-info works alone and shrinks the app. --obfuscate needs it.

All guides