itsanjan / arduino

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

IDE/Serial Monitor freezes on single live overrun #578

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a sketch that output data at 115200 using Serial.write(), and sends 
random values from 0x00 to 0xFF at max rate (as in unformatted values from a 
digital accelerometer)
2. Download sketch and run, open serial monitor as soon as RX/TX LEDs go dark 
after download.
3. Watch serial data spew onto the top line of the serial monitor window (make 
sure autoscroll is checked) and wait for a few seconds. Data will stop, the 
system will freeze, Java will go zombie, etc.

What is the expected output? What do you see instead?
Expected output is a constant stream of serial characters, without crashing.

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
Arduino 22 on Win7Pro SP1 on an Intel Corei7 laptop.
Arduino is a Sparkfun Mini Pro 328/8MHz/3.3 via a Sparkfun 3.3V FTDI Basic 
Breakout.

Please provide any additional information below.
This issue is easily and regularly repeatable on my system. If I insert the 
CRLF characters at the end of each line like the autoscroll system expects, it 
works correctly. Fat fingering 0x0D 0x0B (vertical tab) instead causes the 
crash as well as no line termination characters.

Original issue reported on code.google.com by mausb...@gmail.com on 5 Aug 2011 at 4:13

GoogleCodeExporter commented 9 years ago
I can confirm this issue in both Arduino and MPIDE environments.

A serial overrun with the monitor window open will cause the IDE application to 
freeze for a very long time.

Suggestion: Fork a separate process to manage the serial monitor. This way, it 
can be killed separate from the IDE/MPIDE when this happens.

I'm working on implementing hardware flow control for the PIC platform in 
HardwareSerial, but, on the AVR it would have to be implemented in software. 
(The PIC hardware has !RTS/!CTS).

Owen

Original comment by diverfl...@gmail.com on 8 Mar 2012 at 3:11

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/issues/578#issuecomment-105874209

Original comment by federico...@gmail.com on 27 May 2015 at 11:17