#App becomes unresponsive after using the 'open' function from @tauri-apps/plugin-shell

8 messages · Page 1 of 1 (latest)

hasty elk
#

I am using Tauri v2 with react and typescript. The app always freezes right after I open any file externally using this function.

$ tauri info

[✔] Environment
- OS: Windows 10.0.19045 x86_64 (X64)
✔ WebView2: 129.0.2792.65
✔ MSVC:
- Visual Studio Build Tools 2019
- Visual Studio Community 2022
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 20.17.0
- npm: 10.8.2
- bun: 1.1.29

[-] Packages
- tauri 🦀: 2.0.0-rc.16
- tauri-build 🦀: 2.0.0-rc.13
- wry 🦀: 0.44.1
- tao 🦀: 0.30.2
- @tauri-apps/api : 2.0.1
- @tauri-apps/cli : 2.0.0-rc.18 (outdated, latest: 2.0.0)

[-] Plugins
- tauri-plugin-dialog 🦀: 2.0.0-rc.8
- @tauri-apps/plugin-dialog : 2.0.0-rc.1 (outdated, latest: 2.0.0)
- tauri-plugin-fs 🦀: 2.0.0-rc.6
- @tauri-apps/plugin-fs : 2.0.0
- tauri-plugin-shell 🦀: 2.0.0-rc.3
- @tauri-apps/plugin-shell : 2.0.0

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite

leaden night
#

Can you please update and test again? There is a mix of rc and stable dependencies

hasty elk
#

Same problem

PS D:\Computer-Science\Projects\All\Memory Copilot\src-tauri> bun run tauri info
$ tauri info

[✔] Environment
- OS: Windows 10.0.19045 x86_64 (X64)
✔ WebView2: 129.0.2792.65
✔ MSVC:
- Visual Studio Build Tools 2019
- Visual Studio Community 2022
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 20.17.0
- npm: 10.8.2
- bun: 1.1.29

[-] Packages
- tauri 🦀: 2.0.0
- tauri-build 🦀: 2.0.0
- wry 🦀: 0.44.1
- tao 🦀: 0.30.2

[-] Plugins
- tauri-plugin-dialog 🦀: 2.0.0
- tauri-plugin-fs 🦀: 2.0.0
- tauri-plugin-shell 🦀: 2.0.0

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/

leaden night
#

Can you share what you open and how you invoke the open call?

hasty elk
#

I just tested with a .odt file and it did not freeze

#

it might only happen with images

#

I think it only happens with the windows photos app (wtf)? I just tested changing my default image viewer