-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Segmentation Fault on session.Run() with custom model on c++ API #5630
Comments
Error stack using Valgrind: ==14559== Invalid read of size 8 |
Can you attach your test code here? I can't repro this with onnx_test_runner using randomly generated inputs for 'img' and 'depth'. |
Here is the code to reproduce the error(just run the bash file): Thank you for the help! |
This is an issue with your program, not onnxruntime. Ort::Env obj is going out of scope in the PoseDetector constructor. You should make it a member of your class as env needs to live until you've no need for any more inferencing. |
Describe the bug
Segmentation fault when doing session.Run() with custom onnx model on c++ API. The models works as expected on Python however when running the same model on the C++ API it gets a segmentation fault without any error or info to help debug. Any ideas on what might be wrong or how to get debug information inside run()?
Urgency
Trying to finish integrating and deploying model for a project demo due tomorrow.
System information
To Reproduce
Expected behavior
Model to perform inference correctly when doing session.Run(...);
Screenshots
![image](https://user-images.githubusercontent.com/794111/97601076-ad512d80-1a01-11eb-8279-f529eeae985b.png)
Model inputs/outputs (Netron):
Code bits:
![image](https://user-images.githubusercontent.com/794111/97603516-6c0e4d00-1a04-11eb-8f56-3d8bdc3f899f.png)
Additional context
Model:
walker_full_model.zip
The text was updated successfully, but these errors were encountered: