Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
refactor(desktop): disable Sentry minidump and simplify init
Richie McIlroy88cbc6383a96
diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rsindex 95d832709..0480cbbc7 100644--- a/apps/desktop/src-tauri/src/main.rs+++ b/apps/desktop/src-tauri/src/main.rs@@ -16,7 +16,11 @@ fn main() {// We have to hold onto the ClientInitGuard until the very endlet _sentry_guard = std::option_env!("CAP_DESKTOP_SENTRY_URL").map(|url| {- let sentry_client = sentry::init((+ // Crashpad minidump initialization is intentionally disabled. Its process-wide SEH+ // handler terminates through TerminateProcess, bypassing panic hooks, Tauri exit+ // events, and Windows Error Reporting. Re-enable it by binding this guard and+ // passing it to tauri_plugin_sentry::minidump::init once the WER trace is captured.+ sentry::init((url,sentry::ClientOptions {release: sentry::release_name!(),@@ -42,23 +46,7 @@ fn main() {})),..Default::default()},- ));-- // Caution! Everything before here runs in both app and crash reporter processes- //- // DIAGNOSTIC: the minidump/crashpad initializer installs a process-wide SEH- // exception handler that intercepts native crashes, writes a minidump, uploads- // to Sentry, then terminates the process via TerminateProcess. That termination- // path bypasses the Rust panic hook, Tauri's RunEvent::Exit, and Windows Error- // Reporting, which is why the export-time crashes have left zero forensic trail- // (no panics.log, no WER Application Error event, no App exit requested log).- // We've eliminated several candidate root causes already; the remaining unknown- // requires a real native stack trace. Disabling crashpad lets the next crash- // propagate to Windows Error Reporting so Event Viewer captures the faulting- // module + offset. RE-ENABLE THIS LINE as soon as we have the WER trace.- // let _guard = tauri_plugin_sentry::minidump::init(&sentry_client);-- sentry_client+ ))});let (reload_layer, handle) = tracing_subscriber::reload::Layer::new(None::<DynLoggingLayer>);