-
Notifications
You must be signed in to change notification settings - Fork 920
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
Error instead of panic in check bind #6012
Conversation
there is still one failing test
|
Why exactly we do |
We use wgpu/wgpu-core/src/device/global.rs Lines 800 to 810 in 205f1e3
|
I looked at the |
No, some works, I am currently writing repro in rust using wgpu (also causes crash in firefox: https://gpuweb.github.io/cts/standalone/?q=webgpu:api,validation,encoding,programmable,pipeline_bind_group_compat:default_bind_group_layouts_never_match,render_pass:pipelineType=%22auto0%22;bindingType=%22auto0%22;swap=true;empty=false;renderCommand=%22draw%22) I think invariant might be broken when using @@ -1,7 +1,7 @@
- expected_bgl BindGroupLayout {
+ actual_bgl BindGroupLayout {
│ raw: Some(
│ BindGroupLayout {
- │ raw: 0x7f07d052a780,
+ │ raw: 0x7f07d052a830,
│ desc_count: DescriptorTotalCount {
│ sampler: 0,
│ combined_image_sampler: 0,
@@ -133,7 +133,7 @@ expected_bgl BindGroupLayout {
│ label: "",
│ tracking_data: TrackingData {
│ tracker_index: TrackerIndex(
- │ 68,
+ │ 69,
│ ),
│ tracker_indices: SharedTrackerIndexAllocator {
│ inner: Mutex { |
That can happen if the BGLs differ in |
This should already be catched above, but it's worth rechecking. EDIT: It's okay. |
repro: https://github.com/sagudev/wgpu-problem/tree/another-empty-bind-panic-2 (this took way to much time, because sagudev/wgpu-problem@2da4ad2) |
Same commit is bad one, expected error instead of crash:
|
Before 4a19ac2 there was always something in the diff (even if we didn't know exactly what didn't match), so I think adding fallback using |
Signed-off-by: sagudev <[email protected]>
Signed-off-by: sagudev <[email protected]>
Signed-off-by: sagudev <[email protected]>
Signed-off-by: sagudev <[email protected]>
Signed-off-by: sagudev <[email protected]>
rebased and added changelog entry |
Thanks for looking into it and putting up a minimal reproducible example! I'll look at it and try to come up with a fix this week. Part of the reason I added the Let's land this as is for now to get it in the patch release. |
I will open new issue for this, with all known info in one place. |
Removed zipping of binding entries introduced in 4a19ac2 (to make sure binding numbers actually match) and add unknown error for fallback. # Conflicts: # CHANGELOG.md
Connections
Fixes #6011
Description
Removed zipping of binding entries introduced in 4a19ac2 (to make sure binding numbers actually match) and add unknown error for fallback.
Testing
Fixes repro and servo CTS run does not crash anymore.
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.