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

Error with the DISPLAY environment variable #5

Open
GinWeng opened this issue Dec 16, 2021 · 1 comment
Open

Error with the DISPLAY environment variable #5

GinWeng opened this issue Dec 16, 2021 · 1 comment

Comments

@GinWeng
Copy link

GinWeng commented Dec 16, 2021

Hi there, thanks for providing the code to test. However, I got an issue running the code.

==================================================================

Message=index 0 is out of bounds for axis 0 with size 0
Source=F:\Capstone\algorithms\range_mcl\src\utils.py
StackTrace:
File "F:\Capstone\algorithms\range_mcl\src\utils.py", line 340, in load_poses_kitti
inv_frame0 = np.linalg.inv(poses[0])
File "F:\Capstone\algorithms\range_mcl\src\main_range_mcl.py", line 49, in (Current frame)
map_poses = load_poses_kitti(map_pose_file, map_calib_file)

======================================================================

I tried to search for the GLFWError 65544 but none of the solutions seems to work. Is there anything idea what is happening?

Regards
Jimmy

@Chen-Xieyuanli
Copy link
Member

Hey @GinWeng, thanks for using our code.

It seems that you are using a remote or virtual machine which leads to an OpenGL issue.

So far, we have no solution for running in the remote or virtual environment.

I will just put your original log here, which explicitly indicates the error, and see whether others have any solutions.

==================================================================
ubuntu@windowsOfJin:/mnt/f/Capstone/algorithms/range_mcl/src$ python3 main_range_mcl.py
INFO - 2021-12-16 14:47:17,664 - acceleratesupport - OpenGL_accelerate module loaded
INFO - 2021-12-16 14:47:17,667 - arraydatatype - Using accelerated ArrayDatatype
Load mesh map and initialize map module...
/home/ubuntu/.local/lib/python3.8/site-packages/glfw/init.py:834: GLFWError: (65544) b'X11: The DISPLAY environment variable is missing'
warnings.warn(message, GLFWError)
Traceback (most recent call last):
File "main_range_mcl.py", line 54, in
map_module = MapModule(map_poses, map_file)
File "/mnt/f/Capstone/algorithms/range_mcl/src/map_module.py", line 32, in init
window = OffscreenWindow(show=False)
File "/mnt/f/Capstone/algorithms/range_mcl/src/map_renderer/offscreen_window.py", line 13, in init
if not glfw.init(): raise RuntimeError("Unable to initialize glfw.")
RuntimeError: Unable to initialize glfw.

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

2 participants