Skip to content

"Filament used" reported in log and substracted is now incorrect. But gui is correct. #244

@lchabin

Description

@lchabin

Describe the bug
New behavior
Filament used reported in log and substracted incorrect.
Whereas gui displays the correct length and weight for that object. (state area)
And after the print, the gui (filament manager area) displays the wrong final remaining weight after the subtraction (only 0.848g substracted in this example here).

Steps to reproduce
Just 3d print. look at the final weight displayed

Did the same happen when all other 3rd party plugins are disabled?
I have not upgraded any plugin for eons.

Log file
Drag and drop the octoprint.log here.
The gui reports
Filament (Tool 0): 3.97m / 11.94g
Approx. Total Print Time: 00:57:06
which matches the prusa slicer. However...

2026-03-30 20:18:37,090 - octoprint.util.comm - INFO - Finished in 3426.710 s.
2026-03-30 20:18:37,093 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Finishing"
2026-03-30 20:18:37,104 - octoprint.plugins.filamentmanager - INFO - Filament used: 848.14634 mm (tool0)
2026-03-30 20:18:37,121 - octoprint.printer.standard.job - INFO - Print job done - origin: local, path: CylCouvercle2e_0.6n_0.2mm_PLA_MK2S_56m.gcode,
2026-03-30 20:18:37,151 - octoprint.util.comm - INFO - Changing monitoring state from "Finishing" to "Operational"
2026-03-30 20:18:37,563 - octoprint.plugins.navbartemp - INFO - Checking SoC internal temperature
2026-03-30 20:18:37,592 - octoprint.plugins.excluderegion - INFO - Printing stopped: event=PrintDone
2026-03-30 20:18:37,651 - octoprint.plugins.printhistory - INFO - Can't parse additional parameters from /home/pi/.octoprint/uploads/CylCouvercle2e_0.6n_0.2mm_PLA_MK2S_56m.gcode
2026-03-30 20:18:37,765 - octoprint.plugins.stats - INFO - Printer Stats - on_event
2026-03-30 20:19:07,606 - octoprint.plugins.navbartemp - INFO - Checking SoC internal temperature
2026-03-30 20:19:16,084 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2026-03-30 20:19:37,638 - octoprint.plugins.navbartemp - INFO - Checking SoC internal temperature

that's 7.1% of the correct length. That 0.848m is what is substracted to the database.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I have been using that plugin since its creation. The problem has been systematic for about 1 year.
Reprinting the same object makes exactly the same incorrect subtraction.
The database is correct. 1.75mm, 1.25g/cm3 PLA
"Enable software odometer to measure used filament" is ON and is ON since day 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions