aiwc / test_world

AI World Cup simulation environment
MIT License
7 stars 12 forks source link

Supervisor fails to run deeply nested executables #55

Closed bitsandscraps closed 5 years ago

bitsandscraps commented 5 years ago

The limit seems to be 4.

examples/A/executable.py -> WORKS PERFECT examples/A/B/executable.py -> FAILS with the following error

[supervisor] execve failed: No such file or directory [supervisor] terminate called after throwing an instance of 'std::runtime_error' [supervisor] what(): one of the given executables does not exist, or cannot run

chshong commented 5 years ago

Sorry for the late reply. We were able to reproduce the issue and fixed it.

The issue was on parsing the executable path in 'controllers/supervisor/game.cpp'. In Lines 422 and 433, replacing 'ti.executable' with 'p_exe.filename().string()' will resolve the issue.

This fix will be applied to our repository on next release.

Thank you for the notification.