Error: cannot allocate memory in static TLS blocjetsonk

While running a object detection+lane following on the Jetson Nano, I get the following error:

OSError: /usr/local/lib/python3.8/dist-packages/torch/lib/libgomp-d22c30c5.so.1: cannot allocate memory in static TLS block

How can I resolve this error?

I have tried getting exporting the path:

export LD_PRELOAD=/home/aurelien/.local/lib/python3.6/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0

and

export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1

but this did not help fix the error.

Kind Regards.

Hi,

It looks like you meet the same issue as the below link:

Could you try the suggestion to see if it works?
Thanks.

I have tried this too. but unfortunately again having same error.

Hi,

Based on the log:

OSError: /usr/local/lib/python3.8/dist-packages/torch/lib/libgomp-d22c30c5.so.1: cannot allocate memory in static TLS block

Have you upgraded the default Python version from 3.6 to 3.8?
If yes, you might need to reinstall all the dependencies with Python 3.8 to make it work.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.