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

OutOfMemoryError with pose branch #16

Closed
TomGrimwood opened this issue Jun 25, 2023 · 3 comments
Closed

OutOfMemoryError with pose branch #16

TomGrimwood opened this issue Jun 25, 2023 · 3 comments

Comments

@TomGrimwood
Copy link

Using the pose branch, when the image stream begins, I receive this error;

[INFO] [launch]: All log files can be found below /home/user/.ros/log/2023-06-26-11-15-48-213828-node1-orin-2340600
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [component_container_mt-1]: process started with pid [2340628]
[component_container_mt-1] [INFO] [1687734948.719613070] [apriltag_container_detect]: Load Library: /home/user/workspaces/april_ws/install/apriltag_ros/lib/libAprilTagNode.so
[component_container_mt-1] [INFO] [1687734948.831306213] [apriltag_container_detect]: Found class: rclcpp_components::NodeFactoryTemplate<AprilTagNode>
[component_container_mt-1] [INFO] [1687734948.831585384] [apriltag_container_detect]: Instantiate class: rclcpp_components::NodeFactoryTemplate<AprilTagNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/apriltag' in container '/apriltag_container_detect'
[component_container_mt-1] terminate called after throwing an instance of 'cv::Exception'
[component_container_mt-1]   what():  OpenCV(4.5.4) /home/ubuntu/build_opencv/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 117094104464640 bytes in function 'OutOfMemoryError'
[component_container_mt-1] 
[ERROR] [component_container_mt-1]: process has died [pid 2340628, exit code -6, cmd '/opt/ros/galactic/lib/rclcpp_components/component_container_mt --ros-args -r __node:=apriltag_container_detect -r __ns:=/'].

I am using an Nvidia Orin with OpenCV 4.5.4, ROS Galactic.
If you need any further information let me know.

@christianrauch
Copy link
Owner

Well, I guess your Jetson Orin does not have 117094104464640 bytes of memory :-)

It's unclear to me why this happens. I assume that at some point the image dimensions are wrongly calculated or there is an integer overflow.

Do you see this issue only on the pose branch? Can you provide a rosbag to reproduce this and/or a gdb backtrace?

@christianrauch
Copy link
Owner

@TomGrimwood Can you clarify if this only happens on the pose branch? Can you provide a log file to reproduce this? Alternatively, can you provide a backtrace with source code line numbers and the commit at which this happens?

@TomGrimwood
Copy link
Author

Sorry it's been a while. I think it was related to the OpenCV cuda enabled build that came with the Orin. I am unable to check if I can reproduce this behaviour.

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