Pages: [1]   Go Down
Author Topic: Enormous log files if you unplug the board  (Read 516 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you unplug the board while the serial monitor is running, then you will get a never-ending stream of IO exceptions, burning 100% CPU and filling your drive.

I left it in this state overnight and it wrote a 30 GB log file(!), filled my hard drive, which caused my text editor to overwrite my program with an empty file, caused Arduino to silently crash on startup, and killed my dog.  These log files seem to persist forever until you delete them, so less technical users could be getting even more screwed by this.

At the very least, there should be a timeout that limits this console spam to once a second or so.

I found this year-old bug report about the problem:  http://code.google.com/p/arduino/issues/detail?id=229
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmm - Yeah thankfully I have never done this but I can see myself doing it at some point.

Someone might take notice now it's been unearthed again.
Logged

Pages: [1]   Go Up
Jump to: