Repository: tauri
Issue: [bug] : infinite run macos release build for async main
Labels: type: bug,status: needs triage

### Describe the bug

```
48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
[2025-01-27][14:53:48][INFO][tauri::manager] app::emit; event=EventName("log://log")
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> app::emit;
[2025-01-27][14:53:48][DEBUG][tracing::span] emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> emit::run;
[2025-01-27][14:53:48][DEBUG][tracing::span] window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] -> window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span] -- window::emit::serialize;
[2025-01-27][14:53:48][TRACE][tracing::span::active] <- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- emit::run;
[2025-01-27][14:53:48][TRACE][tracing::span] -- app::emit;
^C[2025-01-27][14:53:48][TRACE][tracing::span::active] <- app::emit;


```

### Reproduction

Rel #12513 

```
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub async fn run() {
```

```
#[tokio::main]
async fn main() {
    app_lib::run().await;
}

```

### Expected behavior

_No response_

### Full `tauri info` output

```text
Using patch:


tauri = { git = "https://github.com/tauri-apps/tauri", branch = "fix/async-panic" }
```

### Stack trace

```text

```

### Additional context

_No response_