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

Simple query get error even on tutorial file on 0.8.4 (brew install) #40

Open
AndyHoang opened this issue Feb 14, 2025 · 4 comments
Open

Comments

@AndyHoang
Copy link

▶ RUST_BACKTRACE=full tw housing.csv
thread 'main' panicked at /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/polars-core-0.46.0/src/series/iterator.rs:88:9:
assertion `left == right` failed: impl error
  left: 10
 right: 1
stack backtrace:
   0:        0x106cbade8 - __mh_execute_header
   1:        0x104fd716c - __mh_execute_header
   2:        0x106cbabdc - __mh_execute_header
   3:        0x106cb9b08 - __mh_execute_header
   4:        0x104f4ff60 - __mh_execute_header
   5:        0x106cba428 - __mh_execute_header
   6:        0x106cbb2ac - __mh_execute_header
   7:        0x106cbb21c - __mh_execute_header
   8:        0x106cb9dc0 - __mh_execute_header
   9:        0x106ff3a7c - __mh_execute_header
  10:        0x106ff3d38 - __mh_execute_header
[1]    49167 abort      RUST_BACKTRACE=full tw housing.csv

I do some simple query/filter and get errors.
Those tried are:
filter price > 20000 (filter price < 20000 is ok)

Downgrade to 0.8.2 is working as normal (cargo install)

@shshemi
Copy link
Owner

shshemi commented Feb 14, 2025

Unfortunately I cannot replicated the issue as IWOMM. Would you kindly provide more details?

@AndyHoang
Copy link
Author

Hi I made a record https://asciinema.org/a/gKI9N5kAVXtLcliGTO2SJ5CqW for the reproducing.
I hope this would make it clearer?

I would love to give more detail, but the trace ended there without any further info.

@shshemi
Copy link
Owner

shshemi commented Feb 16, 2025

Thank you for the video. But I couldn't still replicate the error by exactly following the sequence of command in the video. It may be an specific case due to OS or HW. Have you tried the same on linux? (a VM for instance)

@AndyHoang
Copy link
Author

I tried on my arch (pacman -S), its get the same error. Tried with cargo install on default and nightly, same.

I build one on my Mac, and has this trace, hope this can help

▶ RUST_BACKTRACE=full cargo run ~/Downloads/housing.csv
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s
     Running `./tw /Users/myname/Downloads/housing.csv`
thread 'main' panicked at /Users/myname/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-core-0.46.0/src/series/iterator.rs:88:9:
assertion `left == right` failed: impl error
  left: 10
 right: 1
