jung6717 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Serial monitor window writes huge error-log to disk after unplugging board #229

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Start up the IDE on windows
1.Open to serial monitor and connect to a board that send a stream of data
2.Unplug the board and leave the serial monitor window open

The output panel of the IDE prints an endless stream of IOExceptions until
the serial monitor is closed. The same messages are written to a file on
the harddisk  
\Users\<NameOfUser>\AppData\Local\Temp\console<SomeRandomNumber>.tmp
The size of the file increases very fast (User reports 10GB written in one
night). 

What version of the Arduino software are you using? 
Found this error on 0017 and 0018
On what operating system?
XP and Vista 32 bit (at least)
Which Arduino board are you using?
Any board

Please provide any additional information below.
Solution : 
Close the Serial Port when an IOException is thrown in method
processing.app.Serial.serialEvent(SerialPortEvent)

Original report is here
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1271286720

Original issue reported on code.google.com by e.fa...@wayoda.org on 19 Apr 2010 at 9:45

GoogleCodeExporter commented 8 years ago
I was just doing a disk space audit and discovered I had a 14.2 gigabyte 
stderr.txt file containing nothing but the following output:

Error inside Serial.serialEvent()
java.io.IOException: Bad file descriptor in nativeavailable
        at gnu.io.RXTXPort.nativeavailable(Native Method)
        at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532)
        at processing.app.Serial.serialEvent(Serial.java:258)
        at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
        at gnu.io.RXTXPort.eventLoop(Native Method)
        at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)

Sure, maybe I shouldn't have left a serial port monitor open when there was no 
longer anything to read. But this can't all be on me.

Original comment by robotris...@gmail.com on 26 Nov 2012 at 3:30

GoogleCodeExporter commented 8 years ago
Ouch. Arduino IDE 1.0.2 has left 32G of serial port logs in my temp folder. I'm 
a pretty light Arduino user but I may have left the monitoring port open 
overnight a few times. 

I'm running Window 7 SP1 64bit

C:\Users\cepro>ver
Microsoft Windows [Version 6.1.7601]

Original comment by da...@cleanenergyprospector.com on 15 Dec 2012 at 3:47

GoogleCodeExporter commented 8 years ago
Still an issue on both 1.0.4 and 1.5.2 beta.
Windows 7 64bit if it matters.

In my case the error log had grown to ~42GB by the time I noticed it.
Any ETA on a fix for this?

Original comment by sol...@gmail.com on 19 Apr 2013 at 1:11

GoogleCodeExporter commented 8 years ago
i am reporting this error as i left the serial window open for a few days and 
was greeted with a 65 Gb text file and a low space on the C; drive warning 
this is a REALLY important thing as not many users would be able to find such a 
large file on their own as it is partially hidden, a proposed solution is to 
simply by default have a size limit on the serial log file of something say 100 
megs and be able to change it to whatever in the settings. 

Original comment by matthewk...@gmail.com on 1 Oct 2013 at 8:23

GoogleCodeExporter commented 8 years ago
I just discovered this problem too.  A 23GB and a 7GB stderr file.  Only found 
because I was wondering how I was running low on HD space.  Please fix this.

Original comment by jeffgu...@gmail.com on 10 May 2014 at 5:18

GoogleCodeExporter commented 8 years ago
Bug is still present. If left open, Serial monitor fills all available disk 
space in a stderr.txt file. (For me, 5 GB after 1 day).

Arduino 1.0.5.
Board: Nano v3.0
Windows 7 x64  [6.1.7601]
Java 7 Update 71 (1.7.0_71-b14)

Original comment by thomasab...@gmail.com on 25 Dec 2014 at 6:43

GoogleCodeExporter commented 8 years ago
https://github.com/arduino/Arduino/issues/229#issuecomment-105839770

Original comment by federico...@gmail.com on 27 May 2015 at 9:37