Go Down

Topic: perl5matcher stackoverflow (Read 5 times) previous topic - next topic

rappa

But the error was not occurring in the compiler -- it never even got to compilation.  It was occurring in the IDE (java).

PaulS

Quote
This is really odd.  I'm getting a stackoverflow error when uploading my sketch:


If you never got to the compiler, what were you uploading?

rappa

To clarify, the error occurred when I hit the "upload" button, not when it was uploading, because it never got that far.  That stacktrace indicates a java error in the IDE.  Possibly in the oroinc library. Again, it didn't get to the compilation step.  

As I modified the program, it got to a point where I could prevent the error if I removed an arbitrary chunk of code, but unfortunately I needed that code.

Here's another instance of the same problem http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1234031376

mellis

Sorry about that.  The IDE includes some relatively hacky code to preprocess your source code to add function prototypes.  It's just a bunch of regular expressions that can get confused by certain unusual strings in your code (including within comments).  

I added a note about this to troubleshooting guide: http://arduino.cc/en/Guide/Troubleshooting#stackoverflow

rappa


Go Up