Recorder not always closing output files? (Causes exception file is still open, locked by Unity)

Has anyone else had problems with recorder failing to open a file to write?

I am creating an animation using Unity (on Windows). I hit “Play” to create all the animation clips. Sometimes I hit “Stop” half way through, fix a problem, hit “Play” again, but it fails on a file because it is locked. I suspect this is causing the output file to not be closed immediately. Sometimes I get an error that it failed to open the file to write because it is locked. When I go to Windows Explorer and try to delete the file it says Unity has it locked. I am guessing resources have not been cleaned up somehow reliably.

But I cannot repeat it reliably. Sometimes I just hit Stop and Play again and it works the second time. Other times I exit and restart Unity and that clears the problem up. Not sure if worth reporting a bug report since I have not been able to reliably repeat it. Just wondering if other people had hit it. Restarting Unity is my most reliable workaround.

Hey,

Thanks for the message.
I have not seen it before, but we’ll keep an eye out for the it.
You could always log the bug. Maybe our friendly neighbourhood QAs will be able to reproduce it reliably :slight_smile: