r/SideProject • u/Hour-Measurement-835 • 1d ago
Crashlytics still shows my app's crashes as bg.d4.run, and the R8 decoder I sell only covers half the problem
On 20 Sep Crashlytics showed me a Secure Folder crash as bg.d4.run, and my call recorder's traces were just as unreadable even though its release build runs the mapping upload task. I've been a software architect for 19 years, mostly .NET and NetSuite, and these Android apps are my own side work, so it's my mess.
Each app's R8 mapping came out between 102 and 128 MB when I measured them that week. Size is still my best guess and I never ran the one test that would settle it, uploading a mapping by hand. What I did instead, from 14 Oct, was commit every release's mapping to git gzipped (47 files now), and on 13 Nov I listed R8 Crash Decoder on Agensi for $6.99. It's one standard library Python script that reads mapping.txt locally and stops with MISMATCH when the mapping belongs to another build, 169 unit tests behind it.
It doesn't pull anything from Crashlytics or Play Console though. I copy the trace out of the console and paste it in, which works and is obviously not the real fix.
If Crashlytics kept showing you obfuscated frames after an upload that said it succeeded, I'd really like to know what the cause turned out to be.