Accessing the Camera Package via Risc0 Guest Code #963
mostafamshkfides
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have encountered a challenge in my current programming endeavor that I would appreciate your assistance with. Specifically, I have been utilizing various camera access packages within my Rust code, and they have performed satisfactorily in enabling me to access my laptop's camera. However, when I attempted to transfer my code into the Risc0 guest environment, I encountered an issue.
In accordance with Risc0's instructions, I have made the addition of "features = ["std"]" to the guest Cargo.toml file. This is an excerpt from my modified risc0-zkvm configuration within the mentioned toml file:
risc0-zkvm = { version = "0.18.0", default-features = false, features = ["std"] }
Unfortunately, I now face an error message within the Risc0 guest code that reads as follows:
"thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', src/main.rs:25:33
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracethread 'main' panicked at 'called
Result::unwrap()
on anErr
value: Guest panicked: index out of bounds: the len is 0 but the index is 0', host/src/main.rs:24:58"I would be immensely grateful for any guidance or insights you can offer to help resolve this issue.
Beta Was this translation helpful? Give feedback.
All reactions