gallery
gallery copied to clipboard
Gallery app would like a way to report crashes
We'd like to capture and measure crashes in the wild. We should find a good way to do this in Flutter apps.
Perhaps we can try https://firebase.google.com/docs/crash/
Implementing this might provide insight for https://github.com/flutter/flutter/issues/614
cc @collinjackson who was interested in trying out Firebase Crash Reporting + Flutter
Moving this to Gallery-Next since we have 2 other customers asking for this and should pave the way for them with the Gallery.
(Assuming we mean a C crash and not just an unhandled Dart exception.)
Currently precompilation supports two ways of outputting instructions, either outputting an assembly file that can be turned into a shared library that can be loaded with dlopen or outputting a binary blob that can be loaded with mmap. On iOS, Flutter uses the shared library approach (mmap can't create executable pages, which enforces the no-JITing policy) and as a benefit the native debugging tools have symbols for the precompiled Dart code. On Android, the binary blob approach is used to avoid a build step that requires the NDK on developer machines, but this means there are no symbols for precompiled Dart code. Getting symbols for precompiled code on Android might mean switching to shared libraries, or it might mean we need to output some kind of symbol blob as well, though what format would depending on what tool would be symbolizing the traces.
I don't think we are implementing Firebase Crash (Google is recommending NOT to use Firebase for crash reporting on new projects anymore) and adding Crashlytics is covered by flutter/flutter#9592. So I think this issue is just about adding crash reporting to the Gallery, possibly with package:sentry.
Unassigned myself since I'm not currently working on that.
cc @yjbanov is this done?
cc @sethladd is this done?
Not done. Would be perfect for a DPE. I'd like for a DPE to help us "dogfood" our crash reporting, and provide a sample/example.
Ideally we'd just use whatever we tell other people to use, once we have an answer to that.
Right now the best we have is probably package:sentry with https://github.com/flutter/crashy as an example of using it. Once we have a more complete Crashlytics package that would be a good one to use here: https://github.com/flutter/flutter/issues/14765
We may also be able to use the same thing we use for flutter command-line tools (see crash_reporting.dart).
Can we close this in favor of https://github.com/flutter/gallery/issues/632 ?
cc/ @guidezpl
This has more history, so let me move it to the repo, and use this for tracking
https://play.google.com/console/ with the Flutter stores account gives some, but limited info on crashes. Which solution to use (e.g. crashlytics, sentry) is unclear. This will probably have to be done by a team member given the need to access and store private keys.
https://github.com/flutter/gallery/pull/908 Updated the gallery to use Firebase Crashlytics as well Firebase Performance monitoring.
Visit those links for help on setting them up with Flutter :)