Skip to content

[BUG] Tauri app crashes with error: failed to parse arguments: error: unexpected argument '--crash-reporter-server' #29

@MCozhusheck

Description

@MCozhusheck

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))
   ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions