- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.7k
 
Description
Hello ive been trying to rotate and flip my gcode paths via the visualiser and it keeps either raising the error "Index 0 is out of range 0" or raising a "gcodeMeta.point is null" error
Im using the latest version of UGS at the time of writing (Version 2.1.13)
On a windows 11 laptop.
I used autodesk fusion with this (https://github.com/Strooom/GRBL-Post-Processor/tree/master) post processer (I wasnt able to use the inbuilt grbl PP at the time)
the error log for the second error is as follows
java.lang.NullPointerException: Cannot invoke "com.willwinder.universalgcodesender.types.PointSegment.point()" because "gcodeMeta.point" is null
at com.willwinder.universalgcodesender.gcode.processors.TranslateProcessor.lambda$translateCoordinates$1(TranslateProcessor.java:102)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.willwinder.universalgcodesender.gcode.processors.TranslateProcessor.translateCoordinates(TranslateProcessor.java:114)
at com.willwinder.universalgcodesender.gcode.processors.TranslateProcessor.lambda$processCommand$0(TranslateProcessor.java:79)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.Collections$2.tryAdvance(Unknown Source)
at java.base/java.util.Collections$2.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.willwinder.universalgcodesender.gcode.processors.TranslateProcessor.processCommand(TranslateProcessor.java:84)
at com.willwinder.universalgcodesender.gcode.processors.CommandProcessorList.processCommand(CommandProcessorList.java:48)
at com.willwinder.universalgcodesender.gcode.GcodeParser.preprocessCommand(GcodeParser.java:185)
at com.willwinder.universalgcodesender.gcode.util.GcodeParserUtils.preprocessAndWrite(GcodeParserUtils.java:394)
at com.willwinder.universalgcodesender.gcode.util.GcodeParserUtils.processAndExportText(GcodeParserUtils.java:442)
at com.willwinder.universalgcodesender.gcode.util.GcodeParserUtils.processAndExport(GcodeParserUtils.java:381)
If im just slow in the head please feel free to let me know :)
at com.willwinder.universalgcodesender.model.GUIBackend.preprocessAndExportToFile(GUIBackend.java:152)
at com.willwinder.universalgcodesender.model.GUIBackend.initializeProcessedLines(GUIBackend.java:790)
at com.willwinder.universalgcodesender.model.GUIBackend.processGcodeFile(GUIBackend.java:381)
at com.willwinder.universalgcodesender.model.GUIBackend.applyCommandProcessor(GUIBackend.java:448)
[catch] at com.willwinder.ugs.nbp.editor.actions.TranslateToZeroAction.lambda$performAction$1(TranslateToZeroAction.java:104)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)