Skip to content

Random SIGSEGV in go_to_location() for AI Walkers #8805

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

Open
payprays opened this issue Apr 1, 2025 · 0 comments
Open

Random SIGSEGV in go_to_location() for AI Walkers #8805

payprays opened this issue Apr 1, 2025 · 0 comments

Comments

@payprays
Copy link

payprays commented Apr 1, 2025

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

Image

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

1 participant