Thermal device toggle reset after klipper restart
Fluidd Version
1.27.1
Browser
Firefox
Device
Desktop PC
Operating System
Windows
What happened
For some reason whenever Klipper is restarted, a toggled thermal device (Extruder below) is untoggled. Highly annoying because I have to toggle it after every reset (since I don't want it to show up in the graph).
What did you expect to happen
Remember toggled items.
How to reproduce
Toggle thermal device, restart klipper and it'll be untoggled again.
Additional information
No response
I also experience this and would really love if the thermal device view state was always persistent. I have 13 temperature sensors but only want to graph 5 of them, so it's a bit of clicking to reset the graph every time I restart the firmware or turn the printer on. :) (extremely mild inconvenience)
Once in a while I can get a random disconnection from Moonraker, usually after coming back to the printer after an overnight print. This also results in the thermal view state resetting without a firmware restart.
Same for me. It only happens when I reload fluidd via the UI. Once i refresh the browser window, the correct settings are re-applied. Seems to be related to the global store retrieving the settings data.
Is this a moonraker-limitation thing or unclear how to implement this @pedrolamas? i'd love to see this get fixed, and if anyone can help, please let us know.
ps. can we get a moonraker-limitation thing label or moonraker-specific github label instead of just an upstream label for issues like that?
~The thing is Moonraker does not keep aggregated per-file statistics!~
~Currently, we get the history entry (print orders indicating which file was printed, when, and a bunch of metadata), but we don't ask ALL the entries from Moonraker to keep memory usage under control.~
~So we can calculate per-file stats from that subset of history data we get from Moonraker, but ideally it would be great if Moonraker can provide that (which currently I don't think it can).~
Please ignore this, I got mixed up and replied to the wrong thread... 🤦
Is this a moonraker-limitation thing or unclear how to implement this @pedrolamas? i'd love to see this get fixed, and if anyone can help, please let us know.
This is most likely a Fluidd bug, possibly a race condition of sort that is happening here... Reproducing is hard so I haven't had the chance to check on this, but will try to prioritize for one of the next releases.
reproducing it shouldn't be hard at all, i'll doublecheck how to later today.
@thijstriemstra I think for me it happened almost always when restarting klipper. i use a moonraker power device to enable my 24V PSU, and I toggle that with the UI switch. It also controls the klipper service when set up correctly in moonraker.
reproducing it shouldn't be hard at all,
Yep, untoggling heaters and restarting Klipper (after a config change) is enough to reproduce this bug.
Managed to reproduce this consistently, will work for a fix for the next release!
for me this bug still happens from time to time, not sure under which conditions..
I am currently doing some work on that area but have yet to see that fail!
I will keep my eyes on top of this and run a few more tests, but without being able to consistently reproduce, it will be very tricky to change anything...
i edited my config a lot and had a lot of restarts of the firmware and the klipper service, maybe it happens when the connection just breaks away because of that..
Ok, I just managed to reproduce it by restarting Moonraker... which I had not tested before, only with Klipper!
Ok, I just managed to reproduce it by restarting Moonraker... which I had not tested before, only with Klipper!
I have just pushed a fix for the above scenario: https://github.com/fluidd-core/fluidd/commit/24d0db9515f20fc7715c3b01fecd70ddf88489e4