VS Arduino
>> >> Sketch won't upload after crash and Compile.vmps.xml corruption - SOLVED
https://www.visualmicro.com/forums/YaBB.pl?num=1570372151

Message started by FrankP on Oct 6th, 2019 at 2:29pm

Title: Sketch won't upload after crash and Compile.vmps.xml corruption - SOLVED
Post by FrankP on Oct 6th, 2019 at 2:29pm
VS2017/VM 1.1908.5

My system crashed overnight with several VS/VM windows open, and I had to physically turn off the PC to get it back. After it came up and I opened a Arduino sketch in VS, I got an error message saying VM couldn't open Compile.vmps.xml.  I looked at this file and it was obviously corrupted (all NULLs), so I deleted it, expecting it to be re-created on the next compile (it was).

However, the sketch still wouldn't upload, so I took another look and found the file 'Upload.vmps.xml' was also corrupted.  I retrieved previous copies of both the 'Compile' and 'Upload' files from my [shameless plug here] AJC Active Backup archive, and then all was well.

So, if you have strange behavior after a crash, you might try looking in the project's _vm folder for corrupted files.

Frank

Title: Re: Sketch won't upload after crash and Compile.vmps.xml corruption - SOLVED
Post by Visual Micro on Oct 6th, 2019 at 2:39pm
Never heard of this issue but restarting the ide after delteing the file would have allowed the recreate to happen. Opening or making active another project also drops the runtime cache.  It sounds like you might want to run chkdsk on your disk.

You can delete the _vm folder then close and restart the ide.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.