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

thread 'main' panicked at 'Could not capture an image: CaptureTimeout' #17

Open
zoumi opened this issue Dec 31, 2019 · 0 comments
Open

Comments

@zoumi
Copy link

zoumi commented Dec 31, 2019

Hi,I got an error: CaptureTimeout.
I'm using a notebook. When the app starts, I can see the LED beside the camera is turn on for about 200ms.
My PC ENV:

$ rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  E:\rustup

installed toolchains
--------------------

nightly-i686-pc-windows-msvc (default)
nightly-x86_64-pc-windows-msvc

active toolchain
----------------

nightly-i686-pc-windows-msvc (default)
rustc 1.41.0-nightly (27d6f55f4 2019-12-11)

$ /e/rustdir/target/debug/test_escapi.exe devices: 1 capture initialized, device name: USB HD Webcam Frame #0, captured and saved as image.png thread 'main' panicked at 'Could not capture an image: CaptureTimeout', src\libcore\result.rs:1189:5 stack backtrace: 0: core::fmt::write at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\/src\libcore\fmt\mod.rs:1025 1: std::io::Write::write_fmt<std::sys::windows::stdio::Stderr> at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\/src\libstd\io\mod.rs:1426 2: std::panicking::default_hook::{{closure}} at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\/src\libstd\panicking.rs:193 3: std::panicking::default_hook at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\/src\libstd\panicking.rs:210 4: std::panicking::rust_panic_with_hook at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\/src\libstd\panicking.rs:471 5: std::panicking::begin_panic_handler at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\/src\libstd\panicking.rs:375 6: core::panicking::panic_fmt at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\/src\libcore\panicking.rs:84 7: core::result::unwrap_failed at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\/src\libcore\result.rs:1189 8: core::result::Result<slice<u8>*, escapi::Error>::expect<slice<u8>*,escapi::Error> at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\src\libcore\result.rs:984 9: test_escapi::main at H:\work\rust_projects\test_escapi\src\main.rs:23 10: std::rt::lang_start::{{closure}}<()> at /rustc/27d6f55f47e8875e71083a28ed84ea5a88e1b596\src\libstd\rt.rs:67 note: Some details are omitted, run withRUST_BACKTRACE=fullfor a verbose backtrace.

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