srobo / competition-simulator

A simulator for Student Robotics Virtual Competitions
https://studentrobotics.org/docs/simulator/
MIT License
9 stars 2 forks source link

Supervisor log intermittently not saved with run-comp-match #282

Open WillB97 opened 3 years ago

WillB97 commented 3 years ago

Since run-comp-match uses a temporary directory and copies out the relevant files after the match, any files that are not copied are lost.

This is especially problematic since uncaught stack traces are not always printed to console before webots exits.

PeterJCLaw commented 3 years ago

This should already be handled -- in the case that the supervisor errors it will cause webots to exit with an error code. When that happens run-comp-match will print the log to the console itself before the temporary directory is cleared. Do you have a reproducible scenario where this doesn't happen?

WillB97 commented 3 years ago

Failing to print the errors is rather intermittent but the error for required libraries causes this most often.