Carla [0.9.2] getting slower after each repetition of scenario_runner
See original GitHub issueIn scenario_runner --version 0.1. I found that the FPS of Carla Server drops after every repetition. I think the problem being that actors are not properly destroyed from the server. After the end of scenario I get this output:
LIFETIME: WARNING! the following objects were not destructed.
LIFETIME: Actor 168 (sensor.other.collision) still alive.
LIFETIME: tcp client 94 still alive.
LIFETIME: Actor 163 (vehicle.tesla.model3) still alive.
LIFETIME: tcp client 89 still alive.
LIFETIME: tcp client 88 still alive.
LIFETIME: Actor 159 (sensor.other.collision) still alive.
LIFETIME: Actor 155 (vehicle.tesla.model3) still alive.
LIFETIME: Actor 152 (sensor.other.collision) still alive.
LIFETIME: tcp client 82 still alive.
LIFETIME: Actor 151 (sensor.other.collision) still alive.
LIFETIME: Actor 148 (vehicle.nissan.micra) still alive.
LIFETIME: Actor 147 (vehicle.tesla.model3) still alive.
LIFETIME: tcp client 77 still alive.
LIFETIME: Actor 144 (sensor.other.collision) still alive.
LIFETIME: tcp client 76 still alive.
LIFETIME: Actor 143 (sensor.other.collision) still alive.
LIFETIME: Actor 167 (sensor.other.collision) still alive.
LIFETIME: Actor 139 (vehicle.tesla.model3) still alive.
LIFETIME: tcp client 28 still alive.
LIFETIME: Actor 164 (vehicle.nissan.micra) still alive.
LIFETIME: Actor 120 (sensor.other.collision) still alive.
LIFETIME: Actor 55 (sensor.other.collision) still alive.
LIFETIME: Actor 156 (vehicle.nissan.micra) still alive.
LIFETIME: Actor 136 (sensor.other.collision) still alive.
LIFETIME: tcp client 23 still alive.
I am doing actor.destroy()
and actor = None
after each repetition and they are being destroyed (I cannot see them in the server) but the memory still not being released and I get above output.
Could someone help me how to destroy the actors properly??
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Carla 0.9.2 gets slower after every iteration of scenario_runner
I am running Carla in benchmark mode with fps = 10hz and after every repetition framerate drops (frame rate = 3 Hz after...
Read more >CARLA Talks 2020 - Introducing ScenarioRunner - YouTube
Start creating scenarios and routes to train or validate your AD stacks using the ScenarioRunner module.
Read more >Release Notes - CARLA ScenarioRunner
Fixed a bug with repetitions / scenario groups causing the simulation to crash after the second one. Fixed use of OSC Parameters as...
Read more >CARLA ScenarioRunner - Read the Docs
Sign up for our newsletter to get our latest blog updates delivered to your inbox weekly. Email. Subscribe.
Read more >1 Simulation Framework for Testing Autonomous Vehicles in a ...
purpose, a realistic virtual simulation environment was created using the CARLA. Simulator. Other edge case scenarios such as distracted pedestrians, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m seeing the same problem when using Carla from the normal client API.
Is this problem solved?