Closed shreyask3107 closed 2 years ago
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?
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
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.
Do you have any update on this, otherwise I will close the issue in a couple of days.
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?