Closed paukstelis closed 1 year ago
Hi.
It seems that the path property is missing. I do not know if it is optional or required from OctoPrint but it linked to the file uploaded before processing. I need that actually to determine the slicer for correct handling before parsing the GCODE.
Is it possible to simply trigger the recovery and debug it in your plugin? Also it is interesting what your plugin is doing. I can have a look then.
Cheers, Nils
I typically do programmatic testing using an OctoPrint instance running in a VM via the command-line. That way, I can just kill the server after a print is started. The recovery file is generated when the server is re-started and the virtual printer is connected.
Hi,
I implemented a check if path parameter is available and if not there is no slicer detection. Could you finally test if this is working in our case? You have to switch on development version in my plugin settings.
Finally I am not sure if the path parameter should be there as it has to be a type of DiskFileWrapper or if it is not required at this step. https://docs.octoprint.org/en/master/modules/filemanager.html#octoprint.filemanager.util.AbstractFileWrapper
But anyway it should not run into an exception anymore.
Cheers, Nils
I maintain the Power Failure plugin, and recently had a user describe an issue in which the recovery gcode file generated by the plugin was not being written. Disabling Slicer Estimator fixes this problem. It seems that perhaps there is some kind of race condition opening/closing the file stream that causes both plugins to fail. See log output below. Not sure if there is a simple or straightforward fix for this.