Windows SafeContract Deletion panic
The following nightly pipelines are failing on Windows due to the same panic condition.
Job #951043513 failed for 4ababbab:
Job #951043535 failed for 4ababbab:
Job #951043502 failed for 4ababbab:
panic: Critical error: (Sia v1.5.4, Release: testing) Failed to delete SafeContract from disk: remove C:\Windows\TEMP\SiaTesting\siatest\host\TestStorageProofEmptyContract\gctwr-OZBOMRHKFTUVC7NLFRQG\renter\contracts\c8eab2621b2fc91c1ad44b482ae258ac21b24b87f78c5d9d00c6423c06b55e06.roots: The process cannot access the file because it is being used by another process.
Please submit a bug report here: https://gitlab.com/NebulousLabs/Sia/issues
goroutine 20214 [running]:
gitlab.com/NebulousLabs/Sia/build.Critical(0xc0011d92e8, 0x2, 0x2)
C:/gitlab-runner/builds/pAgRwkvz/0/NebulousLabs/Sia/build/critical.go:24 +0x183
gitlab.com/NebulousLabs/Sia/modules/renter/proto.(*ContractSet).Delete(0xc0002ac190, 0xc00023d180)
C:/gitlab-runner/builds/pAgRwkvz/0/NebulousLabs/Sia/modules/renter/proto/contractset.go:77 +0xc3f
gitlab.com/NebulousLabs/Sia/modules/renter/contractor.(*Contractor).managedArchiveContracts(0xc000389880)
C:/gitlab-runner/builds/pAgRwkvz/0/NebulousLabs/Sia/modules/renter/contractor/update.go:70 +0x3ed
gitlab.com/NebulousLabs/Sia/modules/renter/contractor.(*Contractor).threadedContractMaintenance(0xc000389880)
C:/gitlab-runner/builds/pAgRwkvz/0/NebulousLabs/Sia/modules/renter/contractor/contractmaintenance.go:1024 +0x273
created by gitlab.com/NebulousLabs/Sia/modules/renter/contractor.(*Contractor).ProcessConsensusChange
C:/gitlab-runner/builds/pAgRwkvz/0/NebulousLabs/Sia/modules/renter/contractor/update.go:168 +0x747
FAIL gitlab.com/NebulousLabs/Sia/siatest/host 31.482s
Edited by Matthew Sevey