mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #1201] [Bug]: P2S projects can't be sliced #871
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
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#871
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 @inorichi on GitHub (May 3, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1201
Originally assigned to: @maziggy on GitHub.
Component
Bambuddy
Bug Description
Any model (or most that I've tried) available on Makerworld sliced for the P2S printer fails to slice on Bambuddy due to sentinel values present in the
Metadata/project_settings.configfile.The full error is the following:
Expected Behavior
The slicer produces a .gcode file
Steps to Reproduce
Printer Model
P2S
Bambuddy Version
v0.2.4b1
SpoolBuddy Version
No response
Printer Firmware Version
No response
Installation Method
Docker
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
No response
Screenshots
No response
Additional Context
No response
Checklist
@maziggy commented on GitHub (May 4, 2026):
Confirmed and reproducible from the description. The -1 values in Metadata/project_settings.config are BambuStudio's "inherit from parent process preset" sentinels — the GUI handles this internally, but the headless CLI Bambuddy talks to runs parameter-range validation on the embedded settings before --load-settings overrides apply, which bombs out for any value
the validator's lower bound rejects (raft_first_layer_expansion, tree_support_wall_count, plus likely a few more).
There's a previous experiment in the code that tried stripping the whole project_settings.config to dodge this, but it broke StaticPrintConfig initialisation (silent exit, no useful error) and was reverted. The fix I'm landing is targeted: open the embedded project_settings.config, remove specific known-sentinel keys when their value is exactly "-1", and let the
slicer fall back to the supplied --load-settings defaults. Other fields are left untouched so legitimate negative values aren't accidentally clobbered.
Starting allowlist is the two keys from your error trace; if there are other sentinel-using fields in the same MakerWorld 3MF, the slicer will still error out with the next field's range message — please paste any follow-up Param values in 3mf/config error: : -1 not in range [...] lines and I'll add them to the allowlist.
Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you.
If you find Bambuddy useful, please consider giving it a ⭐ on GitHub — it helps others discover the project!