NVIDIA-AI-IOT / jetracer

An autonomous AI racecar using NVIDIA Jetson Nano
MIT License
1.06k stars 319 forks source link

road_following.ipynb import torch OSError #111

Closed AntonioCervantes closed 2 years ago

AntonioCervantes commented 3 years ago

Hello, I am using the Nvidia Jetson Nano 4gb B01 with the latest Jetracer SD card image (4.5.1) and all the same electronic hardware from the Bill of Materials for the Tamiya TT02 RC car. After following all the software setup from the Jetracer GitHub page, I was able to run through the basic_motion and interactive_regression notebooks just fine with no issues. However after getting to the road_following notebook and running the first block of code I kept getting an error that says: OSError: /usr/lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block

I was able to get this notebook to work once by running some of the code out of order, but my CSI camera couldn't connect and I had to restart. I wasn't able to replicate this out-of-order code execution and have been stuck on the import torch line of code ever since. Could someone please help me out with this issue or share any info on how to solve it, thanks!

image

diamondbarcode commented 2 years ago

i try multiple answers that i found via google but cant seem to fix this problems .. if anyone got solution to this please write guides ..

crother94 commented 2 years ago

I had the same problem. I saw that several of the solutions from google mentioned switching the order of importing torch and cv2. Since this notebook didn't include cv2, I added a line "import cv2" above the other two imports and it fixed the error. I'm not sure why it worked, or if it's the best way of getting past the error, but hopefully it helps you.