jetsonhacks / buildOpenCVTX2

Build and install OpenCV for the NVIDIA Jetson TX2
MIT License
276 stars 152 forks source link

Jetson freezes when more than one videocapture is running. #27

Open jonready opened 5 years ago

jonready commented 5 years ago

This library has worked great for single videocapture but when I try to do 2 at the same time eventually my jetson freezes and stops responding to mouse and keyboard inputs. I posted an example usage of videocapture. cv::VideoCapture cap1(pipeline1, cv::CAP_GSTREAMER);

jetsonhacks commented 5 years ago

Did you happen to check the memory usage? What type of cameras are you using?

jonready commented 5 years ago

I am using two leopard imaging imx377 cameras. Memory usage is about 12%.

jetsonhacks commented 5 years ago

The script is just a wrapper around an OpenCV install. I'm not sure what the issue might be. Since I don't have the cameras, it's difficult to suggest a fix.

Please ask this question on the official NVIDIA Jetson forum where a large number of developers and NVIDIA engineers share their experience. Jetson TX2 forum: https://devtalk.nvidia.com/default/board/188/jetson-tx2/

jonready commented 5 years ago

I have asked my question there. But I had wondered if it might have been something related to OpenCV.

jetsonhacks commented 5 years ago

It could be. I would tend to be more suspicious of the the other players, ie imx377 drivers and GStreamer. Certainly it's worth checking with Leopard Imaging.