sentry-tauri
sentry-tauri copied to clipboard
[BUG] Tauri app crashes with error: failed to parse arguments: error: unexpected argument '--crash-reporter-server'
For some users app crashes at startup with error message: failed to parse arguments: error: unexpected argument '--crash-reporter-server'. This environment variable seems to be set by minidumper-child. It sets the CRASH_REPORTER_SERVER environment variable, which somehow leads to a failure in argument parsing within the Wry event loop.
This is how it looks like in the codebas:
fn main() {
let client = sentry::init((...);
let _guard = minidump::init(&client);
...
let app = tauri::Builder::default()
.plugin(tauri_plugin_clipboard_manager::init())
.plugin(tauri_plugin_process::init())
.plugin(tauri_plugin_sentry::init_with_no_injection(&client))
...
}