microsoft / AirSim-Drone-Racing-Lab

A framework for drone racing research, built on Microsoft AirSim.
MIT License
191 stars 43 forks source link

Cannot execute through docker #2

Open k0286 opened 4 years ago

k0286 commented 4 years ago

Hello,

I follow the instruction trying to execute ADRL through docker, but don't get success.

my environment

I modified run_docker_image.sh to fit my docker version

docker run -it \
    --gpus all \
   ....
   ....

When I execute run_docker_image.sh, I will get the error

Trying to force OpenGL RHI but the project does not have it in TargetedRHIs list.

So I try to change the base image to nvidia/vulkan, remove the parameter -opengl in run_docker_image.sh.

When I execute run_docker_image.sh, a black window will pop and terminate immediately.

And the following is the log

LogVulkanRHI: Error: VulkanRHI::vkGetPhysicalDeviceSurfaceFormatsKHR(Device.GetPhysicalHandle(), Surface, &NumFormats, nullptr) failed, VkResult=-3
 at /home/ue4/ue_build/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:165 
 with error VK_ERROR_INITIALIZATION_FAILED
Failed to find symbol file, expected location:
"/home/airsim_user/ADRL/ADRL/ADRL/Binaries/Linux/ADRL.sym"
Fatal error: [File:/home/ue4/ue_build/Engine/Source/Runtime/VulkanRHI/Private/VulkanUtil.cpp] [Line: 786] 
VulkanRHI::vkGetPhysicalDeviceSurfaceFormatsKHR(Device.GetPhysicalHandle(), Surface, &NumFormats, nullptr) failed, VkResult=-3
 at /home/ue4/ue_build/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:165 
 with error VK_ERROR_INITIALIZATION_FAILED
[2020.09.03-03.01.16:267][  0]LogCore: Error: appError called: Fatal error: [File:/home/ue4/ue_build/Engine/Source/Runtime/VulkanRHI/Private/VulkanUtil.cpp] [Line: 786] 
VulkanRHI::vkGetPhysicalDeviceSurfaceFormatsKHR(Device.GetPhysicalHandle(), Surface, &NumFormats, nullptr) failed, VkResult=-3
 at /home/ue4/ue_build/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:165 
 with error VK_ERROR_INITIALIZATION_FAILED
0x00000000056703ab ADRL!UnknownFunction(0x54703aa)
0x0000000005641adc ADRL!UnknownFunction(0x5441adb)
0x0000000005671d78 ADRL!UnknownFunction(0x5471d77)
0x0000000005671b8c ADRL!UnknownFunction(0x5471b8b)
0x0000000005676ee8 ADRL!UnknownFunction(0x5476ee7)
0x0000000005b17c0d ADRL!UnknownFunction(0x5917c0c)
0x00000000040237c6 ADRL!UnknownFunction(0x3e237c5)
0x0000000006558700 ADRL!UnknownFunction(0x63586ff)
0x000000000606403f ADRL!UnknownFunction(0x5e6403e)
0x0000000002d44012 ADRL!UnknownFunction(0x2b44011)
0x0000000002d3a3aa ADRL!UnknownFunction(0x2b3a3a9)
0x000000000765e11b ADRL!UnknownFunction(0x745e11a)
0x00007f20538a4b97 libc.so.6!__libc_start_main(+0xe6)
0x0000000002d2e029 ADRL!UnknownFunction(0x2b2e028)

Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554

I have no idea how to handle this situation.

Melvin-leo commented 3 years ago

[2020.10.08-08.03.36:522][ 0]LogExit: Executing StaticShutdownAfterError Malloc Size=131160 LargeMemoryPoolOffset=196744 Malloc Size=131160 LargeMemoryPoolOffset=327928 Malloc Size=131160 LargeMemoryPoolOffset=459112 Malloc Size=77397 LargeMemoryPoolOffset=536533 Engine crash handling finished; re-raising signal 6 for the default handler. Good bye. Aborted (core dumped)

I have the same error too.

AlessandroSaviolo commented 3 years ago

[2020.10.08-08.03.36:522][ 0]LogExit: Executing StaticShutdownAfterError Malloc Size=131160 LargeMemoryPoolOffset=196744 Malloc Size=131160 LargeMemoryPoolOffset=327928 Malloc Size=131160 LargeMemoryPoolOffset=459112 Malloc Size=77397 LargeMemoryPoolOffset=536533 Engine crash handling finished; re-raising signal 6 for the default handler. Good bye. Aborted (core dumped)

I have the same error too.

Hi! I have a similar problem everytime I have an Airsim instance already running. I have to kill it manually using "pkill". If it's not your case, another attempt may be to run the simulator headless. Hope it helps!

Melvin-leo commented 3 years ago

It did not work. Tried both ways but still crashes with core dump. My laptop specification is Ubuntu 18.04 and RTX 2070. Thank you so much for your advice though!