Programs freeze just before finishing

I have a few programs that I run that will run perfectly on my Longmill MK2.5 and then they consistently will freeze the servos at the same spot. I am able to hit pause in gSender and then wait a few seconds and hit play to restart the carve and it will finish the carve.

This error thankfully doesn’t ruin a carve but it is annoying. I have tried to recreate my gcode from Easel (I am going to switch to Vcarve soon) but I end up with the same hangup. I have looked at the ggcode for any lines that could cause this freezeup but I don’t see anything abnormal.

The programs that this occurs on are seemingly random. With every new carve I have to be cautious it may not finish. gSender will show 1 line remaining every time it freezes. I’m putting this in the gSender category because the programs if run through Easel will not freeze up. This seems to be a gSender bug but it happens on random programs.

Let me know if you need code snippets or have any questions that may help with this error. It’s not a critical failure just an annoying one.

Thank you for any assistance.

@kpeoples86 Since this happens when there is one line of code remaining, it may help if you could post the last dozen lines or so of gcode.

G1 X34.31934 Y6.50120 Z-0.18074 F20.0
G1 X34.28276 Y6.50205 Z-0.24358 F20.0
G1 X34.27862 Y6.49873 Z-0.25000 F20.0
G0 Z-0.16250
G1 X34.01933 Y6.37551 F90.0
G1 Z-0.25000 F20.0
G1 X33.98656 Y6.36760 Z-0.21650 F20.0
G1 X33.95294 Y6.36189 Z-0.17936 F20.0
G1 X33.93970 Y6.36153 Z-0.16257 F20.0
G1 X33.93525 Y6.36221 Z-0.15600 F20.0
G1 X33.91941 Y6.36772 Z-0.12911 F20.0
G1 X33.90817 Y6.37061 Z-0.10994 F20.0
G1 X33.91941 Y6.36772 Z-0.12911 F20.0
G1 X33.93525 Y6.36221 Z-0.15600 F20.0
G1 X33.93970 Y6.36153 Z-0.16257 F20.0
G1 X33.95294 Y6.36189 Z-0.17936 F20.0
G1 X33.98656 Y6.36760 Z-0.21650 F20.0
G1 X34.01933 Y6.37551 Z-0.25000 F20.0
G0 Z0.15000
G0 X34.21921 Y0.70059
G1 Z-0.25000 F20.0
G1 X34.21924 Y0.70056 F90.0
G1 X34.21921 Y0.70059 F90.0
G0 Z-0.08750
G1 X34.54725 Y0.48980 F90.0
G1 Z-0.25000 F20.0
G1 X34.56269 Y0.48166 Z-0.22978 F20.0
G1 X34.58273 Y0.47346 Z-0.20213 F20.0
G1 X34.61460 Y0.45771 Z-0.15392 F20.0
G1 X34.61921 Y0.45490 Z-0.14611 F20.0
G1 X34.63005 Y0.44974 Z-0.12767 F20.0
G1 X34.63336 Y0.44752 Z-0.12114 F20.0
G1 X34.63005 Y0.44974 Z-0.12767 F20.0
G1 X34.61921 Y0.45490 Z-0.14611 F20.0
G1 X34.61460 Y0.45771 Z-0.15392 F20.0
G1 X34.58273 Y0.47346 Z-0.20213 F20.0
G1 X34.56269 Y0.48166 Z-0.22978 F20.0
G1 X34.54725 Y0.48980 Z-0.25000 F20.0
G20
G90
G0 Z0.15000
G0 X0.00000 Y0.00000
G4 P0.1

This is the first program that I noticed the I probably gave more code than needed but I have looked at this for awhile and maybe someone can find the issue.

@kpeoples86 From my meagre understanding, the G4 command is a pause execution command. The P says for how long. You may want to delete that line and try to run the project again. Just run it in air to see if it will run to the end.

3 Likes

@gwilki I removed the last line and ran the program from a starting position about 800 lines from the end and it did not freeze. I noticed on all my programs that have been downloaded from Easel the last line is always G4 P0.1. My guess is that is has something to do with how gSender buffers the lines of gcode as it is carving and maybe the chunks of buffering if it ends on the G4 line may cause the freeze or hangup. I have never watched the console screen as its carving maybe I can try to catch the issue in real time.

Let me know if my theory is plausible but I will start deleting the last line on every program and hopefully the issue goes away.

1 Like

@kpeoples86 I’m glad that this simple solution resolved your problem. I am not competent to reply to your theory. I suggest that you write to sienci tech support, linking to this thread.

In the meantime, as you have the solution, I am closing this topic.