wgpu_texture example would crash for Nvidia GPU (when manually calling app.window().request_redraw())
#9931
Replies: 2 comments 1 reply
-
|
run with RUST_BACKTRACE=1 environment variable
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for reporting this. I think that this is a bug, we should reconfigure the surface and try again, instead of raising a panic. Unfortunately, I don’t have an NVIDIA card or a way to reproduce it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My use case needs to render image frames by wgpu for displaying in slint. The
wgpu_textureexample is a great basis to understand.I think I absolutely need a
signalto trigger slint to redraw as long as the backend frame gets updated. So I add a slint timer as below to check the image update and then request redrawing.The modified app would run well, until the Minimize button was clicked which would cause a crash, reporting that
I found that crash only happens for my discrete GPU. By switching to the core graphics card, the app would run well. I found it may be hard to fix after variants of efforts, even if calling
request_redrawin condition as follows.So what is correct way for my use case? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions