serialmon_speedup_4th_try.zip
iMac 2011 24GB ram, osx 10.13.6, arduino 1.8.9, td1.47
Plugin t4 with usb_serial_print_speed.ino already flashed.
Open arduino.
Open the serial monitor, sometime later it will stop printing lines.
Close the serial monitor and get following exepction
Code:
inputPipeListener exception: java.lang.InterruptedException: sleep interrupted
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at processing.app.inputPipeListener.run(TeensyPipeMonitor.java:234)
inputPipeListener thread exit
Reopen serialmon and keep repeating.
Attempt 1, 2 stops printing after max 30sec.
Attempt 3, 4, 5, 6 last between 2 to 8min.
From attempt 5 scrolling smoothness is gradually degrading and arduino processor load is increasing.
The 7th time opening serialmon the scrolling is unbearable. Something like 100-200milisec printing and 4-5sec pausing.
Now I close serialmon before it stops printing and get following exepction
Code:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at processing.app.FifoDocument.<init>(FifoDocument.java:136)
at processing.app.TextAreaFIFO.<init>(TextAreaFIFO.java:42)
at processing.app.AbstractTextMonitor.onCreateWindow(AbstractTextMonitor.java:57)
at processing.app.AbstractMonitor.<init>(AbstractMonitor.java:55)
at processing.app.AbstractTextMonitor.<init>(AbstractTextMonitor.java:47)
at processing.app.TeensyPipeMonitor.<init>(TeensyPipeMonitor.java:51)
at cc.arduino.packages.MonitorFactory.newMonitor(MonitorFactory.java:51)
at processing.app.Editor.handleSerial(Editor.java:2261)
at processing.app.EditorToolbar.handleSelectionPressed(EditorToolbar.java:503)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:448)
at java.awt.Component.processMouseEvent(Component.java:6536)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java: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$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
Now quit and reopen arduino and start again.
Attempt 1..6, same as above
Attempt 7, scrolling is still bearable, throws a differnt exception after less than 30sec, while printing continues for a few more minutes.
Code:
FifoDocument.getText *****NEGATIVE NUMBER ERROR*****
Exception in thread "AWT-EventQueue-0" javax.swing.text.StateInvariantError: Can't render line: 20
at javax.swing.text.PlainView.drawLine(PlainView.java:92)
at javax.swing.text.PlainView.paint(PlainView.java:311)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:881)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:860)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
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$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Attempt 8, scrolling is struggling, arduino processor load is at 292% and serialmon at 30%(from 85% in the first attempts). Stops after 8min and again the *****NEGATIVE NUMBER ERROR*****
Attempt 9..n, throws an exception every time the serialmon icon is clicked but the window does not open anymore.
Code:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at processing.app.FifoDocument.<init>(FifoDocument.java:136)
at processing.app.TextAreaFIFO.<init>(TextAreaFIFO.java:42)
at processing.app.AbstractTextMonitor.onCreateWindow(AbstractTextMonitor.java:57)
at processing.app.AbstractMonitor.<init>(AbstractMonitor.java:55)
at processing.app.AbstractTextMonitor.<init>(AbstractTextMonitor.java:47)
at processing.app.TeensyPipeMonitor.<init>(TeensyPipeMonitor.java:51)
at cc.arduino.packages.MonitorFactory.newMonitor(MonitorFactory.java:51)
at processing.app.Editor.handleSerial(Editor.java:2261)
at processing.app.EditorToolbar.handleSelectionPressed(EditorToolbar.java:503)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:448)
at java.awt.Component.processMouseEvent(Component.java:6536)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java: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$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
game over