Replies: 2 comments
-
Usually when It happens is because the code Is stuck in an infinite/very long loop or exceeding boundaries while iterating |
Beta Was this translation helpful? Give feedback.
0 replies
-
You might be hitting the timeout. If you're on Windows, default timeout is 5 seconds. Any task longer than that will be canceled. This is at driver-level and not something that can be adjusted by wgpu. You should split your shader, or, set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a compute shader that constantly gives me the error:
thread 'main' panicked at 'Error in Surface::get_current_texture_view: parent device is lost'
I suppose that this is due to an operation trying to write in the wrong memory address (because that would be the error in that case, right?). However, I really can't find the issue in my code after many days. How could I go into debugging an error like this? I'm trying with RenderDoc, but the error seems random.
Here is the shader that is giving the issue, but it's long and probably hard to read for someone not familiar with the whole program. Also, I'm still learning WGSL and GPU programming, there will be noobie mistakes everywhere :D
Beta Was this translation helpful? Give feedback.
All reactions