carla-simulator / carla

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

Carla crash with quality mode low and RenderOffScreen #7675

Closed Ahmed-Radwan094 closed 1 month ago

Ahmed-Radwan094 commented 5 months ago

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:

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 commented 5 months ago

Which maps are you trying?

Ahmed-Radwan094 commented 5 months ago

Town10, town04

Blyron commented 5 months ago

Are you using HD_Opt versions?

Ahmed-Radwan094 commented 5 months ago

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

Blyron commented 5 months ago

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

Ahmed-Radwan094 commented 5 months ago

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

Ahmed-Radwan094 commented 5 months ago

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 commented 5 months ago

Is there any additional information I can provide?

Blyron commented 2 months ago

Logs on the crash. Sorry for being late, we are busy with ue5 migration