winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.88k stars 761 forks source link

gcode files with very small range of movement hang UGS when Visualizer window is open #2300

Open bertieconfundo opened 1 year ago

bertieconfundo commented 1 year ago

Version

Other

Hardware / Firmware

GRBL 1.1

What happened

I'm using the latest UGS build from github as of Aug 26, 2023. If I load a gcode file that has a very small range of motion in it:

G20 G90 G0X0Y0 G0X0.0001

If the Visualizer window is open, UGS will hang. If the Visualizer isn't open, it works fine. I inadvertently ran into this bug when I was working on the grbl firmware and tracing step outputs from the controller, so I wanted to only see a very small number of steps.

I think in the practical sense nobody is going to run into this with a legitimate gcode file, but it's still probably worth looking into.

How to reproduce

No response

Operating System

No response

Anything else

No response