Skip to main content

Symbolication overview

Beta

This page documents Bugsee Flutter SDK 10.x, which is in beta (10.0.0-beta.1, a prerelease on pub.dev) and can change between betas. The stable release is 9.x: see the 9.x documentation. Upgrading? See Migrating from 9.x to 10.x.

A release build ships Dart code compiled ahead of time, Java and Kotlin code renamed by R8, and stripped native libraries. A crash or error from that build carries addresses and renamed symbols. To show your own file names, functions and lines, Bugsee needs the debug files of that exact build, uploaded when you build it. Without them the report is stored but its frames stay unreadable.

A Flutter app has up to four kinds of frames in one report, and each has its own debug file and its own upload.

What gets symbolicated​

FramesDebug fileHow it reaches Bugsee
Android Java and KotlinR8 mapping (mapping.txt)Automatic. The Bugsee Gradle plugin uploads it on every minified release build (uploadBugsee<Variant>Mapping); a debug or custom build type needs bugsee { buildInfo { allBuildTypes.set(true) } }. The plugin needs the app token, or it skips the upload: see Symbolication: Android.
Android native (libflutter.so, your own .so files)Unstripped native librariesAutomatic once you turn it on: bugsee { ndk { enabled.set(true) } }. It covers non-debuggable builds only.
Dart frames of a release build made with --split-debug-info (and --obfuscate)build/symbols/*.symbolsManual. Nothing in a Flutter build calls the Bugsee uploader, and bugsee-cli has no Flutter type yet.
iOS native (the app, Flutter.framework)The build's dSYMsManual in a Flutter app. A Run Script build phase that runs bugsee-cli xcode upload-dsyms, or an upload from CI.

The Android Java and Kotlin mapping needs no setting at all once the Gradle plugin is applied, which the SDK requires anyway (see Installation).

Keep the symbols of every build you ship

The backend finds the symbols by the build, not by the app version. Keep the build/symbols folder, the dSYMs and the R8 mapping of every build that reaches users, and upload them before the first crash can arrive.

What is verified​

PieceState
Android Java and Kotlin, R8 mappingVerified on emulators: exceptions from a release build with R8 and --obfuscate.
Dart frames, Android arm64, Flutter 3.50Decoded by the backend's symbolizer when given the stack as the backend feeds it, see Symbolication: Dart. The upload of the symbols file through the production endpoint was not verified.
Dart frames, iOSNot verified with a real device stack. A hand-written, header-less stack decoded against the symbols file of a release build.
iOS dSYMsThe setup comes from the Bugsee CLI documentation. It has not been measured with a Flutter build.
Native frames on AndroidThe build step is documented. Native crash symbolication needs a non-debuggable build with its libraries uploaded.

Pages​

Found an issue, typo, or wrong statement on this page? Report it now →