stack backtrace:
   0:        0x1070dbe18 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha6cefd14d2f2d7e5
   1:        0x1070ffcf4 - core::fmt::write::h1e382716c466cb87
   2:        0x1070dbb1c - std::io::Write::write_fmt::ha2e990706db73f8b
   3:        0x1070dbcc8 - std::sys::backtrace::BacktraceLock::print::h8074bfd934e129d0
   4:        0x1070d9b24 - std::panicking::default_hook::{{closure}}::h44ee746bd38cf66b
   5:        0x1070d99b0 - std::panicking::default_hook::hce6f69ba25229e55
   6:        0x1007b6234 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h746a3f69eea08b7e
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/alloc/src/boxed.rs:1986:9
   7:        0x1001bdab8 - tabiew::tui::terminal::Terminal<B>::init::{{closure}}::h8f34f5bf9bb6e932
                               at /Users/myname/workplace/personal/tabiew/src/tui/terminal.rs:40:13
   8:        0x1070da0a0 - std::panicking::rust_panic_with_hook::h81be36b1a1b75dad
   9:        0x1070dc47c - std::panicking::begin_panic_handler::{{closure}}::h9b9000402640b825
  10:        0x1070dc070 - std::sys::backtrace::__rust_end_short_backtrace::h8226ce5e419b1bf0
  11:        0x1070d9bbc - _rust_begin_unwind
  12:        0x1073e3538 - core::panicking::panic_fmt::h6a643067d42d3a70
  13:        0x1073e38c4 - core::panicking::assert_failed_inner::heaf982631d69b3c6
  14:        0x1073ceb5c - core::panicking::assert_failed::h1dd26053980d2521
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/panicking.rs:373:5
  15:        0x105749800 - polars_core::series::iterator::<impl polars_core::series::Series>::iter::h17ff1afafb6276e2
                               at /Users/myname/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-core-0.46.0/src/series/iterator.rs:88:9
  16:        0x10023156c - tabiew::utils::polars_ext::series_width::he74616308c29544e
                               at /Users/myname/workplace/personal/tabiew/src/utils/polars_ext.rs:107:5
  17:        0x1002a761c - core::ops::function::FnMut::call_mut::hf8f59815b6c6942e
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/ops/function.rs:166:5
  18:        0x1001f8754 - core::iter::adapters::map::map_fold::{{closure}}::h038dfbd039e5c6c8
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/iter/adapters/map.rs:88:28
  19:        0x1001f8cd4 - core::iter::adapters::map::map_fold::{{closure}}::h6bea998176bf2194
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/iter/adapters/map.rs:88:21
  20:        0x10024a044 - <core::slice::iter::Iter<T> as core::iter::traits::iterator::Iterator>::fold::hf3dadc62e7f79444
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/slice/iter/macros.rs:232:27
  21:        0x1001f376c - <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h2733cf54abcedbcb
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/iter/adapters/map.rs:128:9
  22:        0x1001f380c - <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h39d87e02dd6a3d1f
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/iter/adapters/map.rs:128:9
  23:        0x1001f71ec - core::iter::traits::iterator::Iterator::for_each::h22006b5a550106c7
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/iter/traits/iterator.rs:800:9
  24:        0x10025afdc - alloc::vec::Vec<T,A>::extend_trusted::he01ef78c6807bf1a
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/alloc/src/vec/mod.rs:3553:17
  25:        0x100261d70 - <alloc::vec::Vec<T,A> as alloc::vec::spec_extend::SpecExtend<T,I>>::spec_extend::h8e92ad0c2439cb44
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/alloc/src/vec/spec_extend.rs:29:9
  26:        0x100255ef8 - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter_nested::SpecFromIterNested<T,I>>::from_iter::h8d3b00e1e1210235
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/alloc/src/vec/spec_from_iter_nested.rs:62:9
  27:        0x1002623a8 - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter::hea14e60359ba47ac
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/alloc/src/vec/spec_from_iter.rs:34:9
  28:        0x100261604 - <alloc::vec::Vec<T> as core::iter::traits::collect::FromIterator<T>>::from_iter::h9d4e66abd29232c4
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/alloc/src/vec/mod.rs:3412:9
  29:        0x1001f6cd0 - core::iter::traits::iterator::Iterator::collect::h6b2eac6e5b052c23
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/iter/traits/iterator.rs:1971:9
  30:        0x1002c279c - <polars_core::frame::DataFrame as tabiew::utils::polars_ext::TuiWidths>::tui_widths::h35f1c93302e505b1
                               at /Users/myname/workplace/personal/tabiew/src/utils/polars_ext.rs:102:9
  31:        0x1001e7ce8 - tabiew::tui::data_frame_table::DataFrameTableState::set_data_frame::hdf559703ba627e56
                               at /Users/myname/workplace/personal/tabiew/src/tui/data_frame_table.rs:68:23
  32:        0x100218798 - tabiew::tui::tab_content::TabContentState::set_data_frame::hecfc6414c189035e
                               at /Users/myname/workplace/personal/tabiew/src/tui/tab_content.rs:283:9
  33:        0x10024d3e0 - tabiew::handler::action::execute::h6e79e830bcde316b
                               at /Users/myname/workplace/personal/tabiew/src/handler/action.rs:278:17
  34:        0x1001af418 - tw::start_tui::h79baff4920510daf
                               at /Users/myname/workplace/personal/tabiew/src/main.rs:153:31
  35:        0x10019bcec - tw::main::hf3c8d3de2e65d00c
                               at /Users/myname/workplace/personal/tabiew/src/main.rs:73:30
  36:        0x1001a8330 - core::ops::function::FnOnce::call_once::hf28d9ed47e84fa8b
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/core/src/ops/function.rs:250:5
  37:        0x1001b6658 - std::sys::backtrace::__rust_begin_short_backtrace::h22c178b9068f00bb
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/std/src/sys/backtrace.rs:154:18
  38:        0x100173d74 - std::rt::lang_start::{{closure}}::heb7fc1ee82599c77
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/std/src/rt.rs:195:18
  39:        0x1070d5e38 - std::rt::lang_start_internal::h6f4cdcd1d89f35f4
  40:        0x100173d40 - std::rt::lang_start::ha454e51537f99995
                               at /private/tmp/rust-20250203-8108-he8pd4/rustc-1.84.1-src/library/std/src/rt.rs:194:17
  41:        0x10019c500 - _main

This is the latest commit on main
a238b5b72d06887d63b2876a88bbb1f4756d733c
cargo 1.84.1

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