Closed Bougakov closed 3 years ago
On a side note: it would be very helpful, if plugin_slic3r_engine.log
contained the raw command with all the parameters.
Thanks for giving it a shot. I don't even own a 3d printer so it's hard for me to test.
I'll dig into it.
@Bougakov Okay, weird, turns out that pruseslicer is making a zip file! There must be some option that I'm accidentally setting that causes it to make a zip file?
You can try it yourself. Run file <your filename>
on it and you'll see. You can also unzip it and the output is a big list of images along with to ini files.
Super weird. Maybe the arguments to prusaslicer are weird? You should be able to see them in the octoprint slic3r log. I see them there, I think.
Anyway, there's work to be done. I'll get on it in a couple hours.
No, I've archived the gcode because GitHub wouldn't let me attach it otherwise.
I've just upgraded to 1.2.2 and I am glad to report that the issue was resolved. I am getting proper ASCII g-code files, as expected:
;Generated from xyzCalibration_cube.stl (hash: d316cc8422b4622151bc32fe2910f6a8731736bb)
; generated by PrusaSlicer 2.3.0 on 2021-01-13 at 12:22:51 UTC
@Bougakov Hi, I'm writing as a PrusaSlicer collaborator. Could you please post the config file that you are loading (2020-11-15.profile) and that suffered from this issue? Thanks.
@lukasmatena, check the former gcode file that I've attached above - the one which has "OLD" in its name. PrusaSlicer copies the INI file used for slicing at the very end of the file. The same config file was used with both versions of the slicer binary.
@Bougakov It copies the options that were used, not the contents of the INI file. What I mostly wanted to see was the header of the INI. I have a suspicion it is actually generated by Slic3r, not PrusaSlicer. There probably really is a bug in PrusaSlicer (that I will describe later), but I would first like to be sure what the problem is.
OctoPrint Slic3r adds four lines of text on top as it imports the INI file. The rest was absolutely identical to what is being saved to the g-code by the slicer (I used diff when I investigated the behavior of 2.2 and 2.3 so I am sure). All parameters are sorted alphabetically.
# Name: 2020-11-15
# Description: Imported from 2020-11-15.ini on 2020-11-15 17:27
(sorry but turns out I've modified that file later on manually and can't share it)
@Bougakov @eyal0 Apparently the handling of the command line arguments really changed, but the change is a bug, not intentional. What is happening in this case is that PrusaSlicer slices in SLA mode and names the output as gcode
(SLA output file is a zip in disguise). When --slice
is used, it should switch the technologies based on the content of the ini file. The bug is in incorrect handling of a case when this information is missing in the ini. Old PS versions defaulted to FDM, the new one does what I described. It is quite unfortunate, sorry about that. We'll try to do something about it.
That's why I was so curious about the INI. If you're using a Slic3r config file in PrusaSlicer, I would not do it. But what you have described will affect all Slic3rPE configs from pre-SLA times. Hopefully not newer ones.
No, I've archived the gcode because GitHub wouldn't let me attach it otherwise.
Yes, I know that you zipped it but the .gco file is also a zip. It's a zip file in a zip file. If you look at the binary garbage, you'll see that it begins with "PK". That is the signifier for a PKZip file. If you rename the file to .zip, it will unzip to a bunch of png images.
My fix was to add the "-g" parameter when using prusaslicer 2.3. I had the "--slice" parameter before.
Hi. I've just installed a fresh 1.2.1 version of the plugin and added PrusaSlicer 2.3.0 to my system.
New binary is stored at
/usr/bin/prusa-slicer
, and old one is at/usr/local/bin/prusa-slicer.old
.Running both binaries manually works nicely:
produces a gcode file which starts with
while
gives me
So everything is fine "under the hood". But slicing from the web interface produces broken garbled binary g-code.
Old version produced a rather shorl log:
while newer is more verbose:
and the produced file contains some binary garbage mixed with the parts of the profile:
Older version produced clean ASCII files:
Attached are the generated g-code files:
xyzCalibration_cubeOLD1.gco.zip xyzCalibration_cubeNEW1.gco.zip