fieldOfView / Cura-OctoPrintPlugin

Cura plugin which enables printing directly to OctoPrint and monitoring the process
GNU Affero General Public License v3.0
493 stars 74 forks source link

Crashes when i upload a print #315

Closed mrsamflam closed 1 year ago

mrsamflam commented 1 year ago

whenever i upload a print cura crashes and gives me an error. i can still control the printer from the "Monitor" tab but not upload prints

Traceback: Traceback (most recent call last): File "C:\Users\samga\AppData\Roaming\cura\5.2\plugins\OctoPrintPlugin\OctoPrintPlugin\UploadOptions.py", line 73, in acceptOptionsDialog self._proceed_callback() File "C:\Users\samga\AppData\Roaming\cura\5.2\plugins\OctoPrintPlugin\OctoPrintPlugin\OctoPrintOutputDevice.py", line 581, in proceedRequestWrite if not gcode_writer.write(self._gcode_stream, None): File "cura\Utils\Threading.py", line 31, in _call_on_qt_thread_wrapper return func(*args, **kwargs) File "C:\Program Files\Ultimaker Cura 5.2.1\share\cura\plugins\UFPWriter\UFPWriter.py", line 88, in write json.dump(self._getSliceMetadata(), setting_textio, separators=(", ", ": "), indent=4) File "json__init__.py", line 179, in dump File "json\encoder.py", line 431, in _iterencode File "json\encoder.py", line 405, in _iterencode_dict File "json\encoder.py", line 405, in _iterencode_dict File "json\encoder.py", line 405, in _iterencode_dict File "json\encoder.py", line 438, in _iterencode File "json\encoder.py", line 179, in default TypeError: Object of type SettingFunction is not JSON serializable

mrsamflam commented 1 year ago

So i guess i missed a cura update so i updated to 5.3.1 and it worked perfectly

fieldOfView commented 1 year ago

Yes, this was indeed a Cura issue, out of the control of this plugin.