mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #459] [Bug]: Filament not deducted when spool runs empty during print (Auto Sync spool also not counted) #285
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#285
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kleinerflo on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/459
Originally assigned to: @maziggy on GitHub.
Bug Description
When a filament spool runs empty during an active print, the filament usage is not properly deducted.
Additionally, if Auto Sync is enabled and a second spool is configured as a replacement, the consumption is also not deducted from that second spool after the automatic switch.
Other filaments used in the same multi-color print are counted correctly
Expected Behavior
Steps to Reproduce
Printer Model
P2S
Bambuddy Version
0.2.1b
Printer Firmware Version
01.01.01.00
Installation Method
Docker
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
Screenshots
No response
Additional Context
No response
Checklist
@maziggy commented on GitHub (Feb 20, 2026):
Please use branch 0.2.1b2 and provide support package.
https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging
@pichler583-cell commented on GitHub (Feb 20, 2026):
Start Print with B2 and runout to A3
bambuddy-support-20260220-073712.zip
@maziggy commented on GitHub (Feb 20, 2026):
Good catch! Should be fixed in branch 0.2.1b2. Please let me know how it goes.
@pichler583-cell commented on GitHub (Feb 21, 2026):
I tested Beta 2
The spool where the print initially started is counting all consumption correctly — but that includes the material that was actually used after the automatic switch.
Example scenario:
Print started on A2 → filament runout → automatic switch to A1.
Result:
A2 shows the full consumption of the entire print (including the part that was physically printed from A1).
A1 shows no consumption at all, even though the printer continued printing from A1 after the runout.
bambuddy-support-20260221-075109.zip
:
@maziggy commented on GitHub (Feb 21, 2026):
The weight splitting fix is now in 0.2.1b2. Previously, even though the spool assignment snapshot fix ensured both spools were found at print completion, the entire 3MF weight was still attributed to the original spool (the one loaded at print start).
Now Bambuddy tracks tray changes during the print — when the AMS auto-switches to a backup spool after runout, the tray change and the layer number are recorded. At print completion, the 3MF weight is split across the trays using per-layer gcode data from the 3MF file for precise segment boundaries. If per-layer data isn't available, it falls back to a linear split by layer ratio (still much better than 100%/0%).
In your example (A2 → runout → A1), both spools should now show proportional usage based on how many layers each printed.
Please let me know if it works now.