Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCODE has invalid headers when output to file #660

Closed
jeromechrist opened this issue Nov 27, 2017 · 1 comment
Closed

GCODE has invalid headers when output to file #660

jeromechrist opened this issue Nov 27, 2017 · 1 comment

Comments

@jeromechrist
Copy link

Description

GCODE has invalid headers when output to file while the executable standard output is correct

Steps to Reproduce

CuraEngine.exe slice -v -j "C:\Program Files\Ultimaker Cura 3.0\resources\definitions\ultimaker3.def.json" -l "C:\Users\jerome.christ\Desktop\cura\screw.stl" -o "C:\Users\jerome.christ\Desktop\cura\output.gcode"

This will produce a GCODE with correct instructions except for the headers, from the console :
image

But the written file has incorrect headers, when send to the UM3 it is deemed as invalid :
image

Reproduces how often:
Always

Versions

CuraEngine.exe v.3.0.3 used in command line
OS : Windows 10
CURA_ENGINE_SEARCH_PATH = "C:\Program Files\Ultimaker Cura 3.0\resources\definitions;C:\Program Files\Ultimaker Cura 3.0\resources\extruders"

@Ghostkeeper
Copy link
Collaborator

This also reproduces for me.

It seems like the problem here is that when slicing via command line, gcodeExport's output stream is std::cout or the target file, and then it has to put the header in front before any of the g-code has been output, so before any g-code is known and before the bounding box has been set. When slicing via an Arcus socket, the output is commandSocket's gcode_output_stream which can be finalized later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants