binocle: Command encoder released without endEncoding - Validation error in wgpu on Win10, macOS 10.15, Debian 11
[2021-10-03T21:36:28Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In a RenderPass
note: encoder = `pixels_command_encoder`
In a set_scissor_rect command
Invalid ScissorRect parameters
', C:\Users\<user>\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.10.2\src\backend\direct.rs:2160:5
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Anything I can help with to diagnose the problem?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 24 (17 by maintainers)
Thank you for reporting this. I don’t have a (native) Windows or MacOS system to test. I kind of just hoped that the binaries would work.
Any help would be very much appreciated.
The error seems to originate from wgpu (https://github.com/gfx-rs/wgpu/blob/76bcd9c494a4359853bc2caec8eebbaa990a34e3/wgpu-core/src/command/draw.rs#L92-L93, https://github.com/gfx-rs/wgpu/blob/76bcd9c494a4359853bc2caec8eebbaa990a34e3/wgpu-core/src/command/render.rs#L1221-L1227). There are a few (possibly) related issues on GitHub (e.g. https://github.com/iced-rs/iced/issues/816).
It might have to do with the absolute WIDTH/HEIGHT parameters (and the actual screen size?) that are set for binocle here: https://github.com/sharkdp/binocle/blob/db70c421c16fc528097559bea68a616b12a7906c/src/settings.rs#L3-L4
Maybe someone could test setting them to other (lower?) values like 800x600?
Thank you! I’m going to close this for now.
Works on macOS! 🚀
awesome. thank you!
Could someone on MacOS verify if this fixes the problem as well?
Done
Tried it with an uploaded binary from the releases on Windows (x68_64) and now it works.
Could you publish on
crates.ioplease, as well?It works for me. (Tested on Win10 19043)
This also occurs on macOS 10.15.
Here is the full backtrace:
I also tried the head of branch db70c421c16fc528097559bea68a616b12a7906c and confirmed the same error building in both release and debug mode.