-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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] Tauri application crashes after running for a while in Windows #11125
Comments
Check the windows Event viewer, it may contain some information. Otherwise, make a reproduction and I will take a look |
@amrbashir
The detailed information is as follows:
I have no clue about these mistakes, and I really look forward to your help, Thanks alot ! |
I don't see anything useful tbh, I'd try replicating with a minimal example, otherwise I can't investigate further |
@amrbashir I seem to have found a problem, which may be the reason why I frequently call |
My code is like this: const onNewMessage = () => {
appWindow.setAlwaysOnTop(true);
appWindow.show();
// other code
} |
Sounds like maybe it crashes while sending the message, to that window, I'd try to optimize this part and see if it fixes your issue. Otherwise feel free to make a minimal repro and I will check it out. |
Okay, I will try to reproduce this problem with a clean project. When I reproduce it, I will provide a demo. Thanks alot! |
@amrbashir In vuejs, copy the following code and wait for a period of time (about 10 minutes) to reproduce it stably. import {appWindow} from "@tauri-apps/api/window";
import {onMounted} from "vue";
onMounted(() => {
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(123123);
}, 500);
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(123123);
}, 1000);
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(123123);
}, 200);
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(123123);
}, 200);
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(123123);
}, 200);
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(2222);
}, 100);
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(2222);
}, 100);
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(2222);
}, 100);
setInterval(() => {
appWindow.setAlwaysOnTop(true);
console.log(2222);
}, 50);
}); |
I found that not only the |
onMounted(() => {
setInterval(async () => {
await appWindow.show();
setTimeout(async () => {
await appWindow.hide();
}, 100)
}, 100)
}); |
I couldn't reproduce the crash unfortunately. If the crash happens because of repetitive calls in short time, it maybe the same bug as #10546 |
@amrbashir I tried catching the error via
|
Mainly rust panic doesn't catch similar errors, so I'm not sure if it's the same problem |
Describe the bug
My application will crash after running for a period of time on some Windows computers. I tried to obtain the crash information through the Rust Panic log:
But found that there was no output 😭.
The application crashes directly, I don’t know whether it is due to Rust Panic or a front-end memory leak. How do I troubleshoot and locate this situation?
This problem prevents us from promoting our application. We are very much looking forward to the official reply. If you have any suggestions or help, that would be great!
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: