8000 panic with add with overflow when converting with vtracer · Issue #11 · visioncortex/visioncortex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

panic with add with overflow when converting with vtracer #11

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

Open
gbaranski opened this issue Mar 15, 2025 · 0 comments
Open

panic with add with overflow when converting with vtracer #11

gbaranski opened this issue Mar 15, 2025 · 0 comments

Comments

@gbaranski
Copy link

Hey!
I've found an issue, that I can reproduce both in the CLI, and on the website: https://www.visioncortex.org/vtracer.

When I upload the image attached from https://unsplash.com/photos/medium-short-coated-white-dog-lying-on-green-grass-field-LATYeZyw88c it crashes due to attempt to add with overflow.

Full logs:

thread 'main' panicked at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color.rs:251:9:
attempt to add with overflow
stack backtrace:
   0: rust_begin_unwind
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:692:5
   1: core::panicking::panic_fmt
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:75:14
   2: core::panicking::panic_const::panic_const_add_overflow
             at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:178:21
   3: visioncortex::color::ColorSum::merge
             at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color.rs:251:9
   4: visioncortex::color_clusters::builder::BuilderImpl::combine_clusters
             at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color_clusters/builder.rs:532:9
   5: visioncortex::color_clusters::builder::BuilderImpl::combine_clusters_clone
             at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color_clusters/builder.rs:516:9
   6: visioncortex::color_clusters::builder::BuilderImpl::merge_cluster_into
             at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color_clusters/builder.rs:498:13
   7: visioncortex::color_clusters::builder::BuilderImpl::stage_2
             at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color_clusters/builder.rs:470:13
   8: visioncortex::color_clusters::builder::BuilderImpl::tick
             at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color_clusters/builder.rs:217:24
   9: visioncortex::color_clusters::builder::Builder::run
             at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color_clusters/builder.rs:92:16
  10: visioncortex::color_clusters::runner::Runner::run
             at /Users/gbaranski/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/visioncortex-0.8.8/src/color_clusters/runner.rs:105:9
  11: vtracer::converter::color_image_to_svg
             at ./src/converter.rs:138:24
  12: vtracer::converter::convert
             at ./src/converter.rs:19:29
  13: vtracer::converter::convert_image_to_svg
             at ./src/converter.rs:31:15
  14: vtracer::main
             at ./src/main.rs:273:18
  15: core::ops::function::FnOnce::call_once
             at /Users/gbaranski/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Commit: efa4351b2c4392584a7856628a13d0dfeb133967

How to reproduce?

$ git clone https://github.com/visioncortex/visioncortex.git
$ cd vtracer
$ cargo run -- --input angel-luciano-LATYeZyw88c-unsplash.jpg --output out.svg
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

1 participant
0