Open chunlinyao opened 1 year ago
I have a Bluttooth dongle10, when it plugged, the host example thrown an exception.
usbip git:(master) sudo env RUST_LOG=info RUST_BACKTRACE=full cargo run --example host Compiling usbip v0.6.0 (/Users/yaochunlin/work/usbip) Finished dev [unoptimized + debuginfo] target(s) in 1.37s Running `target/debug/examples/host` thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotFound', src/lib.rs:63:54 stack backtrace: 0: 0x108808db7 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h25e7da9115301bd9 1: 0x108819f5b - core::fmt::write::h4d1b053dd3817697 2: 0x1087de7c6 - std::io::Write::write_fmt::h48fc6e40b56483f8 3: 0x108808b80 - std::sys_common::backtrace::print::h6fa1159600d88f18 4: 0x1087f51f5 - std::panicking::default_hook::{{closure}}::h0a8254be9e82d10f 5: 0x1087f4f71 - std::panicking::default_hook::hc1504d29d6ed0579 6: 0x1087f58bb - std::panicking::rust_panic_with_hook::h4aeedb5e21e62c34 7: 0x1088094e3 - std::panicking::begin_panic_handler::{{closure}}::hb8ebfc8b40cd97df 8: 0x108808eb9 - std::sys_common::backtrace::__rust_end_short_backtrace::h7ef18953f8f8bb9b 9: 0x1087f546d - _rust_begin_unwind 10: 0x108829e93 - core::panicking::panic_fmt::h311d6d0f06c691be 11: 0x108829e55 - core::result::unwrap_failed::hda3d26196913454a 12: 0x1084ae2f9 - core::result::Result<T,E>::unwrap::h28ef900968b6b5b1 at /private/tmp/rust-20230902-17312-1ox8e1o/rustc-1.72.0-src/library/core/src/result.rs:1076:23 13: 0x1084b6afd - usbip::UsbIpServer::with_devices::hfd6c4a9bacbde975 at /Users/yaochunlin/work/usbip/src/lib.rs:63:23 14: 0x1084b88c6 - usbip::UsbIpServer::new_from_host::h3a273bdd93c8cb6a at /Users/yaochunlin/work/usbip/src/lib.rs:189:52 15: 0x10849c57b - host::main::{{closure}}::h0769c2f4ff143694 at /Users/yaochunlin/work/usbip/examples/host.rs:8:27 16: 0x10848a732 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h405f7adf04e18609 at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/park.rs:282:63 17: 0x10848a1b9 - tokio::runtime::coop::with_budget::hade375f944a68b07 at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/coop.rs:107:5 18: 0x10848a1b9 - tokio::runtime::coop::budget::h7882096bb18894c7 at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/coop.rs:73:5 19: 0x10848a1b9 - tokio::runtime::park::CachedParkThread::block_on::h72a97453d7254f5c at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/park.rs:282:31 20: 0x10849654f - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::hff84f6a3da3e9933 at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/context/blocking.rs:66:9 21: 0x108495424 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h27f4893595b1174d at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/scheduler/multi_thread/mod.rs:87:13 22: 0x10849448e - tokio::runtime::context::runtime::enter_runtime::h3557e94792c66141 at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/context/runtime.rs:65:16 23: 0x1084953e5 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h725fc24d56ec91aa at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/scheduler/multi_thread/mod.rs:86:9 24: 0x10847383b - tokio::runtime::runtime::Runtime::block_on::h45dbe91f8c846544 at /Users/yaochunlin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/runtime.rs:349:45 25: 0x1084a3ffe - host::main::h18055fdd1812db92 at /Users/yaochunlin/work/usbip/examples/host.rs:12:5 26: 0x10847b6be - core::ops::function::FnOnce::call_once::hb5aa621061f79dc8 at /private/tmp/rust-20230902-17312-1ox8e1o/rustc-1.72.0-src/library/core/src/ops/function.rs:250:5 27: 0x1084aa8c1 - std::sys_common::backtrace::__rust_begin_short_backtrace::hd3e06039e4075dbe at /private/tmp/rust-20230902-17312-1ox8e1o/rustc-1.72.0-src/library/std/src/sys_common/backtrace.rs:135:18 28: 0x10847f624 - std::rt::lang_start::{{closure}}::he6433942e32e1799 at /private/tmp/rust-20230902-17312-1ox8e1o/rustc-1.72.0-src/library/std/src/rt.rs:166:18 29: 0x1087f5354 - std::panicking::try::he1007db618a42bd9 30: 0x1087ec14e - std::rt::lang_start_internal::h4bc01625444a6117 31: 0x10847f5f7 - std::rt::lang_start::h8a3b273862067ccb at /private/tmp/rust-20230902-17312-1ox8e1o/rustc-1.72.0-src/library/std/src/rt.rs:165:17 32: 0x1084a4088 - _main
This is my dongle's Info. VID 0x0001 PID 0x0a12
This seems to be a duplicate of #15
I have a Bluttooth dongle10, when it plugged, the host example thrown an exception.
This is my dongle's Info. VID 0x0001 PID 0x0a12