I followed following options:
- Remove all the print statements.
- Removed extra file writing (other than trialhandling csv file).
I tried above two options with no avail. The window get freezed randomly at any time. I don’t know what could be the solution. Please share the solution if you have faced the similar issue and was able to resolve it.