carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.18k stars 3.61k forks source link

CARLA 0.9.13 under WSL2 with Windows 11 #5462

Open daniel-bogdoll opened 2 years ago

daniel-bogdoll commented 2 years ago

CARLA version: 0.9.13 Platform/OS: Ubuntu 20.04 under Windows 11 WSL2 Problem you have experienced:

./CarlaUE4.sh
4.26.2-0+++UE4+Release-4.26 522 0
Disabling core dumps.
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
CommonUnixCrashHandler: Signal=11
Malloc Size=131160 LargeMemoryPoolOffset=196744
Malloc Size=131160 LargeMemoryPoolOffset=327928
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault

What you expected to happen: A UE4 windows with CARLA should open

Steps to reproduce:

Other information (documentation you consulted, workarounds you tried): I would love to use the newly introduce native GUI capability of WSL2 under Windows 11. Is there anything I can to do make CARLA run? Obviously, I could also just run it from Windows, but I would also test the capabilities of WSL2. I found https://github.com/carla-simulator/carla/issues/589, but it didn't help.

is there any more information necessary? :)

xiaoran-roosevelt commented 1 year ago

@daniel-bogdoll hello! have you resolved it?i met the same trouble.

daniel-bogdoll commented 1 year ago

With recent versions (0.9.14 etc.) I don't get the error anymore, but I'm unable to run CARLA with the GPU within WSL 2. Obviously I can launch it in Windows, but my company computer does not allow me to change any Port settings, which is why I can't connect to it from inside WSL 2.

xiaoran-roosevelt commented 1 year ago

thx!i will have a try.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Daniel-ChenJH commented 5 months ago

I have exactly the same problem recently, with RTX3070TI LAPTOP, nvidia driver 552.12, cuda 11.5 and carla 0.9.14。Carla can run in Windows but not WSL2, with the same output. When I check by 'nvidia-smi -l 1' in WSL2, I find that there's no GPU usage from Carla. However, 'nvidia-smi' and 'nvcc -V' seems fine in my WSL2. I have tried like 'sudo prime-select nvidia' or starting Carla with '-prefernvidia' but the problem has not been solved.

./CarlaUE4.sh 4.26.2-0+++UE4+Release-4.26 522 0 Disabling core dumps. Signal 11 caught. Malloc Size=65538 LargeMemoryPoolOffset=65554 CommonUnixCrashHandler: Signal=11 Malloc Size=131160 LargeMemoryPoolOffset=196744 Malloc Size=131160 LargeMemoryPoolOffset=327928 Engine crash handling finished; re-raising signal 11 for the default handler. Good bye. Segmentation fault

Daniel-ChenJH commented 5 months ago

Is the problem caused by port forwarding or firewall of Windows? It seems that WSL2 needs to connect to 127.0.0.1 by the localhost on Windows.

eyabesbes commented 5 months ago

CARLA version: 0.9.13 Platform/OS: Ubuntu 20.04 under Windows 11 WSL2 Problem you have experienced:

./CarlaUE4.sh
4.26.2-0+++UE4+Release-4.26 522 0
Disabling core dumps.
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
CommonUnixCrashHandler: Signal=11
Malloc Size=131160 LargeMemoryPoolOffset=196744
Malloc Size=131160 LargeMemoryPoolOffset=327928
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault

What you expected to happen: A UE4 windows with CARLA should open

Steps to reproduce:

Other information (documentation you consulted, workarounds you tried): I would love to use the newly introduce native GUI capability of WSL2 under Windows 11. Is there anything I can to do make CARLA run? Obviously, I could also just run it from Windows, but I would also test the capabilities of WSL2. I found #589, but it didn't help.

is there any more information necessary? :)

Hi, I have also been facing the same error. I have already Carla installed on Windows but when I install carla on WSL2 I get the same error ? did you manage to resolve it ?