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

Unknown errors #154

Open
yaniv5678 opened this issue Dec 10, 2024 · 3 comments
Open

Unknown errors #154

yaniv5678 opened this issue Dec 10, 2024 · 3 comments

Comments

@yaniv5678
Copy link

yaniv5678 commented Dec 10, 2024

When I run openvino-rs and get errors, I usually get Err(general error) and I can't understand what is the error cause.
Is there some verbose info anywhwere?

@abrown
Copy link
Contributor

abrown commented Dec 10, 2024

Unfortunately this situation isn't great at the moment and this library can do little about it. These Rust bindings depend on upstream OpenVINO's C bindings, which don't expose a lot of in depth error information (more is present in the C++ exceptions but obviously these don't map to C). At some point I asked if there was a way to enable logging but I don't think I heard back a great solution.

I think for now the best options are: (a) build a debug-enabled version of the OpenVINO library, link to it with these bindings, and then step through to the error in a debugger, or (b) post a code example that fails and we can try to piece together what is going wrong.

@yaniv5678
Copy link
Author

Hi @abrown!
Thanks for the prompt response.
I see :)
I think it's more problematic in production use-cases
Are there any plans to solve it in the future?

@abrown
Copy link
Contributor

abrown commented Dec 11, 2024

If the upstream OpenVINO team can solve it in the C bindings, I will make sure it propagates to these Rust bindings. Can you open an issue on https://github.com/openvinotoolkit/openvino and phrase your request in terms of the C bindings, e.g., "I need more information from errors returned by the C bindings (or alternately, logging)."

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

2 participants