-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
UFPWriter: SettingFunction is not JSON serializable #13675
Comments
Hey @fuzebox1, Thanks for your report 👍 Are you sure you have the latest version? |
Hi, I have the latest version, yes. |
Same mistake I don't use Octoprint but send it with Connect Moonraker. But as I said in Beta 2 it works with both installed printers. If I turn off UFP thumbnails it works. |
I just installed the 5.2.1 from 5.1, and i get this error with my S8 using a profile i made for PETG |
v5.2.1. i am experiencing this problem as well. it was fine last week. |
I am getting the same problem, I uninstalled and downloaded the latest version, reinstalled and get the same issue. I am connecting via Moonraker. |
I am getting this issue, printing using Moonraker as well. Weirdly, it was working fine for numerous prints last night, then this morning I am getting the error. No other changes etc. I have restarted Klipper firmware just to make sure, but not resolved. Once this print is finished (manual gcode upload) I will restart the whole environment and see if that helped. |
After rebooting everything, and doing an update on everything to do with Klipper for good measure, I am still getting this issue. Note that inbetween it working and not, I hadn't even closed Cura (I had restarted it now though) |
If I disable UFP format, it seems to work (was successfully using UFP previously) |
Hi @jeffoisnz, |
same issue here. Moonraker connection giving the error. Worked great all day then poof. Log attached. Edit: as a workaround, I just created a new printer the menu, move over all my settings and start/end gcode and its working on the "new" printer but not the "old" printer. same machine, same instance of mainsail/moonraker. also, a "duplicate printer" button would be nice :-D Edit 2: that was a lie. my profile changed with the new machine. Using the old profile, i get the error. Actually, any of my custom profiles get the error, and the built in ones do not. I tried duplicating my profiles but no dice. |
We have some trouble trying to reproduce this. Could any of you maybe send us the profiles it's errored for? |
sure, enclosed are 2 profiles, broken and working, named accordingly. settings should be "more or less the same" The plugins I have in cura are: Moonraker Connectoin 1.6.4 by emtrax This is in cura 5.2.1 and uploading to moonraker v0.7.1-780-gdde9bcc mainsail v2.4.1 running klipper v0.11.0-22 hope this helps |
@rochford77 Yes, I'm now able to reproduce! Thanks :-) |
Should be fixed for the 5.3 release I noticed that you use some complex logic in your profiles, which were causing additional errors. This happened due to the missing This can be fixed by defining values such as:
as
See the following documentation for a more in-depth explanation: https://github.com/Ultimaker/Cura/blob/main/docs/profiles/getting_a_setting_value.md |
The error also occurs with the Anycubic Chiron profile included in Cura. |
This profile doesn't look very complex
|
@ckvsoft The error occurs in the profile which @rochford77 shared https://github.com/Ultimaker/Cura/files/10296063/curaprof.zip the Anycubic Chiron is not a profile but a printer definition. If you are encountering problems it is probably something in the profiles |
Same here, not in beta 5.0.0 |
@tispokes This isn't in the plugins though, you'll have to wait for 5.3-beta at least. |
Hey @sampascucci, As mentioned in the discussion: So, unfortunately, you'll have to wait for an official 5.3 to see this fix. |
This issue just happened to me suddenly today for the first time on 5.2.1. I also use Moonraker. I tried changing the print temp initial layer as suggested, but it did not work for me. Changing UFP to regular GCODE did fix it though. Error log mentions UFPWriter. |
@hybridview Thanks for the report. As mentioned previously in this thread a number of times, we've fixed this for 5.3, which isn't out yet. The actual 5.3-beta should be out (very?) shortly though! |
To further clarify something that has also been brought up before: The fix is not yet part of the Cura 5.3 alpha from last december. |
I can confirm that this issue still exists in 5.2.1. HOWEVER, there is also a UPDATE: The plot thickens. Other settings also cause this issue, and sometimes in more complex ways. For example, Top Surface Skin Speed and Top/Bottom Speed are both set to automatically calculate, the problem reappears. If either of these settings are manually set, the problem disappears again. |
the 5.3.0 beta is out can you that version |
👍🏻 5.3.0 beta2 solves it for me. 👎🏻 Line width settings did not solve it. |
Beta2 not available, only source |
It is, as a download for Beta1. The downloads ("assets") for beta1 were replaced with beta2, but the title of the release was not changed. |
Thx, Of course I didn't scroll down that far |
for in 5.3.0 it is fixed but i don't want to update my 5.2.2 version any solution to fix this in 5.2.2 ? |
Install Auto backup Plugin, then update with no trouble at all. |
Hey @goldjunge91, You can have two installations next to each other. Can you share what is preventing you to upgrade to 5.3? |
@MariMakes never change a running system more not :-D |
are you a newbie ? If I had never made an update I would probably still be on version 2. |
Everyone is free to choose which version of Cura they are running. There is no need for name-calling. The reason I ask is to understand what hurdles there are that we can take away. Usually, it's things like "IT is stopping me" "I'm worried about losing settings", or "This one bug is completely blocking my workflow". That is something I can help with. The feeling that slicers are getting worse is not something I can influence without concrete examples. I cannot give you the best of both worlds, but I can point you towards the place where the fix has been applied.
Hope this helps 👍 |
Mine had something to do with the profile settings. There are functions in the profiles, like getting the # of perimeters based on the line width and total wall thickness. It seems like when I overridden the auto values, it worked. |
Application Version
5.2.1
Platform
Windows 10
Printer
custom
Reproduction steps
Slice
Send to Octoprint
Actual results
Get error "object of type SettingFunction is not JSON serializable"
Expected results
Send to Octoprint works as with 5.1.1.
Checklist of files to include
Additional information & file uploads
Apparently this was a bug in the beta of 5.2, but was "fixed". I did not have the beta installed.
At bottom of log you will see an error from UFPWriter, making octoprint addon not able to proceed with write request.
cura.log
The text was updated successfully, but these errors were encountered: