Skip to content
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

Application crashed #69

Closed
ezerinz opened this issue May 5, 2024 · 8 comments
Closed

Application crashed #69

ezerinz opened this issue May 5, 2024 · 8 comments

Comments

@ezerinz
Copy link

ezerinz commented May 5, 2024

Hi, I got this error when running

matugen image imagepath --json hex

here's the output

The application panicked (crashed).
Message:  attempt to divide by zero
Location: /home/ezerinz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/material-colors-0.2.1/src/quantize/quantizer_wu.rs:274

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

the output with RUST_BACKTRACE=fuill :


  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 6 frames hidden ⋮
   7: core::panicking::panic::h3a6ee9ab3bd88b9b
      at <unknown source file>:<unknown line>
   8: material_colors::quantize::quantizer_wu::QuantizerWu::variance::hc92ce0aabe322924
      at <unknown source file>:<unknown line>
   9: material_colors::quantize::quantizer_wu::QuantizerWu::create_boxes::hdd1f6b13f7e872ca
      at <unknown source file>:<unknown line>
  10: <material_colors::quantize::quantizer_wu::QuantizerWu as material_colors::quantize::quantizer::Quantizer>::quantize::h8f0c5af9e90244aa
      at <unknown source file>:<unknown line>
  11: <material_colors::quantize::quantizer_celebi::QuantizerCelebi as material_colors::quantize::quantizer::Quantizer>::quantize::h4d0b10b9de5a1f2d
      at <unknown source file>:<unknown line>
  12: material_colors::utils::image::ImageReader::extract_color::h3482ae9b646f0042
      at <unknown source file>:<unknown line>
  13: matugen::util::color::get_source_color::h7b2d4074c4118660
      at <unknown source file>:<unknown line>
  14: matugen::main::h2a7c26fee03efcd9
      at <unknown source file>:<unknown line>
  15: std::sys_common::backtrace::__rust_begin_short_backtrace::ha51465a398fe07a2
      at <unknown source file>:<unknown line>
  16: std::rt::lang_start::{{closure}}::h122fa072e691f758
      at <unknown source file>:<unknown line>
  17: std::rt::lang_start_internal::h24e0e4b30b186ec6
      at <unknown source file>:<unknown line>
  18: main<unknown>
      at <unknown source file>:<unknown line>
  19: __libc_start_main<unknown>
      at <unknown source file>:<unknown line>
  20: _start<unknown>
      at <unknown source file>:<unknown line>
@InioX
Copy link
Owner

InioX commented May 5, 2024

Hi, @ezerinz !

Could you send the image you used too?

@ezerinz
Copy link
Author

ezerinz commented May 5, 2024

Hi, here:
green-grass-aesthetic-desktop-wallpaper

@InioX
Copy link
Owner

InioX commented May 5, 2024

Works before the c0b0f44 commit

@ezerinz
Copy link
Author

ezerinz commented May 5, 2024

Yes, I update because I want to try the custom colors feature, guess I'll just switch back to harmonized

@InioX
Copy link
Owner

InioX commented May 5, 2024

You can try the custom colors because it was merged in a previous commit

@ezerinz
Copy link
Author

ezerinz commented May 5, 2024

Okk, thank you

@InioX
Copy link
Owner

InioX commented May 5, 2024

Try running it again on the latest commit, it worked for me

@ezerinz
Copy link
Author

ezerinz commented May 5, 2024

Yes, it worked now. Thank you!

@ezerinz ezerinz closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants