#[Tauri v2] Writing files to disk in quick succession then reloading webview causes app panic.

2 messages · Page 1 of 1 (latest)

open ridge
#

I have a tauri command that takes a a screenshot and writes it to disk. If call this command multiple times in quick succession then reload my front end / webview the app crashes after successfully completing the previous commands.

Any ideas of why this would happen or how to prevent it?

I have a stack trace I could share as well.

Actually it is this issue:

https://github.com/tauri-apps/tauri/issues/9933

❓ Is this on the release branch? If not how can I use it if it is not yet?

weak lava
#

No. The patch is not released yet.
If you want to test the patch, you'll need to clone https://github.com/tauri-apps/tauri

In your project's Cargo.toml:

[dependencies]
# tauri = { version = "2.0.0-beta", features = [] }
tauri = { path="[path to tauri]/tauri/core/tauri", features = [] }

In Tauri project: tauri/core/tauri-runtime-wry/Cargo.toml:

[dependencies]
# wry = { version = "0.40", default-features = false, features = [ "drag-drop", "protocol", "os-webview" ] }
wry = { git="https://github.com/tauri-apps/wry.git", branch="dev", default-features = false, features = [ "drag-drop", "protocol", "os-webview" ] }