Replies: 10 comments 5 replies
-
I wasn't able to reproduce this, on either macOS or Manjaro Linux. Could you tell me what version of |
Beta Was this translation helpful? Give feedback.
-
Scratch that actually, the template should be using the latest version of The error message reminds me of #3153, which was happening because |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply, I can confirm you that the template is using version 0.2 by default : wasm-bindgen = { version = "0.2", features = ["serde-serialize"] } But even when I specify A test has been done on Pop!_Os (ubuntu based) and the crash happen too, but less often this time (to be noted that the machine running the Pop!_os has a lot more cpu resources). I did another test in fresh Manjaro virtual machine and I reproduced the crash :
To reproduce it I did :
Note that I had to Do you have any clue on this ? Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello, just passing by, I'm having the same problem on an ubuntu. |
Beta Was this translation helpful? Give feedback.
-
I just remembered that I used the encounter something similar during testing in the past, reloading would sometimes throw random bugs like this. While debugging it, I came to the conclusion that the browser is doing some "destructive things" while tearing down the page, which is why some of these errors are strange, like memory errors or callback issues. I found that not having the dev tools open helps and opening a new page will never trigger that bug, it only happens during refresh. I can't actually confirm if this is the same bug I encountered, but you could try and see what happens if you don't open the dev tools. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately this crash can happen when the application has just been started (without dev tools opened and no reload). This is how I discovered the crash. |
Beta Was this translation helpful? Give feedback.
-
Hello here, i'm digging a little more on this issue here : https://github.com/jrouaix/wasm_pbm |
Beta Was this translation helpful? Give feedback.
-
I am having this issue as well. I created a Tauri project using Leptos, and this started happening more and more the larger my project grew. It's at a point now where it happens about 90% of the time and I cannot continue development on my project anymore. Hoping a solution is found soon! Edit: It is worth noting that the entire stack trace refers to functions in the Edit 2: I removed both Edit 3 (more than a month later): I spoke much too soon. The error started reappearing after a few days and it slowly became more and more common as my codebase grew. It happens more than half the time, even after a reload. It's effectively disabled hot-reloading for me because it bricks itself trying to reload more often than not. It seems to happen more often the longer the app takes to initialize, which makes me think race condition, but of course I have no idea. |
Beta Was this translation helpful? Give feedback.
-
Just passing through to bump the thread and say it's also happening to me in a WASM Bevy game inside a Vue SPA which works fine on the web, but has this issue inside a Tauri app. Manjaro Linux. This is blocking my ability to ship my app as a desktop app :( |
Beta Was this translation helpful? Give feedback.
-
I've had the same issue for months now. I've had several Discord discussions regarding it with additional stack traces and context: |
Beta Was this translation helpful? Give feedback.
-
Describe the Bug
Hello
I'm reaching to you after having opened issues with leptos-rs and tauri :
I am currently having "semi-random" crashes with all Tauri templates using wasm-bindgen (Leptos, Sycamore, Yew).
Tauri's team point of view is that this bug seems to come from
wasm-bindgen
.Here is an example of what is happening :
(This time I had to Reload three times to trigger the crash, but sometimes it happens at first start)
(You can see the second time the application crashes directly)
Here is the stacktrace of the bug :
Steps to Reproduce
First i will say I don't know how to reproduce it directly with wasm-bindgen but you can reproduce it using Tauri this way :
cargo create-tauri-app
cd
into the project directorycargo tauri dev
Reload
until you get the crashesYou can also use run AppImage : https://file.io/qV7is0fTatqw
Expected Behavior
The
wasm.__wbindgen_start()
should not crashAdditional Context
I would happily helps to fix this issue by submitting a PR, but I will need help to find out where this bug come from.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions