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

Problem with Margo CPU usage when live-tracking #41

Open
pm4564 opened this issue Jul 22, 2021 · 1 comment
Open

Problem with Margo CPU usage when live-tracking #41

pm4564 opened this issue Jul 22, 2021 · 1 comment

Comments

@pm4564
Copy link

pm4564 commented Jul 22, 2021

Previously, we had been using Margo without any issues.
Recently however, when we try to do live tracking in Margo, our total processor utilisation across all cores hits 100% and the software fails to work properly. We don't believe it is a hardware issue.
We have noticed that the issue does not happen when we are tracking from a pre-recorded video, only when live tracking.

@werkhoven
Copy link
Collaborator

I think the likely culprits here are either 1) the camera failing to initialize in MATLAB, or 2) the camera getting stuck in an infinite loop during when Margo tries to estimate the framerate of the camera. That being said, it would help to have more information to solve your issue. At exactly what step does Margo get stuck (e.g. when you first boot it up, when you start tracking, when you initialize the camera etc)? If you have Git configured on your machine, could you tell me what commit you are using (use git show to display the current commit).

  1. Run MATLAB's built-in camera configuration tool: imaqtool . Verify that you can see the camera in there, initialize it, and preview video from the device. If you can connect to the camera and preview video from there, then this is a Margo issue and not an issue with the camera or the device drivers that MATLAB is using.

  2. Older versions of Margo had a bug where the camera could sometimes get stuck in an infinite loop if the camera initialized properly but that frames sent to MATLAB contained no data. The easiest way to fix this would be to ensure you are using the most up-to-date version of the master branch. If you have Git configured on your computer, just re-pull the master branch. If not, backup your current version of Margo and re-download it as a zip file from Github. Extract it to a new location (if you go this route, you have to make sure to remove the old version of Margo from MATLAB's path to avoid conflicts).

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