PrusaControl icon indicating copy to clipboard operation
PrusaControl copied to clipboard

G1 G-code parsing is broken leading to import hang

Open LeadAssimilator opened this issue 6 years ago • 1 comments

Broken G1

The G1 G-code must have at least one parameter, but the PursaControl parsing code, namely gcode.py's parse_g1_line_new, is expecting at least two when the first parameter is Y, and throws an exception that is uncaught, breaking loading and the UI.

When only X is present, the entire G-code is ignored.

Examples

G1 X179.750 ; I will be completely ignored G1 Y185.250 ; I will exception and break loading and the UI

Workarounds

If you experience any issues with importing gcode files it is more than likely G1 or some other code that is not properly handled. It can usually be worked around by adding dummy parameters to the affected codes, or stop using PrusaControl since it appears to be broken and dead.

LeadAssimilator avatar Nov 26 '18 06:11 LeadAssimilator

Hello,

thank you for your feedback related to G-code. Unfortunately the Prusa Control is no longer supported, because all of the features and properities will be moved to out Slic3r by Prusa.

Kind regards,

— Šimon Doubek Customer Support

PRUSA Research

+420 222 263 718

+421 220 570 305

188/7a Partyzánská, 17000, Prague

shop.prusa3D.com

For simple troubleshooting, please use: http://help.prusa3d.com

--- original message --- On November 26, 2018, 7:20 AM GMT+1 [email protected] wrote:

Broken G1

The G1 G-code must have at least one parameter, but the PursaControl parsing code, namely gcode.py's parse_g1_line_new, is expecting at least two when the first parameter is Y, and throws an exception that is uncaught, breaking loading and the UI.

When only X is present, the entire G-code is ignored.

Examples

G1 X179.750 ; I will be completely ignored

G1 Y185.250 ; I will exception and break loading and the UI

Workarounds

If you experience any issues with importing gcode files it is more than likely G1 or some other code that is not properly handled. It can usually be worked around by adding dummy parameters to the affected codes, or stop using PrusaControl since it appears to be broken and dead.

You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or mute the thread. --- end of original message ---

prusa3d-bb avatar Nov 26 '18 14:11 prusa3d-bb