Pages: [1]   Go Down
Author Topic: Exception in thread "Thread-91" java.lang.StackOverflowError  (Read 1013 times)
0 Members and 1 Guest are viewing this topic.
Enschede, Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 217
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Suddenly this afternoon i ran in to trouble wilst compiling a sketch, it wont compile anymore.
The IDI produces a bunch of java errors:
  • Exception in thread "Thread-91" java.lang.StackOverflowError
       at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)
       at java.util.regex.Pattern$Loop.match(Pattern.java:4295)
       at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227)
       at java.util.regex.Pattern$BranchConn.match(Pattern.java:4078)
       at java.util.regex.Pattern$CharProperty.match(Pattern.java:3345)
       at java.util.regex.Pattern$Branch.match(Pattern.java:4114)
       at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)
       at java.util.regex.Pattern$Loop.match(Pattern.java:4295)
       at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227)
    ..........
    ..........
       at java.util.regex.Pattern$Loop.match(Pattern.java:4295)
       at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227)
       at java.util.regex.Pattern$BranchConn.match(Pattern.java:4078)
       at java.util.regex.Pattern$CharProperty.match(Pattern.java:3345)
       at java.util.regex.Pattern$Branch.match(Pattern.java:4114)
       at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)
       at java.util.regex.Pattern$Loop.match(Pattern.java:4295)
       at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227)
       at java.util.regex.Pattern$BranchConn.match(Pattern.java:4078

Could this be caused by a error in the sketch.
I allready reinstalled the IDE and thit a Java update.
The Arduino used is the Pro328
« Last Edit: March 08, 2013, 01:14:33 pm by gharryh » Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


http://arduino.cc/forum/index.php?topic=144882.0
http://arduino.cc/forum/index.php?topic=142925.0
http://arduino.cc/forum/index.php?topic=53870.0
...

https://www.google.com/search?q=java.util.regex+site:arduino.cc%2Fforum
« Last Edit: March 08, 2013, 08:23:27 pm by Coding Badly » Logged

Enschede, Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 217
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Reading al these threats i think the best is to start all over again.
I cant find no error in the sketch as i thit load it first in a Duemilanove and whilst switching boards to a pro328 things whent going wrong.
As from that moment on i cant load it to a Pro, Duemilanove, Leonardo or a Nano.
The simple blink scripts are OK and that is very frustrating.
I cleaned up all the Serial interfaces, reinstalling them, and done the same whit all the concerning software.
Even replacing cables.
Its even that whorse that the last know good version would not load anymore.
Logged

Rome, Italy
Offline Offline
Sr. Member
****
Karma: 20
Posts: 442
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The error clearly occurs within the usage of a regular expression by the (pre-)compiler. It is a feature of the IDE that adds some lines to your code, and looks a bit fragile when it encounters certain syntax errors. Once your code is fixed the error should disappear, so you should post your code.
Logged

Olympia, WA
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just dealt with this myself.  The offending code line looked like this...
    Serial.print("\"); 
I put in a back slash without an appropriate command behind it. Just guessing, but after that java just keep putting stuff onto its stack until it barfs.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have found this can occur if I forget to end a string correctly.

// EXAMPLE:
Serial.print("This string is missing the closing quotation);

Thus the rest of the code becomes a massive string, overfilling the maximum string size for the compiler.
Logged

Michigan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just dealt with this myself.  The offending code line looked like this...
    Serial.print("\"); 
I put in a back slash without an appropriate command behind it. Just guessing, but after that java just keep putting stuff onto its stack until it barfs.

You just saved me a HUGE headache!

Thank you!
Logged

Pages: [1]   Go Up
Jump to: