fluidd icon indicating copy to clipboard operation
fluidd copied to clipboard

Thermal device toggle reset after klipper restart

Open thijstriemstra opened this issue 2 years ago • 9 comments

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).

example

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

thijstriemstra avatar Dec 29 '23 19:12 thijstriemstra

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.

Dycus avatar Jun 10 '24 17:06 Dycus

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.

PhilippMolitor avatar Jul 17 '24 13:07 PhilippMolitor

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?

thijstriemstra avatar Oct 20 '24 22:10 thijstriemstra

~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... 🤦

pedrolamas avatar Oct 20 '24 23:10 pedrolamas

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.

pedrolamas avatar Oct 21 '24 08:10 pedrolamas

reproducing it shouldn't be hard at all, i'll doublecheck how to later today.

thijstriemstra avatar Oct 21 '24 15:10 thijstriemstra

@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.

PhilippMolitor avatar Oct 22 '24 08:10 PhilippMolitor

reproducing it shouldn't be hard at all,

Yep, untoggling heaters and restarting Klipper (after a config change) is enough to reproduce this bug.

thijstriemstra avatar Oct 22 '24 16:10 thijstriemstra

Managed to reproduce this consistently, will work for a fix for the next release!

pedrolamas avatar Oct 24 '24 15:10 pedrolamas

for me this bug still happens from time to time, not sure under which conditions..

PhilippMolitor avatar Nov 08 '24 15:11 PhilippMolitor

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...

pedrolamas avatar Nov 08 '24 17:11 pedrolamas

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..

PhilippMolitor avatar Nov 08 '24 17:11 PhilippMolitor

Ok, I just managed to reproduce it by restarting Moonraker... which I had not tested before, only with Klipper!

pedrolamas avatar Nov 08 '24 17:11 pedrolamas

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

pedrolamas avatar Nov 08 '24 18:11 pedrolamas