I am using VS Code running a python script that is processing some data and saving it to a .csv-file. OS: Ubuntu 22.04.4 LTS, running in VMware Workstation 16 Player (Host: Win 10). Unfortunately, on some saves it deadlocks my virtual machine. When I go to the details window in Windows Task Manager, it says the process is in a deadlock and shows me two threads of the VM waiting for each other. csvDF = csvDF[csvDF.index < i + 1] cutAt = path.find("temperatures_matched") path = path[:cutAt] + path2TestCSV #csvDF.to_csv(path, index = False) np.savetxt(path, csvDF, fmt = '%s', delimiter= ',', header="minTemp,maxTemp,mean,matchedThermalArray") #time.sleep(0.5) #csvDF = pd.DataFrame(array, columns = csvColumns) I already tested a delay after saving and switching from pd's to_csv() to np's savetext(), unfortunately without success. Continue reading...