GeekAlexis / FastMOT

High-performance multiple object tracking based on YOLO, Deep SORT, and KLT 🚀
MIT License
1.15k stars 253 forks source link

LLVM ERROR: Unable to allocate memory for common symbols #168

Closed Mikeworld-git closed 3 years ago

Mikeworld-git commented 3 years ago

Current Behavior

LLVM ERROR: Unable to allocate memory for common symbols

How to Reproduce

### The first time I can run successfully, but the second time I run it will make an error.

first time nvidia@nvidia-desktop:~/project/FastMOT-master$ python3 app.py --input_uri /home/nvidia/project/ir.mp4 --mot --gui Opening in BLOCKING MODE NvMMLiteOpen : Block : BlockType = 261 NVMEDIA: Reading vendor.tegra.display-size : status: 6 NvMMLiteBlockCreate : Block : BlockType = 261 [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (896) open OpenCV | GStreamer warning: unable to query duration of stream [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=1, value=0, duration=-1 2021-07-31 09:33:16 [ INFO] 1280x720 stream @ 30 FPS 2021-07-31 09:33:16 [ INFO] Loading detector model... 2021-07-31 09:33:18 [ INFO] Building engine with batch size: 1 2021-07-31 09:33:18 [ INFO] This may take a while... 2021-07-31 09:43:48 [ INFO] Completed creating engine 2021-07-31 09:43:49 [ INFO] Loading feature extractor model... 2021-07-31 09:43:49 [ INFO] Building engine with batch size: 16 2021-07-31 09:43:49 [ INFO] This may take a while... 2021-07-31 09:47:40 [ INFO] Completed creating engine 2021-07-31 09:47:43 [ INFO] Starting video capture... 2021-07-31 09:48:21 [ INFO] Average FPS: 8

second time nvidia@nvidia-desktop:~/project/FastMOT-master$ python3 app.py --input_uri /home/nvidia/project/ir.mp4 --mot --gui Opening in BLOCKING MODE NvMMLiteOpen : Block : BlockType = 261 NVMEDIA: Reading vendor.tegra.display-size : status: 6 NvMMLiteBlockCreate : Block : BlockType = 261 [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (896) open OpenCV | GStreamer warning: unable to query duration of stream [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=1, value=0, duration=-1 2021-07-31 09:48:29 [ INFO] 1280x720 stream @ 30 FPS 2021-07-31 09:48:29 [ INFO] Loading detector model... 2021-07-31 09:48:34 [ INFO] Loading feature extractor model... 2021-07-31 09:48:35 [ INFO] Starting video capture... LLVM ERROR: Unable to allocate memory for common symbols!

Describe what you want to do

Your Environment

declare -x LLVM_CONFIG="/usr/bin/llvm-config-8" alias llvm='/usr/bin/llvm-lib-8'

absl-py 0.10.0 actionlib 1.12.1 alabaster 0.7.8 angles 1.9.12 appdirs 1.4.4 apturl 0.5.2 asn1crypto 0.24.0 astroid 1.6.0 astunparse 1.6.3 Babel 2.4.0 beautifulsoup4 4.6.0 bleach 2.1.2 blinker 1.4 bondpy 1.8.5 Brlapi 0.6.6 cachetools 4.2.2 camera_calibration_parsers 1.11.13 catkin 0.7.29 catkin-pkg 0.4.23 certifi 2018.1.18 chardet 3.0.4 cloudpickle 0.5.2 controller_manager 0.18.3 controller_manager_msgs 0.18.3 cryptography 2.1.4 cupshelpers 1.0 cupy 9.2.0 cv_bridge 1.13.0 cycler 0.10.0 Cython 0.29.22 cython-bbox 0.1.3 dataclasses 0.8 decorator 4.4.2 defer 1.0.6 diagnostic_analysis 1.9.7 diagnostic_common_diagnostics 1.9.7 diagnostic_updater 1.9.7 distro 1.5.0 distro-info 0.18ubuntu0.18.04.1 docutils 0.14 dynamic_reconfigure 1.6.3 easydict 1.9 entrypoints 0.2.3.post1 fastrlock 0.6 feedparser 5.2.1 filelock 3.0.12 filterpy 1.4.5 future 0.17.1 futures 3.1.1 gast 0.3.3 gdown 3.13.0 gencpp 0.6.5 geneus 2.2.6 genlisp 0.4.16 genmsg 0.5.16 gennodejs 2.0.1 genpy 0.6.15 google-auth 1.32.1 google-auth-oauthlib 0.4.4 google-pasta 0.2.0 graphsurgeon 0.4.5 grpcio 1.39.0rc1 h5py 2.10.0 html5lib 0.999999999 httplib2 0.9.2 idna 2.6 image_geometry 1.13.0 imageio 2.9.0 imagesize 0.7.1 importlib-metadata 4.6.1 interactive-markers 1.11.5 ipykernel 4.8.2 ipython 5.5.0 ipython_genutils 0.2.0 isort 4.3.4 jedi 0.11.1 Jetson.GPIO 2.0.11 jetson-stats 3.0.1 Jinja2 2.10 joint_state_publisher 1.12.15 joint_state_publisher_gui 1.12.15 jsonschema 2.6.0 jupyter-client 5.2.2 jupyter-core 4.4.0 kazam 1.4.5 kdl_parser_py 1.13.1 Keras-Applications 1.0.8 Keras-Preprocessing 1.1.2 keyring 10.6.0 keyrings.alt 3.0 kiwisolver 1.3.1 language-selector 0.1 lap 0.4.0 laser_geometry 1.6.7 launchpadlib 1.10.6 lazr.restfulclient 0.13.5 lazr.uri 1.0.3 lazy-object-proxy 1.3.1 linecache2 1.0.0 llvmlite 0.31.0 logilab-common 1.4.1 louis 3.5.0 lxml 4.2.1 macaroonbakery 1.1.3 Mako 1.0.7 Markdown 3.3.4 MarkupSafe 1.0 matplotlib 3.3.3 mccabe 0.6.1 message_filters 1.14.10 mistune 0.8.3 mock 3.0.5 moveit_commander 1.0.7 moveit_ros_planning_interface 1.0.7 moveit_ros_visualization 1.0.7 nbconvert 5.3.1 nbformat 4.4.0 networkx 2.5.1 numba 0.48.0 numpy 1.17.0 numpydoc 0.7.0 oauth 1.0.1 oauthlib 3.1.1 olefile 0.45.1 onboard 1.4.1 onnx 1.4.1 opt-einsum 3.3.0 pandas 0.22.0 pandocfilters 1.4.2 parso 0.1.1 pbr 3.1.1 pexpect 4.2.1 pickleshare 0.7.4 Pillow 8.0.1 pip 21.2.1 prompt-toolkit 1.0.15 protobuf 3.17.3 psutil 5.4.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pybind11 2.6.2 pycairo 1.16.2 pycodestyle 2.3.1 pycrypto 2.6.1 pycuda 2019.1.2 pycups 1.9.73 pydot 1.4.2 pyflakes 1.6.0 Pygments 2.2.0 PyGObject 3.26.1 PyJWT 1.5.3 pylint 1.8.3 pymacaroons 0.13.0 PyNaCl 1.1.2 pyparsing 2.4.7 pyRFC3339 1.0 PySocks 1.7.1 python-apt 1.6.5+ubuntu0.5 python-dateutil 2.6.1 python-debian 0.1.32 python_qt_binding 0.4.3 pytools 2020.4.3 pytz 2018.3 PyWavelets 1.1.1 pyxdg 0.25 PyYAML 3.12 pyzmq 16.0.2 qt-dotgraph 0.4.2 qt-gui 0.4.2 qt-gui-cpp 0.4.2 qt-gui-py-common 0.4.2 QtAwesome 0.4.4 qtconsole 4.3.1 QtPy 1.3.1 requests 2.25.1 requests-oauthlib 1.3.0 requests-unixsocket 0.1.5 resource_retriever 1.12.6 roman 2.0.0 rope 0.10.5 rosbag 1.14.10 rosboost-cfg 1.14.9 rosclean 1.14.9 roscreate 1.14.9 rosdep 0.20.1 rosdistro 0.8.3 rosgraph 1.14.10 rosinstall 0.7.8 rosinstall-generator 0.1.22 roslaunch 1.14.10 roslib 1.14.9 roslint 0.11.2 roslz4 1.14.10 rosmake 1.14.9 rosmaster 1.14.10 rosmsg 1.14.10 rosnode 1.14.10 rosparam 1.14.10 rospkg 1.3.0 rospy 1.14.10 rosservice 1.14.10 rostest 1.14.10 rostopic 1.14.10 rosunit 1.14.9 roswtf 1.14.10 rqt_action 0.4.9 rqt_bag 0.5.1 rqt_bag_plugins 0.5.1 rqt_console 0.4.9 rqt_dep 0.4.9 rqt_graph 0.4.11 rqt_gui 0.5.2 rqt_gui_py 0.5.2 rqt_image_view 0.4.16 rqt_launch 0.4.8 rqt_logger_level 0.4.8 rqt-moveit 0.5.10 rqt_msg 0.4.8 rqt_nav_view 0.5.7 rqt_plot 0.4.13 rqt_pose_view 0.5.8 rqt_publisher 0.4.8 rqt_py_common 0.5.2 rqt_py_console 0.4.8 rqt-reconfigure 0.5.4 rqt_robot_dashboard 0.5.7 rqt-robot-monitor 0.5.13 rqt_robot_steering 0.5.10 rqt_runtime_monitor 0.5.7 rqt_rviz 0.6.0 rqt_service_caller 0.4.8 rqt_shell 0.4.9 rqt_srv 0.4.8 rqt_tf_tree 0.6.0 rqt_top 0.4.8 rqt_topic 0.4.11 rqt_web 0.4.8 rsa 4.7.2 rviz 1.13.17 scikit-image 0.17.2 scipy 1.5.4 SecretStorage 2.3.1 sensor-msgs 1.12.8 setuptools 57.4.0 simplegeneric 0.8.1 simplejson 3.13.2 six 1.16.0 smach 2.0.1 smach_ros 2.0.1 smclib 1.8.5 Sphinx 1.6.7 spyder 3.2.6 srdfdom 0.5.2 ssh-import-id 5.7 style 1.1.0 system-service 0.3 systemd-python 234 tensorboard 2.5.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.0 tensorflow 2.3.1+nv20.12 tensorflow-estimator 2.3.0 tensorrt 7.1.3.0 termcolor 1.1.0 testpath 0.3.1 testresources 2.0.1 tf 1.12.1 tf_conversions 1.12.1 tf2_geometry_msgs 0.6.5 tf2_kdl 0.6.5 tf2_py 0.6.5 tf2_ros 0.6.5 tifffile 2020.9.3 topic_tools 1.14.10 tornado 4.5.3 tqdm 4.61.2 traceback2 1.4.0 traitlets 4.3.2 typing 3.7.4.3 typing-extensions 3.7.4.3 ubuntu-drivers-common 0.0.0 uff 0.6.9 unittest2 1.1.0 unity-scope-calculator 0.1 unity-scope-chromiumbookmarks 0.1 unity-scope-colourlovers 0.1 unity-scope-devhelp 0.1 unity-scope-firefoxbookmarks 0.1 unity-scope-manpages 0.1 unity-scope-openclipart 0.1 unity-scope-texdoc 0.1 unity-scope-tomboy 0.1 unity-scope-virtualbox 0.1 unity-scope-yelp 0.1 unity-scope-zotero 0.1 update 0.0.1 urdfdom-py 0.4.5 urllib3 1.22 urwid 2.0.1 vcstools 0.1.42 wadllib 1.3.2 wcwidth 0.1.7 webencodings 0.5 Werkzeug 2.0.1 wheel 0.30.0 wrapt 1.12.1 wstool 0.1.17 xacro 1.13.10 xkit 0.0.0 zipp 3.5.0 zope.interface 4.3.2

GeekAlexis commented 3 years ago

How did you install Numba?

Mikeworld-git commented 3 years ago

How did you install Numba? Thank you very much for your reply. First, I installed llvm7.0.1 and numba using the following code,I encountered the same error“The first time I can run successfully, but the second time I run it will make an error.”

$ wget http://releases.llvm.org/7.0.1/llvm-7.0.1.src.tar.xz $ tar -xvf llvm-7.0.1.src.tar.xz $ cd llvm-7.0.1.src.tar.xz $ mkdir llvm_build_dir $ cd llvm_build_dir/ $ cmake ../ -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="ARM;X86;AArch64" $ make -j4 $ sudo make install $ cd bin/ $ echo "export LLVM_CONFIG=\""pwd"/llvm-config\"" >> ~/.bashrc $ echo "alias llvm='"pwd"/llvm-lit'" >> ~/.bashrc $ source ~/.bashrc $ sudo pip install llvmlite==0.31.0 $ sudo pip install numba==0.48

Then I installed llvm8 and numba using the following code according to the "install_jetson.sh" file.

sudo apt-get install -y llvm-8 llvm-8-dev sudo -H LLVM_CONFIG=/usr/bin/llvm-config-8 pip3 install numba==0.48

And configure the environment variables $ echo "export LLVM_CONFIG=\""pwd"/llvm-config-8\"" >> ~/.bashrc $ echo "alias llvm='"pwd"/llvm-8'" >> ~/.bashrc $ source ~/.bashrc

But it still shows "LLVM ERROR: Unable to allocate memory for common symbols" error.

GeekAlexis commented 3 years ago

Are you using the Jetson Nano 2GB? Also, did you make sure to purge the previously installed LLVM 7.0.1 before installing LLVM 8 using apt?

Mikeworld-git commented 3 years ago

Are you using the Jetson Nano 2GB? Also, did you make sure to purge the previously installed LLVM 7.0.1 before installing LLVM 8 using apt? I use jetson xavier nx. I did not purge LLVM 7.0.1, then I will try to clear it.Thank you!

Mikeworld-git commented 3 years ago

Thank you very much After uninstalling LLVM 7.0.1, it can now run successfully.