Toolvito

React Native Crash Symbolicator

Choose the source map of the build that crashed, then paste the crash report or choose the log file. Each frame such as p@1:132161 is turned back into the original file, line and function, and the first place in your own code is shown. The files are read in your browser and never uploaded.

Symbolicate a crash

    How to symbolicate a crash

    1. Choose the source map of exactly the build that crashed (for an Android release build, for example android/app/build/generated/sourcemaps/react/release/index.android.bundle.map; for iOS, the main.jsbundle.map your build phase writes). You can choose several maps.
    2. Paste the crash report (logcat output, a JavascriptException, a red box) or choose the log file, or press “Try the sample crash”.
    3. Read the first place in your own code, then the whole list. Download the report with the original places or a CSV.

    What the page reads

    • Release frames such as p@1:132161: the React Native documentation calls these minified function names and bytecode offsets. With the source map of the same build, the offsets are looked up in the map like a line and a column.
    • Frames such as at name (file:10:15), at name (address at index.android.bundle:1:1234) and name@file:10:15, also inside Android logcat lines.
    • Function names come from Metro’s function maps in the source map (x_facebook_sources) when it has them, otherwise from the frame.
    • Files in node_modules and files in the map’s ignore list are marked as library code.

    Columns

    • metro-symbolicate reads the column of a frame as counting from 0, and so does this page by default. Choose 1 when the columns of your trace count from 1.

    Limits you should know

    • A map from another build gives wrong places: even a small change in the code moves the offsets (React Native documentation).
    • Native (Java, Kotlin, Objective-C, Swift) frames are not symbolicated; they are left as they are. Hermes crash dumps in JSON are not read.

    Related tools