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

Carla crash with quality mode low and RenderOffScreen #7675

Open
Ahmed-Radwan094 opened this issue May 17, 2024 · 8 comments
Open

Carla crash with quality mode low and RenderOffScreen #7675

Ahmed-Radwan094 opened this issue May 17, 2024 · 8 comments

Comments

@Ahmed-Radwan094
Copy link

CARLA version: 0.9.15
Platform/OS: linux 20.04, NVIDIA GeForce RTX 3080, Driver Version: 535.171.04 CUDA Version: 12.2
The problem you have experienced:

  • Carla repeatedly crashes when running in low-quality mode and rendering off-screen (./CarlaUE4.sh -quality-level=Low -RenderOffScreen).
  • I reproduced the same issue with different machines (GPUs and Cuda versions) running the same OS.
  • On the other hand, Carla doesn't crash with ( ./CarlaUE4.sh -quality-level=Low, ./CarlaUE4.sh, ./CarlaUE4.sh -RenderOffScreen) while running the exact same code.

Can someone direct me to what could be the issue as running Carla in low quality with no screen would help me train RL agents more efficiently?

Thank you.

@Blyron
Copy link
Contributor

Blyron commented May 17, 2024

Which maps are you trying?

@Ahmed-Radwan094
Copy link
Author

Ahmed-Radwan094 commented May 17, 2024

Town10, town04

@Blyron
Copy link
Contributor

Blyron commented May 17, 2024

Are you using HD_Opt versions?

@Ahmed-Radwan094
Copy link
Author

Yes, as I remove some few layers from the map.

@Blyron
Copy link
Contributor

Blyron commented May 17, 2024

NVIDIA Drivers?
Could you share the script you are using to use maps? are you using sensor.imagetodisk function?

@Ahmed-Radwan094
Copy link
Author

Ahmed-Radwan094 commented May 17, 2024

NVIDIA Driver Version: 535.171.04
No, I don't use image to disk.

@Ahmed-Radwan094
Copy link
Author

Ahmed-Radwan094 commented May 17, 2024

self.world = self.client.load_world(self.config['carla']['desired_map'])

self.world.unload_map_layer(carla.MapLayer.Props)

self.world.unload_map_layer(carla.MapLayer.Foliage)

traffic_lights_in_the_map = self.world.get_environment_objects(carla.CityObjectLabel.TrafficLight)

traffic_lights_in_the_map_ids = {traffic_light.id for traffic_light in traffic_lights_in_the_map}

self.world.enable_environment_objects(traffic_lights_in_the_map_ids, False)

poles_in_the_map = self.world.get_environment_objects(carla.CityObjectLabel.Poles)

poles_in_the_map_ids = {pole.id for pole in poles_in_the_map}

self.world.enable_environment_objects(poles_in_the_map_ids, False)

self.map = self.world.get_map()

@Ahmed-Radwan094
Copy link
Author

Is there any additional information I can provide?

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