Closed Adimote closed 1 year ago
It looks like you've ended up paused, were you paused when you clicked restart? For me if the simulation is running then when I click restart the simulation starts immediately.
I'm also not sure this is something we've done -- I think you're just experiencing webots behaviour.
We dug into this a bit yesterday. It turns out to be to do with the lighting controller constructing a Supervisor
(robot) instance after the restart. That call never returned meanwhile the user-code doing a (Webots) Robot.step
also never returned. Together this seemed to deadlock the simulation.
This suggests that this is a bug in Webots, however the latest nightlies of Webots don't have this issue so it may be fixed already.
For completeness: it looks like this was probably https://github.com/cyberbotics/webots/issues/5279.
I'm actually not completely certain that that situation aligns with what we saw, given that in our case there wasn't a crash, however the symptoms are otherwise very similar and the fact that the issue we observed seems fixed in the nightlies does suggest that it's been fixed around the same time.
if you click the 'Reload World' icon:
It restarts the simulation, but it doesn't run the robot code
The log messages after a reload look like this: