Install depot_tools and make sure the tools are available in your PATH
variable. You might need to add them to your path manually.
Requirements:
- A rooted Android device with MCPE installed.
- Trigger the crash you want to debug. When your game crashes, DON'T RESTART IT.
- Copy the crash
.dmp
file from your device. Usually it'll be located in/data/data/com.mojang.minecraftpe/files/
on the device. The crashdump will have a.dmp
file extension. Example:1a1b1707-81e5-8dcb-5d9760be-6ff89af9.dmp
- Copy the
.apk
file for the MCPE version that produced the crashdump. You can find this in a directory with a name something like/data/app/com.mojang.minecraftpe/
.
Run the above script: ./read_crashdump.sh <path to apk> <path to dmp file>
Example: ./read_crashdump.sh minecraftpe.apk my_crashdump_file.dmp
If successful, the decoded crashdump will be written to <dmp file path>.decoded.txt
, for example: my_crashdump_file.dmp.decoded.txt
.
- When your game crashes, DO NOT RESTART IT. When you next launch the game, it will send the crashdump to Mojang, and then delete it. Once this happens, you can't get the crashdump back to debug.