-
Notifications
You must be signed in to change notification settings - Fork 4
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
Too much filament usage is calculated if print is aborted #58
Comments
Hi @Rednax74, thank you for your report. Please provide clear steps to reproduce this issue. With the currently provided details I'm unable to work on this issue. |
Ok, I tried to reproduce it again and so far I couldn't do it, sorry. I will let you know if something like this happens again. |
ok, now I am sure that somewhere something goes wrong: my 19 h print failed in the last hour of completion (aaargh) due to an serial port issue. Octoprint lost the connection to the printer and went into the "Offline after error" mode. |
I just noticed that I set the logging for spoolman to debug, but in my log overview I see nothing related to spoolman name-wise, I would have expected a dedicated log? Where would I find the spoolman log information? |
@Rednax74 this looks like a completely separate issue - since barely any spool usage has been registered by Spoolman, it seems the Plugin did not commit any usage data at all. I suspect that Spoolman Plugin needs to support a different event type for printer errors (different to currently supported errors). I'll try to investigate that, however I'm not sure if such an edge case is supported by the Octoprint virtual printer which I'm using for development. |
Hm, I am not sure that I understand what you mean... the print failed after maybe 18 h of print, so up to this moment maybe ~300g should have been used. |
The plugin does NOT commit usage in continous intervals (I think that's what Moonraker in the Klipper ecosystem does, which is probably a better approach, although I'm not sure how accurate and performance taxing it is). These are events originating from Octoprint. I have a suspicion that the case you've described here might be yet another event emitted by Octoprint, but I need to investigate that. |
understood, but it seems like the event is covered since there is spoolusage sended (from my very rough understanding): |
@Rednax74 right, initially I didn't catch that "something" has been indeed sent to Spoolman, I assumed that the mentioned 1 or so grams of usage came from some previous usage, sorry for the confusion. Looking at the log above, it indeed seems the plugin sent the data, and I think it actually calculated it correctly? So it seems the calculations of the plugin are correct. Unless Spoolman's API has changed, or you have some unusual config in your Spoolman instance for this filament (eg. weird density set), I really don't see where the problem could be in the plugin itself. |
@Rednax74 Could you please check which version of Spoolman do you currently have, and what's the configuration for the selected spool? |
yeah you are right, the 118947 mm seems to be about right, it's PLA so ~350 g makes sense too. |
Yes, that's exactly what happens. Spoolman's API accepts either |
But maybe you could still put this info in the log, than would make debugging easier especially if someone put wrong data into the database. |
Yes indeed, that's a good idea, will most likely add it in some future update. |
The problem
I just did a couple of retract tests which should use ~ 2g of filament.
I aborted a couple of them and just afterwards I noticed that my spool weight dropped down from ~900 g down to 600 g.
Afterwards I let the prints finish normally and everything looked fine.
The issue could of course als be related to the spoolman database...
Version of octoprint-spoolman
Spoolman (1.1.2)
Version of OctoPrint
Version 1.10.2
Operating system running OctoPrint
OctoPi 0.18.0, running on Raspberry Pi 3 Model B Rev 1.2
Printer model & used firmware incl. version
no-name printer running martlin 2.0.7
Browser and version of browser, operating system running browser
opera under Win10
Checklist of files to include below
Additional information & file uploads
octoprint-systeminfo-20240910084149.zip
The text was updated successfully, but these errors were encountered: