Visual Studio and Atmel Studio Temp File Explosion

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel Studio 7, Windows 8: 

 

For the last year or so, I've been having issues with my computer writing massive amounts of temp files. Lately it has gotten extremely bad, writing a up to 10 gigs of temp files a day. I could see these 3k files popping up like flies on...old food. When I profiled the processes to see what was creating the temp files, the resource said msiexec. Some reading online said there could be a trojan under that name, but it was in the sys32 folder etc, so I looked deeper - it was Visual Studio constantly trying to install something even when it wasn't running. Cancelling the process, it would just turn back on automatically. If I rebooted, it wouldn't start this temp file business until I launched studio. Then I thought about when the temp files started to be an issue - it was around the time I installed AS7...

 

After my last reboot, I found nothing running and found that there were no files being added to either temp. Then I started Atmel Studio, and the temp file madness ensued again. I closed AS7 the temp files were still piling in, so I rebooted again, and cleaned out the temp directory under User and Windows, and now AS7 won't run. This is the first time I have cleaned the User temp location.

I had constant problems with crashes and now this. Full deletion of temp files stopped the program from being able to start-up again? Seems odd but I'm wondering if the installation was somehow corrupt, causing it to try to update, or is that update just part of running? I think gigs of temp files that don't go away (hence not temp) that I've had to manually delete for months is pretty absurd.

 

Does it make sense to clean all VS components off of my machine and then do a clean install of AS7? There are so many visual studio components I'm not sure what to even remove? I don't use VS for anything else, I use Eclipse, but I'm worried there might be some program that uses a VS component under the hood that I'm not aware of - or is that unlikely? What would have caused this? A bad install? Overlap from older VS components? Any insight would be helpful.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Before going through the hassle of removing and reinstalling AS7 and VS, I'd suggest you check for updates on both. I know a little while ago there was an update for either VS or AS7 and it broke AS7, after which Atmel released an update for AS7 that fixed the problem, so it's worth checking that everything if 100% the 'latest and greatest' first, for one thing it'll be quicker to install any remaining updates than it will to uninstall and re-install! If that doesn't work then it might well be worth going down the long road... 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm pretty sure I have the most recent build, but real question is if I can't launch Atmel Studio to check for updates, what's the best way to update it? 

EDIT : The site has a build 1118 from September - nothing under the AS7 folder seems to have changed since 8/23 so it might not be the latest - but Add/Remove Programs on Windows won't actually open it either to do " repair" so I guess I'm going to have to actually download the latest installer and run it. 

 

Last Edited: Thu. Nov 24, 2016 - 04:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah, you can't even run it!? Simply running the latest version's .msi which can be downloaded from Atmel's website :) As far as checking what version you have installed without being able to run the program itself, go into Control Panel and check your installed programs list, it should tell you what version of AS7 you have.

 

Edit: You edited your post as I was typing, but yeah - running the latest version .msi might do the trick. It'll be worth checking VS for updates too.

Last Edited: Thu. Nov 24, 2016 - 04:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Howard_Smith wrote:
I know a little while ago there was an update for either VS or AS7 and it broke AS7, after which Atmel released an update for AS7 that fixed the problem, so ...
Some history and a Hyper-V work-around :

https://www.avrfreaks.net/forum/visual-studio-2015-update-1-incapacitates-atmel-studio-7#comment-1955576

Client Hyper-V is available in Windows 8 and 10 Pro (and sub)

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Howard_Smith wrote:
Ah, you can't even run it!?
No, it won't start.

Howard_Smith wrote:
Simply running the latest version's .msi which can be downloaded from Atmel's website
 Yep that file...
Howard_Smith wrote:
:)
:(

 

Also, Add / Remove programs won't modify anything Visual Studio or Atmel Studio related now... 

 

Last Edited: Fri. Nov 25, 2016 - 04:14 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm downloading the latest offline installer instead of the web installer to see what it will do...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

bosleymusic_com wrote:

Also, Add / Remove programs won't modify anything Visual Studio or Atmel Studio related now... 

 

That's not good, typically means the OS has somehow lost track of the program and thus doesn't know how to uninstall or repair it. A potential workaround to get it to uninstall is to do so in safe mode. If that doesn't work, then what I would do is try a system restore, and if that didn't work then I'd just re-install the OS and start from a clean PC. Obviously this means losing everything currently on your PC, but if it's a case of you need AS7 installed and working, or you don't mind losing everything currently on your PC, then it might be the way to go...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Howard_Smith wrote:
That's not good, typically means the OS has somehow lost track of the program and thus doesn't know how to uninstall or repair it.

Microsoft

Fix problems that block programs from being installed or removed

Article ID: 17588 - Last Review: Jun 7, 2016 - Revision: 15

https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed

IIRC, there's either Atmel Support on how to uninstall Atmel Studio, or, a post in a thread "somewhere" here.

Another interim action is an uninstaller; others like the following :

VS Revo Group

Download Revo Uninstaller Freeware - Free and Full Download - Uninstall software, remove programs, solve uninstall problems

http://www.revouninstaller.com/revo_uninstaller_free_download.html

There are four uninstallers in PortableApps :

PortableApps.com

Utilities

http://portableapps.com/apps/utilities

Edit : PortableApps

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Fri. Nov 25, 2016 - 07:50 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:
Fix problems that block programs from being installed or removed Article ID: 17588 - Last Review: Jun 7, 2016 - Revision: 15 https://support.microsoft.com/en...
Trying this now... the offline installer didn't start, which blows my mind since it's a separate executable.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Howard_Smith wrote:
Obviously this means losing everything currently on your PC, but if it's a case of you need AS7 installed and working, or you don't mind losing everything currently on your PC, then it might be the way to go...
I went and bought another PC for the time being, because time is money and spending any more hours on this is an issue I can't afford right now. I'll fill in when I go back and try to figure out the problem. As a side note, the third party vs installer wasn't allowed to create files in temp that it needed to even after restart, and run as admin. The Atmel logo chases me in my nightmares...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

bosleymusic_com wrote:
I went and bought another PC for the time being, ...
A second copy of Windows is less expensive than a second PC though there is the very significant advantage of a second display with another PC.

Virtual machines enable simultaneous development environments with each of those configurable.

Vagrant by HashiCorp

About

https://www.vagrantup.com/about.html

Vagrant is a tool for building complete development environments. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases development/production parity, and makes the "works on my machine" excuse a relic of the past.

...

Atlas by HashiCorp

Discover Vagrant Boxes

https://atlas.hashicorp.com/boxes/search

(select hyperv)

(note "Windows 8.1 Enterprise evaluation copy")

 

"Dare to be naïve." - Buckminster Fuller