[bug] Crash on MacOS when navigating with a pending invoke #12338
Labels
platform: macOS
priority: 1 high
status: needs triage
This issue needs to triage, applied to new issues
type: bug
Describe the bug
On MacOS there appears to be a race condition when an asynchronous invoke request is in progress while the webview is navigating to a new page. This leads to a panic in
wry::wkwebview::class::url_scheme_handler::start_task::{{closure}}::response::{{closure}}
which causes an immediate abort because it is in anAssertUnwindSafe
context.Reproduction
Reproduction is available here: https://github.com/tactile-eng/tauri-repro
Simply run the app and it should crash after a few seconds. The only code that has changed from the template is in
src/main.js
.Expected behavior
Tauri should not crash.
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: