CTL+C not exiting cleanly and saving training
I am a total python newb so that might be a factor but I'm happily training agents using Python 3.6.4 through an Anaconda Prompt and they're working fine.
Now I'm trying to use imitation learning and need to sometimes terminate the training early, instead of letting it run its course.
This is the error I get:
forrtl: error (200): program aborting due to control-C event Image PC Routine Line Source libifcoremd.dll 00007FFDAFF994C4 Unknown Unknown Unknown KERNELBASE.dll 00007FFDEF127EDD Unknown Unknown Unknown KERNEL32.DLL 00007FFDF2131FE4 Unknown Unknown Unknown ntdll.dll 00007FFDF226EFC1 Unknown Unknown Unknown
Control + BREAK does the same.....
Hi @traveltrousers,
Thank you for bringing this issue to our attention. Unfortunately functionality across different Windows versions and set-ups are not consistent. Can you tell us a little more about your Windows version?
This is a duplicate of #980 so I'm closing it.
This bug has been fixed with https://github.com/Unity-Technologies/ml-agents/pull/1558. The error message
forrtl: error (200): program aborting due to control-C event
Image PC Routine Line Source
libifcoremd.dll 00007FFDAFF994C4 Unknown Unknown Unknown
KERNELBASE.dll 00007FFDEF127EDD Unknown Unknown Unknown
KERNEL32.DLL 00007FFDF2131FE4 Unknown Unknown Unknown
ntdll.dll 00007FFDF226EFC1 Unknown Unknown Unknown
still exist, which is related to this stackoverflow https://stackoverflow.com/questions/42653389/ctrl-c-causes-forrtl-error-200-rather-than-python-keyboardinterrupt-exception. Our fix get around this error by adding another ctrl-c event handler which saves the model before this error.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.