carla
carla copied to clipboard
Random SIGSEGV in go_to_location() for AI Walkers
Setup Describe the setup you are using to run CARLA along with its version:
- CARLA version: 0.9.12
- Platform: Ubuntu22.04
- Python version: 3.7
- GPU: Nvidia 4090
- GPU Drivers: 560.35.03
Describe the bug When spawning AI walkers and sending them to random navigation points via go_to_location(), the program intermittently crashes with an unhandled SIGSEGV (segmentation fault). The crash occurs after successful walker/controller spawning but during pathfinding execution, suggesting an internal CARLA navigation mesh issue.
Steps to reproduce run the python code
import carla
import random
client = carla.Client('localhost', 2000)
world = client.get_world()
map = world.get_map()
spawn_point = random.choice(map.get_spawn_points())
print(map.name, spawn_point)
walker_bp = world.get_blueprint_library().find('walker.pedestrian.0001')
ai_bp = world.get_blueprint_library().find('controller.ai.walker')
walker = world.try_spawn_actor(walker_bp, spawn_point)
world.tick()
walker_controller = world.try_spawn_actor(ai_bp, spawn_point, walker)
if walker:
world.tick()
walker_controller.start()
try:
transform = world.get_random_location_from_navigation()
except Exception as e:
print('no random location')
transform = carla.Transform()
print(transform)
walker_controller.go_to_location(transform)
print('success set destination')
Screenshots