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

Unity Crashing #77

Open
SaadAnees opened this issue Jan 6, 2021 · 0 comments
Open

Unity Crashing #77

SaadAnees opened this issue Jan 6, 2021 · 0 comments

Comments

@SaadAnees
Copy link

Hello, I have setup the OpenPose as instructed. I tried testBinary and it played a video with poses in it. Meaning OpenPose is setup correctly but unity is keep crashing and giving me error which is mentioned below:

OP_Error:
Error occurred on a thread. OpenPose closed all its threads and then propagated the error to the main thread. Error description:

Caffe trained model file not found: D:\Unity-Try-on\openpose_unity_plugin\OpenPosePlugin\Assets\StreamingAssets\models\pose/body_25/pose_iter_584000.caffemodel.
Possible causes:
1. Not downloading the OpenPose trained models.
2. Not running OpenPose from the same directory where the model folder is located.
3. Using paths with spaces.

Coming from:

  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\net\netCaffe.cpp:op::NetCaffe::ImplNetCaffe::ImplNetCaffe():56
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\net\netCaffe.cpp:op::NetCaffe::ImplNetCaffe::ImplNetCaffe():89
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\pose\poseExtractorCaffe.cpp:op::addCaffeNetOnThread():108
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\pose\poseExtractorCaffe.cpp:op::PoseExtractorCaffe::netInitializationOnThread():198
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\pose\poseExtractorNet.cpp:op::PoseExtractorNet::initializationOnThread():98
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\pose\poseExtractor.cpp:op::PoseExtractor::initializationOnThread():34
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/pose/wPoseExtractor.hpp:op::WPoseExtractor<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > >::initializationOnThread():57
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/thread/worker.hpp:op::Worker<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > >::initializationOnThreadNoException():77
  • [All threads closed and control returned to main thread]
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\utilities\errorAndLog.cpp:op::checkWorkerErrors():280
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/thread/threadManager.hpp:op::ThreadManager<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > >,class op::Queue<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::queue<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::deque<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::allocator<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > > > > >::stop():243
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/thread/threadManager.hpp:op::ThreadManager<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > >,class op::Queue<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::queue<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::deque<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::allocator<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > > > > >::exec():202
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/wrapper/wrapper.hpp:op::WrapperT<struct op::Datum,class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > >,class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > > >::exec():424
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\unity\unityBinding.cpp:op::openpose_main():453
  • [Error occurred in a destructor or in the OpenPose Unity Plugin, so no std::exception has been thrown. Returning with exit status 0]

UnityEngine.Debug:LogError(Object)
OpenPose.OPWrapper:m__0(String, Int32) (at Assets/OpenPose/Modules/Scripts/OPWrapper.cs:231)
OpenPose.OPBind:_OPRun()
OpenPose.OPWrapper:OPExecuteThread() (at Assets/OpenPose/Modules/Scripts/OPWrapper.cs:268)

Unity version: 2018.4.15f1
Kindly let me know what am I missing.

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