sentry-dart icon indicating copy to clipboard operation
sentry-dart copied to clipboard

Support native crash reporting for Windows

Open bruno-garcia opened this issue 3 years ago • 1 comments

Sentry SDK for Flutter supports Windows since it's preview versions: https://github.com/getsentry/sentry-dart/pull/407 Since then, Flutter has made Windows support GA: https://medium.com/flutter/announcing-flutter-for-windows-6979d0d01fed

But it does not capture a native crash. The goal is to use sentry-native with the crashpad backend to capture minidumps on Windows.

This was recently done on the Unity SDK:

  • https://github.com/getsentry/sentry-unity/issues/527

This tracking issue contains the items we would consider when adding support to Flutter. Including:

  • [ ] Offline caching on by default
  • [ ] Crash free rate to rely on the native layer (ask native: did I crash last run?)
  • [ ] Scope sync so data set to the SDK in Dart, shows up in native crashes
  • [x] Make sure we can bundle crashpad_handler.exe with the final app
  • [x] Upload symbols automatically during build. (might require changes to: https://github.com/getsentry/sentry-dart-plugin)

Related:

  • https://github.com/getsentry/sentry-dart/issues/433
  • https://github.com/getsentry/sentry-dart/issues/487
  • https://github.com/flutter/flutter/issues/108974
  • https://github.com/getsentry/sentry-native/issues/818

bruno-garcia avatar Jun 24 '22 23:06 bruno-garcia

Consider this issue when tackling this.

marandaneto avatar Mar 21 '23 16:03 marandaneto