Machine keeps pausing

Shop Forum Makelangelo Polargraph Art Robot Machine keeps pausing

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5992
    Anonymous
    Inactive

    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)

    #6604
    Anonymous
    Inactive

    The 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.

    #6605
    Anonymous
    Inactive

    String str = “qwerty12356qwerty2465”;
    str = str.replaceAll(“[^0-9]+”, ” “);
    System.out.println(Arrays.asList(str.trim().split(” “)));

    fixed with a regex.

    #6606
    Anonymous
    Inactive

    That’s very similar to what I did.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.