Skip to content

Crash when minimising the app in Mac #1105

@DavideSilva

Description

@DavideSilva

Describe the bug
When I try to minimise an app with the native MacOS keyboard shortcut Cmd+M, the app crashes

Platform and Versions (please complete the following information):
OS: MacOS Sequoia 15.3.2 (24D81)
Rustc: rustc 1.87.0-nightly (43f0014ef 2025-03-25)

Additional context
Could be related to Tauri events, as the backtrace points to this snippet in the app code

        self.app.run(|#[allow(unused)] handle, event| match event {
            tauri::RunEvent::ExitRequested { api, .. } => {
                api.prevent_exit();
            }

            #[cfg(target_os = "macos")]
            tauri::RunEvent::Reopen { .. } => {
                let handle = handle.clone();
                tokio::spawn(async move { windows::all_windows_focus(&handle).await });
            }
            _ => (),
        });
    }

Attached a full backtrace obtained with RUST_BACKTRACE=full

full-backtrace.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions