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

Poll connection in demo seems to error out #37

Closed
BryanChrisBrown opened this issue Aug 11, 2023 · 1 comment · Fixed by #66
Closed

Poll connection in demo seems to error out #37

BryanChrisBrown opened this issue Aug 11, 2023 · 1 comment · Fixed by #66

Comments

@BryanChrisBrown
Copy link

Thanks for writing this!

I tried running it but got a panic error,

thread 'main' panicked at 'Failed to poll for events.: Timeout', src\main.rs:14:10
stack backtrace:

Not really sure how to debug this just yet, any ideas for pointers here?

   0:     0x7ff6c135d53c - std::sys_common::backtrace::_print::impl$0::fmt
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\sys_common\backtrace.rs:44
   1:     0x7ff6c136ceab - core::fmt::rt::Argument::fmt
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\core\src\fmt\rt.rs:138
   2:     0x7ff6c136ceab - core::fmt::write
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\core\src\fmt\mod.rs:1094
   3:     0x7ff6c135b619 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\io\mod.rs:1713
   4:     0x7ff6c135d2eb - std::sys_common::backtrace::_print
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\sys_common\backtrace.rs:47
   5:     0x7ff6c135d2eb - std::sys_common::backtrace::print
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\sys_common\backtrace.rs:34
   6:     0x7ff6c135f959 - std::panicking::default_hook::closure$1
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\panicking.rs:269
   7:     0x7ff6c135f60f - std::panicking::default_hook
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\panicking.rs:288
   8:     0x7ff6c135fe5e - std::panicking::rust_panic_with_hook
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\panicking.rs:705
   9:     0x7ff6c135fd4d - std::panicking::begin_panic_handler::closure$0
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\panicking.rs:597
  10:     0x7ff6c135deb9 - std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\sys_common\backtrace.rs:151
  11:     0x7ff6c135fa50 - std::panicking::begin_panic_handler
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\panicking.rs:593
  12:     0x7ff6c1372165 - core::panicking::panic_fmt
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\core\src\panicking.rs:67
  13:     0x7ff6c1372693 - core::result::unwrap_failed
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\core\src\result.rs:1651
  14:     0x7ff6c1351481 - enum2$<core::result::Result<ref$<leaprs::connection_message::ConnectionMessage>,leaprs::leap_rs::Error> >::expect<ref$<leaprs::connection_message::ConnectionMessage>,leaprs::leap_rs::Error>
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26\library\core\src\result.rs:1033
  15:     0x7ff6c13511e1 - server::main
                               at E:\04_Northstar\04_Software\Compass\server\src\main.rs:12
  16:     0x7ff6c13517fb - core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26\library\core\src\ops\function.rs:250
  17:     0x7ff6c135104e - std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26\library\std\src\sys_common\backtrace.rs:135
  18:     0x7ff6c135104e - std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26\library\std\src\sys_common\backtrace.rs:135
  19:     0x7ff6c13513f1 - std::rt::lang_start::closure$0<tuple$<> >
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26\library\std\src\rt.rs:166
  20:     0x7ff6c1358768 - std::rt::lang_start_internal::closure$2
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\rt.rs:148
  21:     0x7ff6c1358768 - std::panicking::try::do_call
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\panicking.rs:500
  22:     0x7ff6c1358768 - std::panicking::try
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\panicking.rs:464
  23:     0x7ff6c1358768 - std::panic::catch_unwind
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\panic.rs:142
  24:     0x7ff6c1358768 - std::rt::lang_start_internal
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library\std\src\rt.rs:148
  25:     0x7ff6c13513ca - std::rt::lang_start<tuple$<> >
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26\library\std\src\rt.rs:165
  26:     0x7ff6c1351359 - main
  27:     0x7ff6c13709b0 - invoke_main
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  28:     0x7ff6c13709b0 - __scrt_common_main_seh
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  29:     0x7ff9679626ad - BaseThreadInitThunk
  30:     0x7ff969a4aa68 - RtlUserThreadStart
@plule
Copy link
Owner

plule commented Aug 14, 2023

Hello Bryan, can you check the following:

  • Is the tracking working with other applications? In the Ultraleap control panel, are you able to see the skeleton hands when putting your hands in front of the device
  • Can you try replacing the unwrap by error check, and continue on error? The transient errors happen, maybe it's one that happen at startup

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

Successfully merging a pull request may close this issue.

2 participants