From 25c7893a8e43e3a0716f0ad1a7cffcd442394d36 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Sun, 5 Jul 2026 09:10:46 +0200 Subject: [PATCH] fix(windows): report native crashes through the inproc sentry backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Crashpad uploads minidumps straight to the DSN's /minidump endpoint, which our tracker does not implement — every native Windows crash (e.g. faults inside libmpv threads, #1490) was silently dropped. The inproc handler stackwalks at crash time and reports through the regular envelope endpoint, and crashpad_handler.exe/crashpad_wer.dll leave the bundle. --- windows/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 8ef1a05f..f16e418a 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -112,6 +112,15 @@ add_subdirectory(${FLUTTER_MANAGED_DIR}) add_subdirectory("runner") +# Sentry native crash capture: use the in-process handler instead of +# crashpad. Crashpad uploads minidumps straight to the DSN's /minidump +# endpoint, which our self-hosted tracker does not implement — every native +# Windows crash (e.g. faults inside libmpv threads) was silently dropped. +# The inproc handler stackwalks at crash time and reports through the +# regular envelope endpoint on next launch. sentry-native.cmake gives this +# environment variable highest precedence over the plugin's forced default. +set(ENV{SENTRY_NATIVE_BACKEND} "inproc") + # Generated plugin build rules, which manage building the plugins and adding # them to the application. include(flutter/generated_plugins.cmake)