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

High RAM usage when importing cvBridge on python3 #409

Open
pepisg opened this issue Oct 1, 2021 · 0 comments
Open

High RAM usage when importing cvBridge on python3 #409

pepisg opened this issue Oct 1, 2021 · 0 comments
Labels

Comments

@pepisg
Copy link

pepisg commented Oct 1, 2021

Hi!

I'm currently using cvBridge with ROS2 Foxy and python 3.8.5 on Ubuntu 20.04 / Docker. I installed the cv bridge library using apt-get install ros-foxy-cv-bridge

However importing cvBridge on a Python node increases ~130MB its RAM consumption. To reproduce this issue just open python in a terminal and type from cv_bridge import CvBridge while monitoring the RAM usage of the process.

after tracing down the increase, I found out that the line from cv_bridge.boost.cv_bridge_boost import getCvType placed here uses 128MB.

I'm only using the imgmsg_to_cv2 function, so importing the library should not consume this much.

Thanks for your help!

@ijnek ijnek added the foxy label Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants