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

Darknet-ros process died on Jetson TX1 #124

Closed
pushkalkatara opened this issue Oct 17, 2018 · 5 comments
Closed

Darknet-ros process died on Jetson TX1 #124

pushkalkatara opened this issue Oct 17, 2018 · 5 comments

Comments

@pushkalkatara
Copy link

I am running Yolo v3 on Jetson TX1 but after loading the model in the memory and processing some frames from the Image topic the process dies.
I noticed in Tegra-stats, there is a constant increase in memory usage. I added a swap file of 16 GB also, but the memory fills up the swap with time and the process dies.
Some of the possible issues i thought of:

  1. Memory leak between threads.
  2. As the Yolo's output is around 3-5 fps and the camera's fps is 30, the image buffer is filling up and the ros publisher's queue is not rejecting frames.
  3. Memory leak when subscribing to /videofile/image_raw topic ros-drivers/video_stream_opencv#15

The issue is somewhere related to ROS as the same model with the config file based on Yolo v3 was successfully running without ROS.

@pushkalkatara
Copy link
Author

Small update related to the issue - https://answers.ros.org/question/220502/image-subscriber-lag-despite-queue-1/

@mbjelonic
Copy link
Collaborator

mbjelonic commented Oct 18, 2018 via email

@pushkalkatara
Copy link
Author

I am still trying to figure out a way to solve the issue. As the implementation is using ImageTransport Subscriber in C++, there is no such thing as buff_size as an argument in roscpp.

@pushkalkatara
Copy link
Author

Hi @mbjelonic, I tried to solve the issue using AlexAB darknet and different multithreading implementation. The issue is resolved for me. I have pushed the code on this link - https://github.com/pushkalkatara/darknet_ros.

@DeepDuke
Copy link

Except for "malloc" and "free" problems, I also met

[darknet_ros-1] process has died [pid 13109], exit code -11

I am quite confused about this problem. I am running this package on tx2 with a Intel Realsense Camera D415.

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

3 participants