Java out of memory error, please help

Status
Not open for further replies.

laptophead

Well-known member
Here is the whole message;
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "Thread-187" java.lang.OutOfMemoryError: GC overhead limit exceeded

Running 1.8.4 on a mac osx 10.7

Attached is the sketch,
When I go in the serial monitor, is even worse,

I am using the teensy 3.6
Thanks a lot,
mitch
 

Attachments

  • Catalyst_03_W_Breaks.ino
    4.3 KB · Views: 69
error usually occurs if you are printing "too fast" from your sketch. try adding delay(100) in loop()

if (customKey) { } is that really what you want, or should the closing brace be at the end of loop()
 
Yes, that worked, thank you.

error usually occurs if you are printing "too fast" from your sketch. try adding delay(100) in loop()

if (customKey) { } is that really what you want, or should the closing brace be at the end of loop()

I was keeping that if for later, never realized it hang the system.
 
Status
Not open for further replies.
Back
Top