-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Application crash at already borrowed: BorrowMutError #9775
Comments
Just to be sure, did you already try updating the tauri packages to their latest versions? |
I have been running with the latest versions of tauri for the last night, and so far have not had that BorrowMutError error crash, but we did face another crash of the app. I know it might be tricky to figure out what is going on, but may be someone have already seen this error and can recommend the steps to look in to. This is the resort from running the cargo tauri dev version, we do not have almost any rust code and primarily do JS with all the communication going through the global tauri events. There was second crash but with the reason been tokio thread, however i did not copy the crash report before closing it.
|
Still experiencing this issue, our application requires being running 24/7 for extended period of time, but we observed that once in a while it would just crash, could be once a week could be once in few weeks. Unfortunately, there is no crash report or anything on window 11. It just closes without any detail. Not sure if the above info is actually the same problem that happens on Windows 11, but it is definitely very tricky to debug (so far have no progress) |
Whoever is experiencing the same issues. After digging through the above trace, we found that the crash was somewhat related (not sure exactly to what point) to the There might be something off with one of the modules, have not gone into details of investigating farther as not necessary for our current use case, it could be GlobalShortcutManagerHandle or any other we disabled. Old tauri config (I know it was kinda enabling everything 🤦 ):
new only what we need:
|
@goriunov have you seen the BorrowMutError after updating tauri to latest? or is it just the global shortcut crash now? |
Rc is not thread safe, so even though we are only using these types on the main thread, we need to ensure clones are safe across threads. This is a follow up for #8402
I think the global shortcut clone thing can be easily fixed, but the BorrowMutError might be more complicated if that's still there.. |
Hey @lucasfernog after upgrading to latest and changing the allow list we have been running without crashes for months now. I am not sure if BorrowMutError exists in any other modules that are outside of the allow list we have right now, but with that configuration everything looks good so far! |
Thanks for confirming, I believe my change closes this issue. |
Describe the bug
Our application keeps crashing at a random time (no specific pattern) the only thing is we have over 5 different windows for the application, and we do sync quite a few events in between those windows (probaby at least 1 event at 10-50ms). Unfortunately there is no easy way to reproduce it but I was able to fetch the stack trace on debug build when it crashed.
Not sure where to move from here at the moment hope to get some ideas on what could be the issue and if it could be the bug in tauri itself.
The issue happens on all platforms Windows/Mac/etc and we are using the global event lib
Reproduction
No response
Expected behavior
Not to crash
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: