3 minute read

Trouble Shooting Page

This page is a simple page to record various errors or tips you encounter when building your environment or coding.

please feel free to contribute.

  • You can contribute using the comment box below, open an issue in the repository directly, or whatever works best for you.
  • I always want this page to be enriching and helpful, and I’m always happy to be pointed out if I’m wrong.

Format

Topic:
How to do:
Reference:

Errors

1. COLMAP Build Error

Topic:
COLMAP 빌드 시 CUDA 관련 에러 발생
How to do:

cmake .. -GNinja # 이후,
cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75 # 75는 조절해야할 수도 있다.

Reference:
https://github.com/colmap/colmap/issues/1805
https://colmap.github.io/install.html


2. Macbook & Ubuntu 연결

Topic:
외부 컴퓨터에서 Ubuntu 접속
How to do:
ssh 연결
Vscode 연결


3. Python Import Error

Topic:
root directory에 존재하는 파이썬 클래스나 파일들이 import되지 않는 경우.
How to do:

# In terminal
export PYTHONPATH=$PYTHONPATH:/path/to/Your_package

4. GPU Select

Topic:
python script 실행 시 GPU 선택
How to do:

# In terminal
CUDA_VISIBLE_DEVICES=0,3 python3 your_train.py

5. libX11.so.6: cannot open shared object file: No such file or directory

Topic:
Error: libX11.so.6: cannot open shared object file: No such file or directory
How to do:

# In terminal
apt-get update
apt-get install -y libsm6 libxext6 libxrender-dev

6. libGL.so.1, libgthread-2.0.so.0 Error

Topic:
OSError: libGL.so.1: cannot open shared object file: No such file or directory &&
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
How to do:

# In terminal
apt-get update
apt-get install -y libgl1-mesa-glx
apt-get install -y libglib2.0-0

Reference:
Link


7. ROS2 can not find *.launch.py

Topic:
특정 패키지내의 launch folder내의 launch file을 찾지 못할 때
How to do:

# In your package's CMakeLists.txt
# Add below code
install(DIRECTORY
  	launch
  	DESTINATION share/${PROJECT_NAME})

8. Docker container에서 시각화가 되지 않는 경우(Open3D)

Topic:
Error:

[Open3D WARNING] GLFW Error: X11: Failed to open display  [19/04 08:11:52]
[Open3D WARNING] Failed to initialize GLFW [19/04 08:11:52]
[Open3D WARNING] [DrawGeometries] Failed creating OpenGL window. [19/04 08:11:52]


How to do:

# In local terminal
echo $DISPLAY
# -> 1 or 0 ...etc
# In your container
# maybe it can't see "echo $DISPLAY" 's result
# so,

export DISPLAY=:1 # apply your number

9. Download folder with SSH

Topic:
For downloading files from a remote PC via SSH
How to do:

scp -r leejaewon@165.xxx.xxx.xxx:/media/leejaewon/ci_leejaewon/SHARE/data_folder /home/otherPC/leejaewon/

10. ros2 bag file compression

Topic:
ros2 bag file compression with already recorded ros2 bag file
How to do:

ros2 bag convert --input rosbag2_2024_06_12-14_17_31/ --output-options convert.yaml

In convert.yaml

output_bags:
- uri: compressed_bag
  all_topics: true
  all_services: true
  compression_mode: file
  compression_format: zstd

11. GPG Key error(with sudo apt update is failed)

Topic:
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository ‘https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
How to do:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC

12. libEGL.so.1: cannot open shared object file

Topic:
ImportError: libEGL.so.1: cannot open shared object file: No such file or directory
How to do:

sudo apt-get install freeglut3-dev

13. Ubuntu 모니터 자동 배치 xrandr

Topic:
Ubuntu에서 모니터 위치를 sh나 명령어를 통해 한 번에 수정하는 방법
HDMI입력이 바뀔 때 이전 모니터의 위치 설정이 계속 망가져서 대안으로 사용함.
How to do:

xrandr -q

를 통해 모니터 상태 확인

# In your_shell.sh
# HDMI-0 모니터 설정
xrandr --output HDMI-0 --mode 1920x1080 --rate 60 --pos 1920x0

# DP-0 모니터 설정
xrandr --output DP-0 --mode 2240x1400 --rate 60 --pos 790x1080

# DP-3 모니터 설정
xrandr --output DP-3 --mode 1920x1080 --rate 60 --pos 0x0 --primary

# None-1-1 모니터 설정
xrandr --output None-1-1 --mode 2240x1400 --rate 60

echo "Monitor settings applied successfully."

0. Your title

Topic:
text
How to do:

code or your text

Reference:
text


Leave a comment