1
0
Fork 0
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

Closed
opened 2026-05-07 00:08:28 +02:00 by BreizhHardware · 5 comments

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

  • The first spool should be deducted until it runs empty.
  • After Auto Sync switches to the second spool, filament usage should continue to be deducted from the second spool.
  • Total filament consumption should reflect the full material us

Steps to Reproduce

  1. Enable Auto Sync and assign a second spool as automatic fallback for a filament.
  2. Start a print job (single-color or multi-color).
  3. Let the active filament spool run empty during the print.
  4. Allow the printer to automatically switch to the second spool via Auto Sync.
  5. After the print (or after the switch), check the filament weight tracking for both spools.

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

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
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 - The first spool should be deducted until it runs empty. - After Auto Sync switches to the second spool, filament usage should continue to be deducted from the second spool. - Total filament consumption should reflect the full material us ### Steps to Reproduce 1. Enable Auto Sync and assign a second spool as automatic fallback for a filament. 2. Start a print job (single-color or multi-color). 3. Let the active filament spool run empty during the print. 4. Allow the printer to automatically switch to the second spool via Auto Sync. 5. After the print (or after the switch), check the filament weight tracking for both spools. ### 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 ```shell ``` ### Screenshots _No response_ ### Additional Context _No response_ ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode
Author
Owner

@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

<!-- gh-comment-id:3932167575 --> @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
Author
Owner

@pichler583-cell commented on GitHub (Feb 20, 2026):

Start Print with B2 and runout to A3

bambuddy-support-20260220-073712.zip

<!-- gh-comment-id:3934069348 --> @pichler583-cell commented on GitHub (Feb 20, 2026): Start Print with B2 and runout to A3 [bambuddy-support-20260220-073712.zip](https://github.com/user-attachments/files/25442032/bambuddy-support-20260220-073712.zip)
Author
Owner

@maziggy commented on GitHub (Feb 20, 2026):

Good catch! Should be fixed in branch 0.2.1b2. Please let me know how it goes.

<!-- gh-comment-id:3934403512 --> @maziggy commented on GitHub (Feb 20, 2026): Good catch! Should be fixed in branch 0.2.1b2. Please let me know how it goes.
Author
Owner

@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

Image Image

:

<!-- gh-comment-id:3938315489 --> @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](https://github.com/user-attachments/files/25456230/bambuddy-support-20260221-075109.zip) <img width="496" height="128" alt="Image" src="https://github.com/user-attachments/assets/a3a7303f-a667-42a7-817d-91d0573d2362" /> <img width="457" height="457" alt="Image" src="https://github.com/user-attachments/assets/1ede64a0-7100-46e7-8864-f1a4fd3d30bc" /> :
Author
Owner

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

<!-- gh-comment-id:3938452523 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#285
No description provided.