You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm attempting to run Tauri on an existing prod React project. I have been encountering a panic somewhat reliably after a deep-link is called (user goes to complete oauth flow, deep-link drops them back in the app successfully - this works great). However, on next app launch it seems like the deep-link state is still present and causes a panic. This panic is then irrecoverable. Force-quit the tauri app = panic. Try and force-quit again and panic. App is then dead mostly. Sometimes it will come back, as if a bad event has been dispatched successfully. Delete the app from the device and it can be reliably installed.
I have been able to cause the same set of panics with a similar flow - when there's competition for launching the WebKitClient(?).
I haven't made much more progress on this issue but happy to keep looking into it.
Steps To Reproduce
Install Tauri
Install deep-link plugin (may not entirely be necessary - I've caused it other ways but this seems semi reliable)
Configure a deep link
Trigger a deep-link to arrive back in app
Close the app (kill)
Re-launch the app.
Expected behavior
No panic.
Screenshots
Panic:
References:
Platform and Versions (please complete the following information):
OS: Android on Pixel 4a 5G. I am port forwarding from the Android device to my dev PC.
Rustc: 1.82
Additional context
Logcat Output during the panic (nothing useful beyond the reference to unwinding panic):
...snip...
11-17 08:26:34.924 18908 18908 F DEBUG : #08 pc 00000000015c3db8 /data/app/~~XWb8Z89T6mNxIkk6s7bm2A==/io.testy.ui-7cAR2kQUjsQd7GVdttgacA==/base.apk (offset 0x5e8000) (core::panicking::panic_cannot_unwind::he22847d5ac2210b8+20)
11-17 08:26:34.924 18908 18908 F DEBUG : #09 pc 0000000000a1c4d8 /data/app/~~XWb8Z89T6mNxIkk6s7bm2A==/io.testy.ui-7cAR2kQUjsQd7GVdttgacA==/base.apk (offset 0x5e8000) (Java_io_testy_ui_RustWebViewClient_withAssetLoader+36)
11-17 08:26:34.924 18908 18908 F DEBUG : #10 pc 0000000000384370 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
I'm getting a similar error. I'm using MapLibre GL JS in tauri on android and occasionally while zooming/panning around in the map I get a crash:
11-18 16:02:05.774 28302 28340 I RustStdoutStderr: thread '<unnamed>' panicked at /home/nic96/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wry-0.47.1/src/android/binding.rs:109:42:
11-18 16:02:05.774 28302 28340 I RustStdoutStderr: already mutably borrowed: BorrowError
11-18 16:02:05.774 28302 28340 I RustStdoutStderr: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
11-18 16:02:05.775 28302 28340 I RustStdoutStderr: thread '<unnamed>' panicked at /home/nic96/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wry-0.47.1/src/android/binding.rs:109:42:
11-18 16:02:05.775 28302 28340 I RustStdoutStderr: already mutably borrowed: BorrowError
11-18 16:02:05.776 28302 28340 I RustStdoutStderr: thread '<unnamed>' panicked at library/core/src/panicking.rs:221:5:
11-18 16:02:05.776 28302 28340 I RustStdoutStderr: panic in a function that cannot unwind
11-18 16:02:05.776 28302 28340 I RustStdoutStderr: stack backtrace:
...
Interesting! Thanks for the report as it helped confirm my sanity.
I'm using Mapbox Gl Js so it could relate somehow. As a counter point, I haven't had any crashes (past hour or two) when dev'ing on my Mac M1, but my much more performant PC panics.
Describe the bug
I'm attempting to run Tauri on an existing prod React project. I have been encountering a panic somewhat reliably after a deep-link is called (user goes to complete oauth flow, deep-link drops them back in the app successfully - this works great). However, on next app launch it seems like the deep-link state is still present and causes a panic. This panic is then irrecoverable. Force-quit the tauri app = panic. Try and force-quit again and panic. App is then dead mostly. Sometimes it will come back, as if a bad event has been dispatched successfully. Delete the app from the device and it can be reliably installed.
I have been able to cause the same set of panics with a similar flow - when there's competition for launching the WebKitClient(?).
I haven't made much more progress on this issue but happy to keep looking into it.
Steps To Reproduce
Expected behavior
No panic.
Screenshots
Panic:
References:
Platform and Versions (please complete the following information):
OS: Android on Pixel 4a 5G. I am port forwarding from the Android device to my dev PC.
Rustc: 1.82
Additional context
Logcat Output during the panic (nothing useful beyond the reference to unwinding panic):
Full Logcat output: https://gist.github.com/tristan-morris/44dd5f7e451f6f81d260c7a56b14afa4
$ cargo tauri info
[✔] Environment
- OS: Ubuntu 23.4.0 x86_64 (X64)
✔ webkit2gtk-4.1: 2.42.4
✔ rsvg2: 2.54.5
✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
- node: 21.5.0
- yarn: 1.22.21
- npm: 10.2.4
[-] Packages
- tauri 🦀: 2.1.1
- tauri-build 🦀: 2.0.3
- wry 🦀: 0.47.0
- tao 🦀: 0.30.8
- tauri-cli 🦀: 2.1.0
- @tauri-apps/api : 2.1.1
- @tauri-apps/cli : 2.1.0
[-] Plugins
- tauri-plugin-log 🦀: 2.0.2
- @tauri-apps/plugin-log : not installed!
- tauri-plugin-notification 🦀: 2.0.1
- @tauri-apps/plugin-notification : 2.0.0
- tauri-plugin-shell 🦀: 2.0.2
- @tauri-apps/plugin-shell : 2.0.1
- tauri-plugin-geolocation 🦀: 2.0.1
- @tauri-apps/plugin-geolocation : 2.0.0
- tauri-plugin-deep-link 🦀: 2.0.1
- @tauri-apps/plugin-deep-link : 2.0.0
- tauri-plugin-fs 🦀: 2.0.3
- @tauri-apps/plugin-fs : 2.0.2
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:3000/
- framework: React
- bundler: Rollup
The text was updated successfully, but these errors were encountered: