Machine keeps pausing
Shop › Forum › Makelangelo Polargraph Art Robot › Machine keeps pausing
- This topic is empty.
-
AuthorPosts
-
2014-06-10 at 04:28 #5992AnonymousInactive
The M3 Machine will run fine for 20 to 300 lines of gcode and then stops. I get this error in the java window.
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at javax.swing.text.CompositeView.replace(Unknown Source)
at javax.swing.text.BoxView.replace(Unknown Source)
at javax.swing.text.FlowView$FlowStrategy.layoutRow(Unknown Source)
at javax.swing.text.FlowView$FlowStrategy.layout(Unknown Source)
at javax.swing.text.FlowView.layout(Unknown Source)
at javax.swing.text.BoxView.setSize(Unknown Source)
at javax.swing.text.BoxView.updateChildSizes(Unknown Source)
at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)
at javax.swing.text.BoxView.layout(Unknown Source)
at javax.swing.text.BoxView.setSize(Unknown Source)
at javax.swing.text.BoxView.updateChildSizes(Unknown Source)
at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)
at javax.swing.text.BoxView.layout(Unknown Source)
at javax.swing.text.BoxView.setSize(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source)
at javax.swing.text.DefaultCaret.repaintNewCaret(Unknown Source)
at javax.swing.text.DefaultCaret$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)2014-06-11 at 23:54 #6604AnonymousInactiveThe BADLINENUM error sent to the GUI is causing an exception in the GUI.
Java is really picky. If I say “find the number in ‘1234abc'” it barfs when it gets to ‘a’. it wants to convert strings that are strictly numbers, no funny business.
I’ve written a patch that will be in the next update.
2014-06-12 at 18:52 #6605AnonymousInactiveString str = “qwerty12356qwerty2465”;
str = str.replaceAll(“[^0-9]+”, ” “);
System.out.println(Arrays.asList(str.trim().split(” “)));fixed with a regex.
2014-06-12 at 20:53 #6606AnonymousInactiveThat’s very similar to what I did.
-
AuthorPosts
- You must be logged in to reply to this topic.