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

Built OK, but hangs up #28

Open
hendersj opened this issue Feb 18, 2023 · 0 comments
Open

Built OK, but hangs up #28

hendersj opened this issue Feb 18, 2023 · 0 comments

Comments

@hendersj
Copy link

hendersj commented Feb 18, 2023

Just cloned this repo and built it - when I run the command, the desk moves (I can change the sit/stand positions just fine), but on every execution, I get the error message:

thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 1 but the index is 5', src/desk.rs:179:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The backtrace results in:

[jhenderson@TheEarth debug]$ ./uplift sit
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 1 but the index is 5', src/desk.rs:179:6
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic_bounds_check
   3: uplift::desk::get_raw_height
             at /home/jhenderson/git/uplift-cli/src/desk.rs:179:6
   4: uplift::desk::Desk::new::{{closure}}::{{closure}}
             at /home/jhenderson/git/uplift-cli/src/desk.rs:76:39
   5: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/core.rs:223:17
   6: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/loom/std/unsafe_cell.rs:14:9
   7: tokio::runtime::task::core::Core<T,S>::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/core.rs:212:13
   8: tokio::runtime::task::harness::poll_future::{{closure}}
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/harness.rs:476:19
   9: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /home/abuild/rpmbuild/BUILD/rustc-1.67.1-src/library/core/src/panic/unwind_safe.rs:271:9
  10: std::panicking::try::do_call
             at /home/abuild/rpmbuild/BUILD/rustc-1.67.1-src/library/std/src/panicking.rs:483:40
  11: __rust_try
  12: std::panicking::try
             at /home/abuild/rpmbuild/BUILD/rustc-1.67.1-src/library/std/src/panicking.rs:447:19
  13: std::panic::catch_unwind
             at /home/abuild/rpmbuild/BUILD/rustc-1.67.1-src/library/std/src/panic.rs:137:14
  14: tokio::runtime::task::harness::poll_future
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/harness.rs:464:18
  15: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/harness.rs:198:27
  16: tokio::runtime::task::harness::Harness<T,S>::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/harness.rs:152:15
  17: tokio::runtime::task::raw::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/raw.rs:255:5
  18: tokio::runtime::task::raw::RawTask::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/raw.rs:200:18
  19: tokio::runtime::task::LocalNotified<S>::run
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/mod.rs:394:9
  20: tokio::runtime::scheduler::multi_thread::worker::Context::run_task::{{closure}}
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/worker.rs:487:21
  21: tokio::runtime::coop::with_budget
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/coop.rs:102:5
  22: tokio::runtime::coop::budget
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/coop.rs:68:5
  23: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/worker.rs:463:9
  24: tokio::runtime::scheduler::multi_thread::worker::Context::run
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/worker.rs:426:24
  25: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/worker.rs:406:17
  26: tokio::macros::scoped_tls::ScopedKey<T>::set
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/macros/scoped_tls.rs:61:9
  27: tokio::runtime::scheduler::multi_thread::worker::run
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/worker.rs:403:5
  28: tokio::runtime::scheduler::multi_thread::worker::Launch::launch::{{closure}}
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/worker.rs:365:45
  29: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/blocking/task.rs:42:21
  30: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/core.rs:223:17
  31: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/loom/std/unsafe_cell.rs:14:9
  32: tokio::runtime::task::core::Core<T,S>::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/core.rs:212:13
  33: tokio::runtime::task::harness::poll_future::{{closure}}
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/harness.rs:476:19
  34: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /home/abuild/rpmbuild/BUILD/rustc-1.67.1-src/library/core/src/panic/unwind_safe.rs:271:9
  35: std::panicking::try::do_call
             at /home/abuild/rpmbuild/BUILD/rustc-1.67.1-src/library/std/src/panicking.rs:483:40
  36: __rust_try
  37: std::panicking::try
             at /home/abuild/rpmbuild/BUILD/rustc-1.67.1-src/library/std/src/panicking.rs:447:19
  38: std::panic::catch_unwind
             at /home/abuild/rpmbuild/BUILD/rustc-1.67.1-src/library/std/src/panic.rs:137:14
  39: tokio::runtime::task::harness::poll_future
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/harness.rs:464:18
  40: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/harness.rs:198:27
  41: tokio::runtime::task::harness::Harness<T,S>::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/harness.rs:152:15
  42: tokio::runtime::task::raw::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/raw.rs:255:5
  43: tokio::runtime::task::raw::RawTask::poll
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/raw.rs:200:18
  44: tokio::runtime::task::UnownedTask<S>::run
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/task/mod.rs:431:9
  45: tokio::runtime::blocking::pool::Task::run
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/blocking/pool.rs:159:9
  46: tokio::runtime::blocking::pool::Inner::run
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/blocking/pool.rs:511:17
  47: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
             at /home/jhenderson/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/blocking/pool.rs:469:13
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I can run a full backtrace if that would be helpful.

I am building/running on openSUSE Tumbleweed, if that makes a difference.

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