kornelski / dssim

Image similarity comparison simulating human perception (multiscale SSIM in Rust)
https://kornel.ski/dssim
GNU Affero General Public License v3.0
1.08k stars 70 forks source link

thread 'main' panicked on mac m2 #152

Closed underthesand closed 9 months ago

underthesand commented 9 months ago

Hello, on Macbook Pro M2 Pro try brew version or build from source, same error:

./target/release/dssim image1.jpg image2.jpg

thread 'main' panicked at src/main.rs:110:48:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:        0x100963ec8 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h298c9ab285ff3934
   1:        0x1008c5c80 - core::fmt::write::h4e276abdb6d0c2a1
   2:        0x100946d94 - std::io::Write::write_fmt::hd421848f5f0bf9d0
   3:        0x100967d0c - std::sys_common::backtrace::print::hd8bd9ecab1f94b94
   4:        0x1009674ec - std::panicking::default_hook::{{closure}}::h520eeb743fc98fb4
   5:        0x10096853c - std::panicking::rust_panic_with_hook::hddb0e884a202de7c
   6:        0x100967ff0 - std::panicking::begin_panic_handler::{{closure}}::hd2798398a2fd9077
   7:        0x100967f80 - std::sys_common::backtrace::__rust_end_short_backtrace::h9201cc364dbb8a23
   8:        0x100967f74 - _rust_begin_unwind
   9:        0x100997d88 - core::panicking::panic_fmt::h4d5168028d4c43c7
  10:        0x100997eb0 - core::panicking::panic::h40561ff494e2b577
  11:        0x1008df258 - dssim::main::hafc223894bed7c60
  12:        0x1008dffe8 - std::sys_common::backtrace::__rust_begin_short_backtrace::h1acadf496070b5fa
  13:        0x1008e4dd0 - std::rt::lang_start::h278692fcb6f2095a
  14:        0x1008dbdac - _main
kornelski commented 9 months ago

It can't decode any of the images provided on the command line, just reports it poorly.

kornelski commented 9 months ago

Fixed