Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long string constants trigger Java StackOverflowError #1401

Closed
PaulStoffregen opened this issue May 5, 2013 · 6 comments
Closed

Long string constants trigger Java StackOverflowError #1401

PaulStoffregen opened this issue May 5, 2013 · 6 comments
Assignees
Labels
Component: IDE The Arduino IDE Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone

Comments

@PaulStoffregen
Copy link
Sponsor Contributor

Very long string constants cause a Java exception. Tested on Linux 64 bit.

Here is a sample program which demonstrates the problem.

http://www.pjrc.com/teensy/beta/long_string_bug.ino

Exception in thread "Thread-2807" java.lang.StackOverflowError
at java.util.regex.Pattern$Branch.match(Pattern.java:4131)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4185)
at java.util.regex.Pattern$Loop.match(Pattern.java:4312)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4244)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4095)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3362)
at java.util.regex.Pattern$Branch.match(Pattern.java:4131)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4185)
at java.util.regex.Pattern$Loop.match(Pattern.java:4312)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4244)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4095)
[snip...]

@ffissore
Copy link
Contributor

ffissore commented May 6, 2013

@rrelmy
Copy link

rrelmy commented Jun 7, 2013

Same problem exists in version 1.0.5 on Windows 7 64 Bit

@ffissore ffissore added the New label Feb 27, 2014
@cmaglie cmaglie removed the New label Feb 27, 2014
@ffissore ffissore self-assigned this Jan 28, 2015
@ffissore
Copy link
Contributor

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/YNJl6PZuDucJ
We're testing a new preprocessor and it compiles your sketch just fine.

@ffissore
Copy link
Contributor

New preprocessor tracked at #2636. Builds for testing it are available

@aumberg
Copy link

aumberg commented Aug 10, 2015

Still problem in hourly build 1.6.6 (Linux x32 and Windows8 x64)

@ffissore
Copy link
Contributor

Fixed by #3779

@ffissore ffissore added this to the Release 1.6.6 milestone Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Projects
None yet
Development

No branches or pull requests

5 participants