carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://carla-scenariorunner.readthedocs.io/en/latest/
MIT License
530 stars 362 forks source link

ScenarioRunner crashes when trying to spawn a new car at runtime. #1123

Open vollkornholztuer opened 1 week ago

vollkornholztuer commented 1 week ago

Describe our question or idea ScenarioRunner crashes when excecuting an OpenSCENARIO-1.0 file, which tries to spawn a new car while the simulation is already running. The Cars that spawn in the Init-section, and therefore are present from the beginning, work. It kind of works like this:

I run the .xosc with ScenarioRunner, the simulations starts with two cars (Ego and Target). The target car begins to drive as predefined, the Ego car is stationary. As soon as the new car is supposed to spawn, the new car is visible for a single frame but it crashes. The error message from the terminal sadly is not very descriptive (see screenshots).

Expected behavior The car should spawn and the simulation should keep running and finish at some point.

Screenshots and Screencasts The error message from the terminal, when the scenario is executed: Screenshot from 2024-10-18 12-15-02_edit

A video of the execution of the given OpenSCENARIO-File (see "Other resources"): Screencast from 10-18-2024 12:44:33 PM.webm

Desktop (please complete the following information):

Other resources My OpenSCENARIO 1.0-file: spawnDespawnTest0_copy.zip

vollkornholztuer commented 3 days ago

I've found the "--debug" command for the cli. This is the ouptut, when running the provided .xosc file: spawnDespawnText0_debug.txt

I'm trying to read it, but it's very cryptic. I probably won't understand it on my own.