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

cannot allocate memory in static TLS block (Jetpack5, ROS2) #86

Open
daisukes opened this issue Feb 8, 2023 · 0 comments
Open

cannot allocate memory in static TLS block (Jetpack5, ROS2) #86

daisukes opened this issue Feb 8, 2023 · 0 comments
Assignees

Comments

@daisukes
Copy link
Contributor

daisukes commented Feb 8, 2023

I got this error when I executed people detection on Jetpack5.

[detect_darknet_opencv_node-1] terminate called after throwing an instance of 'class_loader::LibraryLoadException'
[detect_darknet_opencv_node-1]   what():  Could not load library dlopen error: /usr/local/lib/libOpen3D.so: cannot allocate memory in static TLS block, at /opt/ros/humble/src/rcutils/src/shared_library.c:99

The root cause of this issue is a bug in glibc. The fix is not included in Jetpack5/Ubuntu20.04.
https://bugzilla.redhat.com/show_bug.cgi?id=1722181

A workaround is to use the LD_PRELOAD environment variable to load libOpen3D.so.

I will add a flag to switch using LD_PRELOAD to some launch files.

@daisukes daisukes self-assigned this Feb 8, 2023
daisukes added a commit that referenced this issue Feb 9, 2023
- changes for realsense2_camera (v4) parameter change
- add workaround to workaround (#86)

Signed-off-by: Daisuke Sato <daisukes@cmu.edu>
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