Slowing reducing the code to see what it takes to kill terminal window. Even with this in T4 just opening and closing the terminal window 5 times:
Code:
void setup() {
}
void loop() {
}
attempt Memory MB
1st 439
2 574
3 667
4 803
5 terminal won't open
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at processing.app.FifoDocument.<init>(FifoDocument.ja va:136)
at processing.app.TeensyPipeMonitor.<init>(TeensyPipe Monitor.java:51)
at cc.arduino.packages.MonitorFactory.newMonitor(Moni torFactory.java:51)
at processing.app.Editor.handleSerial(Editor.java:226 1)
at processing.app.EditorToolbar.handleSelectionPresse d(EditorToolbar.java:503)
at processing.app.EditorToolbar.mousePressed(EditorTo olbar.java:448)
at java.awt.Component.processMouseEvent(Component.jav a:6536)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3324)
at java.awt.Component.processEvent(Component.java:630 4)
at java.awt.Container.processEvent(Container.java:223 9)
at java.awt.Component.dispatchEventImpl(Component.jav a:4889)
at java.awt.Container.dispatchEventImpl(Container.jav a:2297)
at java.awt.Component.dispatchEvent(Component.java:47 11)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4532)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4476)
at java.awt.Container.dispatchEventImpl(Container.jav a:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746 )
at java.awt.Component.dispatchEvent(Component.java:47 11)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 74)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 730)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:205)