sharkdp / binocle

a graphical tool to visualize binary data
Apache License 2.0
1.12k stars 32 forks source link

MacOS run problems ([wgpu::backend::direct] Handling wgpu errors as fatal by default) #27

Closed JiLiZART closed 3 years ago

JiLiZART commented 3 years ago

Hello, thank you for your work! But I have some problems when I run it on my OS

OS Spec: MacOS Big Sur (11.5.2 (20G95) 2,3 GHz 8-Core Intel Core i9 AMD Radeon Pro 5500M 4 GB

Rust info: rustup 1.24.3 (ce5817a94 2021-05-31)

Toolchain stable-x86_64-apple-darwin (default) rustc 1.55.0 (c8dfcfe04 2021-09-06)

I installed thry cargo install binocle

I feel free to test any updates and changes in my OS

You can see backtrace below

env RUST_BACKTRACE=full binocle test.jsc
[2021-10-07T07:40:30Z 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

', /Users/jilizart/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.10.2/src/backend/direct.rs:2160:5
stack backtrace:
   0:        0x10298cbd4 - std::backtrace_rs::backtrace::libunwind::trace::hd9b9204470182ffc
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
   1:        0x10298cbd4 - std::backtrace_rs::backtrace::trace_unsynchronized::hdc48b9180be04761
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:        0x10298cbd4 - std::sys_common::backtrace::_print_fmt::h8824de041faf4112
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:67:5
   3:        0x10298cbd4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h8d168763f08a78b9
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:46:22
   4:        0x1029aa3fc - core::fmt::write::h0fa46d4891ed63f1
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/fmt/mod.rs:1115:17
   5:        0x10298a40a - std::io::Write::write_fmt::hacbf9e10e17149ce
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/io/mod.rs:1665:15
   6:        0x10298e80f - std::sys_common::backtrace::_print::h26213154a400cfbe
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:49:5
   7:        0x10298e80f - std::sys_common::backtrace::print::h0f4ab60f53d1f93b
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:36:9
   8:        0x10298e80f - std::panicking::default_hook::{{closure}}::hee7cf38dedfa76fc
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:208:50
   9:        0x10298e30d - std::panicking::default_hook::hd12252412832a45f
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:225:9
  10:        0x10298ef10 - std::panicking::rust_panic_with_hook::h521fd09e07057893
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:622:17
  11:        0x10298e9b5 - std::panicking::begin_panic_handler::{{closure}}::h3588a5a9cca9e8e5
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:519:13
  12:        0x10298d078 - std::sys_common::backtrace::__rust_end_short_backtrace::h86522c151a195ff9
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:141:18
  13:        0x10298e91a - rust_begin_unwind
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:515:5
  14:        0x1029cef7b - std::panicking::begin_panic_fmt::hf4ebaa1b90291b0b
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:457:5
  15:        0x1028a11fa - wgpu::backend::direct::default_error_handler::h6d7a2ce79deec755
  16:        0x102899ae0 - core::ops::function::Fn::call::hf7dbc75eeffb9340
  17:        0x1028a0b6d - <wgpu::backend::direct::Context as wgpu::Context>::command_encoder_end_render_pass::hfd5ba570bf76c3b6
  18:        0x10279292a - egui_wgpu_backend::RenderPass::execute::hcff90a062f822137
  19:        0x1026bc63c - binocle::gui::Gui::render::ha9e59e84680cb6ff
  20:        0x1026b6c59 - pixels::Pixels::render_with::hdb22eb48c60820be
  21:        0x1026b3d4a - binocle::event_loop::run::{{closure}}::hadc2a99b6c85b4c9
  22:        0x1026b4cd7 - <winit::platform_impl::platform::app_state::EventLoopHandler<T> as winit::platform_impl::platform::app_state::EventHandler>::handle_nonuser_event::he369832bac4dc772
  23:        0x10282e8d1 - winit::platform_impl::platform::app_state::Handler::handle_nonuser_event::h4e84ce779f567612
  24:        0x1028309a5 - winit::platform_impl::platform::app_state::AppState::cleared::h6028c81bcc2db529
  25:        0x1028331f7 - winit::platform_impl::platform::observer::control_flow_end_handler::h7a06aff7e3095726
  26:     0x7fff20454d01 - <unknown>
  27:     0x7fff20454b95 - <unknown>
  28:     0x7fff20454166 - <unknown>
  29:     0x7fff2045361c - <unknown>
  30:     0x7fff28699a83 - <unknown>
  31:     0x7fff286997e5 - <unknown>
  32:     0x7fff28699583 - <unknown>
  33:     0x7fff22c5b172 - <unknown>
  34:     0x7fff22c59945 - <unknown>
  35:     0x7fff22c4bc69 - <unknown>
  36:        0x1026b033a - winit::platform_impl::platform::event_loop::EventLoop<T>::run::h5bc5452d0bb554b0
  37:        0x1026e9283 - winit::event_loop::EventLoop<T>::run::h5e8cb8089d1588c7
  38:        0x1026eb05c - binocle::event_loop::run::h303925b133e506be
  39:        0x1026ed229 - binocle::main::h67e417241ee8838d
  40:        0x1026bc88a - std::sys_common::backtrace::__rust_begin_short_backtrace::hb4e5ebb094580cbd
  41:        0x1026e66a1 - std::rt::lang_start::{{closure}}::hd64f067cbe88cad4
  42:        0x10298f439 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h5adc1669b25f044b
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/ops/function.rs:259:13
  43:        0x10298f439 - std::panicking::try::do_call::h405f88a3fec16587
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:401:40
  44:        0x10298f439 - std::panicking::try::h86d9af92fb3c6022
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:365:19
  45:        0x10298f439 - std::panic::catch_unwind::h67150880d2b87901
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panic.rs:434:14
  46:        0x10298f439 - std::rt::lang_start_internal::{{closure}}::h548e43d03023c928
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/rt.rs:45:48
  47:        0x10298f439 - std::panicking::try::do_call::h1383affbfec23244
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:401:40
  48:        0x10298f439 - std::panicking::try::hf51149bda74e8587
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:365:19
  49:        0x10298f439 - std::panic::catch_unwind::h8280208a4f5e7cf4
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panic.rs:434:14
  50:        0x10298f439 - std::rt::lang_start_internal::h5f9b030f0a63c040
                               at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/rt.rs:45:20
  51:        0x1026ed349 - _main
-[_MTLCommandEncoder dealloc]:131: failed assertion `Command encoder released without endEncoding'
fish: 'env RUST_BACKTRACE=full binocle…' terminated by signal SIGABRT (Abort)
sharkdp commented 3 years ago

see #24.

JiLiZART commented 3 years ago

Whoops :)