Closed charredchar closed 3 months ago
Hi @charredchar, thanks for opening this issue.
Can I ask that you upload a sample gcode file where you see this happening so we can use it for testing?
Sorry for the delay, I wanted to slice files that were exactly the same except for which extruder is selected and verify before uploading. The one labeled with T5
will return the Filament amount is unknown
error.
Oneplus_6_Light.zip
Thank you for providing the files @charredchar, I just tried this and can confirm the problem.
Having said this, this needs to be fixed upstream in Moonraker, as the "total_filament" is being returned from Moonraker API as 0.
Fluidd Version
v1.26.2-968bdc8
Browser
Chrome
Device
Laptop
Operating System
Windows
What happened
When slicing a file on a printer with multiple extruders (using an MMU, etc) and you don't have the first or "default" extruder printing anything Fluidd will warn that it does not know how much filament is needed for the print.
What did you expect to happen
Fluidd checks either the first filament used or total used and compare it to the selected spool.
How to reproduce
Slice a print using multiple extruders but do not have anything using the first or "default" extruder.
Additional information
Digging deeper into this I think Fluidd is checking the
filament used
fields in the gcode file and only using the first entry. A normal file with multiple extruders but only using T0 will look like this and has no issues.Slicing with only using the T4 will look like this and throw an error.
As you can see the first few are all zeros because I never used those extruders. It would be simple to just use the
total filament used
field instead but this would also be inaccurate for selecting a spool at start when you're using say 3 different spools during the entire print. I have no clear answer on how to resolve this beyond making some attempt to mark each comma separated filament used to a spool in Spoolman at the start of every print... Or read the GCode file for how much filament is used between the start of a print and the switch to a new tool and only use that for the initial print selection. But so far if I am not using only a single spool I basically have to completely ignore the first selection and its warnings when starting a print.