ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

CTL+C not exiting cleanly and saving training

Open traveltrousers opened this issue 8 years ago • 4 comments

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.....

traveltrousers avatar Apr 05 '18 16:04 traveltrousers

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?

awjuliani avatar Jun 28 '18 21:06 awjuliani

This is a duplicate of #980 so I'm closing it.

xiaomaogy avatar Dec 17 '18 23:12 xiaomaogy

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.

xiaomaogy avatar Jan 08 '19 01:01 xiaomaogy

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.

lock[bot] avatar Jan 08 '20 03:01 lock[bot]