You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an older machines.xml (ie. not one of the new "The Replicator" machine definitions but one such as "Cupcake Basic") a NullPointer exception is thrown.
Console:
INFO: Estimating...
Exception in thread "Estimation Thread" java.lang.NullPointerException
at replicatorg.app.gcode.GCodeParser.buildGCodes(GCodeParser.java:654)
at replicatorg.app.gcode.GCodeParser.parse(GCodeParser.java:243)
at replicatorg.machine.Machine.estimate(Machine.java:497)
at replicatorg.app.ui.MainWindow$EstimationThread.run(MainWindow.java:2586)
It seems that something in the tool head parsing is failing:
if (driver.getMachine().getTool(tool).getMotorStepperAxis().name() == "B") {
I modified the <tool ... /> entity to contain attributes similar to the MakerBot-provided Replicator machine definition. I don't have my configuration in front of me at the moment. Not sure what happened to my above comment—I had originally provided the examples. (Edit: fixed the above comment to display the code examples)
I'm having the same problem. It looks like the code expects the extruder to be a stepper motor, and expects the stepper_axis to be set. I don't understand the system well enough, though, to know how to set it.
When using an older machines.xml (ie. not one of the new "The Replicator" machine definitions but one such as "Cupcake Basic") a NullPointer exception is thrown.
Console:
INFO: Estimating...
Exception in thread "Estimation Thread" java.lang.NullPointerException
at replicatorg.app.gcode.GCodeParser.buildGCodes(GCodeParser.java:654)
at replicatorg.app.gcode.GCodeParser.parse(GCodeParser.java:243)
at replicatorg.machine.Machine.estimate(Machine.java:497)
at replicatorg.app.ui.MainWindow$EstimationThread.run(MainWindow.java:2586)
It seems that something in the tool head parsing is failing:
if (driver.getMachine().getTool(tool).getMotorStepperAxis().name() == "B") {
Here is the tool entity which seems to fail:
Modifying this entry to be more similar to the entity in "The Replicator" machine definition avoids the crash:
The text was updated successfully, but these errors were encountered: