unstable cuda visual profiler failures due to file write permission file write permission of unknown

cuda visual profile failed with the following error:
File write operation failed

Failed while flushing trace record buffers

File write operation failed

Failed while flushing trace record buffers

the application runs fine without visual profiler.

It could work again after shutdowning/startup a few times of cuda visual profile, and changed visual profiler’s temp working folder permissions.

I don’t have a clue of which file and folder would cause the problem.

thanks for your help in advance.