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

Pangolin X11: Failed to open X display #13

Closed
shreyask3107 opened this issue May 14, 2022 · 4 comments
Closed

Pangolin X11: Failed to open X display #13

shreyask3107 opened this issue May 14, 2022 · 4 comments

Comments

@shreyask3107
Copy link

Hi, on running run_dmvio.py on the euroc dataset, I get the error saying
Pangolin X11: Failed to open X display,

Could you please let me know how I can resolve this?

@lukasvst
Copy link
Owner

Sometimes this error can be printed but the program will still work fine.
Does the code work without GUI (just pass nogui=1)?
If not, can you post the command you run and the full commandline output?

@shreyask3107
Copy link
Author

shreyask3107 commented May 24, 2022

Thanks for pointing that out. Looks like the problem is not with Pangolin X11.
I got the following error:

terminate called after throwing an instance of 'std::runtime_error'
what(): Pangolin X11: Failed to open X display
Aborted (core dumped)
Executing: cp /home/shreyas/dm_vio_test/results/dmvioresult-euroc-2022-05-24--17-40-16/mav_V2_03_difficult_0/result.txt /home/shreyas/dm_vio_test/results/dmviore
sult-euroc-2022-05-24--17-40-16/results/mav_V2_03_difficult_0.txt
cp: cannot stat '/home/shreyas/dm_vio_test/results/dmvioresult-euroc-2022-05-24--17-40-16/mav_V2_03_difficult_0/result.txt': No such file or directory
Executing: cp /home/shreyas/dm_vio_test/results/dmvioresult-euroc-2022-05-24--17-40-16/mav_V2_03_difficult_0/resultKFs.txt /home/shreyas/dm_vio_test/results/dmvi
oresult-euroc-2022-05-24--17-40-16/kfres/mav_V2_03_difficult_0.txt
cp: cannot stat '/home/shreyas/dm_vio_test/results/dmvioresult-euroc-2022-05-24--17-40-16/mav_V2_03_difficult_0/resultKFs.txt': No such file or directory

This error says there is no results.txt file. However, isn't it supposed to be created by the code. Have I messed up any configuration settings? Your help will be really appreciated.

For your reference, the command that I ran is:
python3 run_dmvio.py --output=console --dataset=euroc --dmvio_settings=euroc.yaml --withgui --iter=1 --only_seq=10

@lukasvst
Copy link
Owner

lukasvst commented Jun 1, 2022

The output No such file or directory just means that DM-VIO did write a results file which is normal when it crashed.

Could you please post the full output of the program, not just the last couple of lines? Especially in the beginning of the program there is a lot of relevant information printed which I can use to debug.

Also, can you try to run the following and let me know if it works? python3 run_dmvio.py --output=console --dataset=euroc --dmvio_settings=euroc.yaml --iter=1 --only_seq=10
This will run without GUI, so we can see if the issue is with Pangolin.

@lukasvst
Copy link
Owner

Do you have any update on this, otherwise I will close the issue in a couple of days.

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