manoja328 / avr-project-ide

Automatically exported from code.google.com/p/avr-project-ide
1 stars 1 forks source link

deleted all open code! #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile and upload to arduino
2. hard lock system

What version of the product are you using? On what operating system?
alpha 43

Please provide any additional information below.
I was programming away in your nice ide, and when i went to upload it 
hardlocked my system.  Upon rebooting all my code was gone.  Luckily i had 
a recent copy on another machine.  I opened the files after i rebooted in 
notepad, and they were filled with spaces.

Also I have noticed that the updater has been asking me to update from 
alpha 40 to 43, even though I am running 43.  Odd.

I appologize there is no crash report or anything as windows rebooted as if 
nothing ever happened.  Does your app create any logs?

Original issue reported on code.google.com by beyondde...@gmail.com on 20 Oct 2009 at 12:40

GoogleCodeExporter commented 9 years ago
About the hardlock-spacing-thing: I was experiencing this repeatedly with the
original Arduino IDE using itself and an external Editor as well as once using 
this
IDE. The only common factors were the serial driver and avrdude. After 
re-installing
the Driver everything went smooth... Using Windows7 x64. 

The updater should update the version number if you go to 44 and fix that.

Original comment by mamage...@gmail.com on 20 Oct 2009 at 10:50

GoogleCodeExporter commented 9 years ago
I'm sorry this happened, I'm pretty sure your computer crashed right as the 
file is
being written to. I'm using the File.WriteAllText method, so it either succeeds
completely, fails completely with no changes made to the file, or it looks like 
in
this case, was in the middle of writing but was interrupted by the computer 
crashing.

I need more details about this, how many files were affected, the names of those
files, and also, the meaning of "hardlocked" (how does the computer behave in 
that
state, BSOD? mouse can't move? mouse moves but can't do anything useful?)

Also I'd suggest you do a disk check, my used to computer would slow down into a
freeze if anything attempts to read/write a bad sector. Running a full disk 
check
will fix this issue.

the 40 and 43 bug is a small mistake fixed in 44

Somethings to note:
Upon clicking build, first all open windows are saved, then the build begins. 
File
access should be fine since the steps happen one by one. Upon burning the hex 
file,
only the hex file is needed by avrdude, so avrdude doesn't touch your code file.

I added some code that reattempts to save the file up to 5 times if the
file.writealltext fails, also a 2ndary backup created during the save process 
that
only gets deleted if the original failed to save.

Original comment by frank.zhao.main@gmail.com on 21 Oct 2009 at 12:06

GoogleCodeExporter commented 9 years ago
It was the two files that made up my project that ended up erased (not empty, 
they 
were full of white space... which is especially odd)

I have had my pc hard lock a few times using the official arduino ide, it 
occurs when 
its writing the files to the arduino, so its most likely the driver.  I know 
the 
laptop is fine otherwise as i use it all day everyday without issues at work. 
And the 
disk is checked nightly.

When the machine hardlocked I couldn't do anything, the mouse was unresponsive 
and 
had to manually power cycle the machine to recover.

I'm going to try reinstalling the serial driver tomorrow, and see if i have any 
more 
issues.  Its not a big deal for me though as it happens once every 20-30 
uploads, and 
windows 7 comes back quick.

Thanks for your incredibly fast response, I'm sure in a few months this project 
will 
be the ideal dev enviroment for arduino :)

Original comment by beyondde...@gmail.com on 21 Oct 2009 at 1:47