We have a customer who is running 0.9.14 on an X Carve with a PC and is having an issue where the program will run, but then it will just stop in the middle and give an error 3 in the console and then it resets GRBL. Sometimes it gets through the whole project and then does this at the end and other times it does it in the middle. It doesn’t do this when carving in Easel, just in lightburn.
Error 3 is ‘Invalid statement’. You can save the GCode and run it in a simulator or another program, and that will verify that it’s not the GCode. It’s almost certainly electrical interference or noise in the communication, ground loop, power noise, poor USB cable, etc.
That is what I am thinking, but it will be hard to solve. Electrical intererence is difficult to find. I am going to remote in and see if I can figure it out. Thanks for the suggestion for the simulator.
This is the one I generally use - it’s not perfect, but it will at least verify that there’s nothing wrong with the gcode: https://nraynaud.github.io/webgcode/
Turned out to be a loose cable. Probably throwing out some electrical transients that then messed somehow with the controller to get the error 3 message. Cable fixed and problem solved.