jung6717 / arduino

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

[Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError] when using long char array #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Compile the code located at:
http://www.ladyada.net/make/eshield/LEDcolorpicker.pde using Arduino-0018

This compiles without error on Arduino-0010, but outputs the following in
Arduino-0018:

Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
    at com.oroinc.text.regex.Perl5Matcher._pushState(Perl5Matcher.java)
    at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)

with the last line repeating *many* times.

This occurs on Windows XP and possibly other OSes based on anecdotal reports.
ex: http://forums.adafruit.com/viewtopic.php?f=31&t=6558&p=32002

From the admin (adafruit) at the above post:
"...the javascript string appears to be too long..."

Original issue reported on code.google.com by kreychek on 26 Mar 2010 at 8:02

GoogleCodeExporter commented 9 years ago
The cheapest way to get past this is to increase the Java thread stack size. On 
a Mac, you would edit the Arduino.app Info.plist and add 
"-XX:ThreadStackSize=2048" to the "VMOptions" section.

There will be a similar setting on Windows, though it will be something like 
"-Xss2048k" in a startup file somewhere.

This looks like a bug in the VM: 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6337993

There isn't much Processing can do.

Original comment by john.ve...@gmail.com on 8 May 2012 at 3:32

GoogleCodeExporter commented 9 years ago
Please give a try to the IDEs linked at the bottom of this email on the dev list
https://groups.google.com/a/arduino.cc/forum/#!msg/developers/4X2T3rCxXWM/YNJl6P
ZuDucJ
We're testing a new preprocessor and it compiles your sketch just fine.

Original comment by federico...@gmail.com on 28 Jan 2015 at 4:15

GoogleCodeExporter commented 9 years ago
New preprocessor tracked at https://github.com/arduino/Arduino/pull/2636. 
Builds for testing it are available

Original comment by federico...@gmail.com on 13 Feb 2015 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by federico...@gmail.com on 26 May 2015 at 3:23