I am capturing screenshots at every time step in unity using ScreenCapture.CaptureScreenshot. I am able to get the shots captured and saved in a certain folder but after approximately 50 timesteps the unity crashes and I get an error : Failed to capture the screen shot. Sometimes, unity crashes after 50 time-steps and sometimes after 70 time-steps, so crashing is random. P.S I am running my unity simulation on the guest VMware virtual machine, I have already looked into the storage and it is more than needed.
screenshot
in it but the body clearly shows it might be an entirely different problem. Therefor off topic. Could as well be a problem with VMware, drivers issues, not something we could much go on about. stackoverflow might be better suited? If OP can pinpoint to something that's related to screenshots, or his code then maybe. \$\endgroup\$