Willmac16 / OctoPrint-GcodeLeveling

An OctoPrint plugin for leveling of Z values in Gcode using measured positions
https://plugins.octoprint.org/plugins/gcodeleveling/
GNU Affero General Public License v3.0
5 stars 0 forks source link

Upload failed #10

Closed Mungbeanz closed 3 years ago

Mungbeanz commented 3 years ago

Hi,

Seem to be getting upload failed every time I try to upload a .gcode file. With the option enable to upload a non-modified file, I get the error and a non-modified file uploaded. Without that option enabled I just get the error. Disabling plugin I get no error. upload error

Willmac16 commented 3 years ago

@Mungbeanz Could you upload your octoprint.log file from the Logging tab in settings.

Mungbeanz commented 3 years ago

octoprint.log Log uploaded

Willmac16 commented 3 years ago

@Mungbeanz can you upload a screenshot of your GcodeLeveling setting and the gcode file this failed on.

Mungbeanz commented 3 years ago

Level settings Attached level settings

Mungbeanz commented 3 years ago

Had to upload PDf of file. cant directly link gcode file here without wall of text

Gcode.pdf

Willmac16 commented 3 years ago

@Mungbeanz after some digging I finally found the culprit (this is some added logging in a work in progress version).

octoprint.plugins.gcodeleveling - INFO - Failed Leveling Point: 80.0, 0.0, -0.06992557150451786

It appears that one of the generated endpoints is slightly below 0. If your machine can can move to that position, then you should lower the minimum z value; otherwise, you should bring the points up a little bit since the model believes that the bed goes below 0.

Mungbeanz commented 3 years ago

Wow, that was some good troubleshooting and a half. thanks for you help. How did you find the XYZ values?

Willmac16 commented 3 years ago

I added in that printout into the logger (in some unreleased code) when it errors since I was debugging an issue with my test setup. If you wanted to have that and some other prerelease code You can install it in the plugin manager with the url https://github.com/willmac16/OctoPrint-GcodeLeveling/archive/devel.zip.

gonzagarra commented 3 years ago

I am getting the same error with the "aro2.gcode" file. I tried to lower the minimum value of Z to -5 but it didn't work. Anyway I tried another "nut14.gcode" file and it worked. I think there is a problem with the gcode processing. I uploaded captures, files and log. files.zip

Willmac16 commented 3 years ago

@gonzagarra thank you for the files. I tried your gcode files on my test setup and have some recommendations

Mungbeanz commented 3 years ago

My problem is resolved. I had some other issues with the start and end gcode getting corrupted by the addon. (doing odd movements and mega retractions). This start and end script was added by the slicer. I moved this over to Octopi to do the start and end scripts and since this doesn't go into the edited file by the addon it no longer causes an issue.

gonzagarra commented 3 years ago

@Willmac16 Apparently it worked by changing the polynomial value, but again it went back to the previous value and kept working. I'm going to do some tests and then I report. Thank you.