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

image_view causes 100% CPU usage #1060

Open
rursprung opened this issue Dec 22, 2024 · 1 comment
Open

image_view causes 100% CPU usage #1060

rursprung opened this issue Dec 22, 2024 · 1 comment

Comments

@rursprung
Copy link
Contributor

when i run image_view (using ros2 run image_view image_view --ros-args -r image:=/my/image) for 1-2 topics then the CPU usage goes up to 100%. i've tested this on several devices, all with the same result.

this is with ROS jazzy, image-view version 5.0.5 from apt (5.0.6 hasn't been synced to apt yet, but based on the commits it doesn't include anything relevant for this)

@rursprung
Copy link
Contributor Author

rursprung commented Dec 28, 2024

see this screenshot of htop - this is running in a WSL2 Ubuntu 24.04 VM and you can see that i'm running image_view 4x (to see 4 different topics) and each one uses 100% of a CPU core:
image

this is at a time where there aren't even any new messages to be processed (i was playing a ROS bag but already stopped ros2 bag play but hadn't stopped the image_view nodes yet)

this is with latest & greatest image_view from the jazzy branch compiled locally.

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