OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

Can't create a Color Mixing Match from more than 32 filaments

Open Megarushing opened this issue 3 months ago • 4 comments

Is there an existing issue for this problem?

  • [x] I have searched the existing issues

Snapmaker_Orca Version

2.3.6

Operating System (OS)

macOS

OS Version

26.5.2 Tahoe

Additional system information

No response

Printer

Snapmaker U1

How to reproduce

  1. Create a project with more than 32 + n filaments
  2. Start a Color Mixing Match by clicking on the icon besides Filament Manager
  3. Click Start Matching

Actual results

You only get 32 - n matches

Expected results

You should get 32 + n matches instead

Project file & Debug log uploads

This problem lies in the fact that the Color Mixing Matching first creates the mixes and only then removes the Actual filaments from the project, since the maximum possible is 64 if you have 33 filaments or more its not possible to save 33+33>64 those extra filaments will be lost during the color matching. The correct solution is to first remove the filaments and only then add the colour mix filaments in the project, that way keeping it always under 64 and making it possible to have all filaments converted into color mixes

Checklist of files to include

  • [ ] Log file
  • [ ] Project file

Anything else?

Thanks for the great project and printer

Megarushing avatar Aug 27 '26 22:08 Megarushing

Hi @Megarushing, thanks for the detailed report and the very clear analysis!

I dug into this with the team — this is expected behavior, and the feature flags it explicitly when it happens. The project has a hard limit of 64 filament slots, and a match adds the new mix slots while keeping the original color slots (every mix references its source colors by slot ID). When the combined total would exceed the limit, the dialog shows the warning in the screenshot below and the excess mixes are not created — those regions simply keep their original color, with nothing going wrong silently. It just means a project with 33+ colors can't have all of them converted in a single match.

Your suggested order (freeing up the originals first, then adding the mixes) works arithmetically, but it isn't a trivial swap: the mix recipes are defined against the original slots by ID, so removing slots first would leave the recipes dangling, and regions still painted with a removed color would need remapping too. In practice, one match converts at most 32 colors.

For 33+ colors there's unfortunately no clean workaround in a single project right now — keeping the project at 32 or fewer colors before matching is the reliable path.

Thanks again for the thorough report — it really helps!

overflow warning

zhangzhend0ng avatar Aug 31 '26 09:08 zhangzhend0ng

Root cause confirmed: the batch-match flow adds the new mix filaments first and only then removes the replaced originals, so with 33 physical + 33 mixes the transient peak hits 66 and the last mixes are dropped before the cleanup frees the originals. Your suggested "remove first, then add" was not used — the remap needs the new mix ids first, and deleting physicals before it would orphan the model's references.

Fix: the add now gets headroom for exactly the filaments the cleanup is about to free, so the final total after cleanup is still <= 64.

PR: https://github.com/Snapmaker/OrcaSlicer/pull/1200

creat3dworld avatar Nov 14 '26 05:11 creat3dworld

Hi @Megarushing, thanks for the detailed report and the very clear analysis!

I dug into this with the team — this is expected behavior, and the feature flags it explicitly when it happens. The project has a hard limit of 64 filament slots, and a match adds the new mix slots while keeping the original color slots (every mix references its source colors by slot ID). When the combined total would exceed the limit, the dialog shows the warning in the screenshot below and the excess mixes are not created — those regions simply keep their original color, with nothing going wrong silently. It just means a project with 33+ colors can't have all of them converted in a single match.

Your suggested order (freeing up the originals first, then adding the mixes) works arithmetically, but it isn't a trivial swap: the mix recipes are defined against the original slots by ID, so removing slots first would leave the recipes dangling, and regions still painted with a removed color would need remapping too. In practice, one match converts at most 32 colors.

For 33+ colors there's unfortunately no clean workaround in a single project right now — keeping the project at 32 or fewer colors before matching is the reliable path.

Thanks again for the thorough report — it really helps!

overflow warning

Thanks for the throrough reply to my question, indeed with the id mapping it seems more complicated than initially thought, have you noticed PR https://github.com/Snapmaker/OrcaSlicer/pull/1200 the solution for it is to build a temporary headroom and then shrink it back, would that be feasible?

Megarushing avatar Nov 14 '26 12:11 Megarushing

Thanks for the detailed report and analysis. After re-checking this is a defect: the batch match creates the mixes first and only removes the replaced physical filaments afterwards, so 33 physical + 33 mixes momentarily exceeds the 64 cap and the last mixes are dropped before the slots are freed. Our earlier "expected behaviour" reply was inaccurate — correcting it here. A fix is already in review (PR #1200, not yet merged): it reserves the slots the cleanup is about to free, keeping the total ≤ 64 after cleanup. We'll update here once it lands. Until then, a 33+ colour project can't convert everything in one match — work around it by matching in two batches. Feel free to comment with any new reproduction details.

gushanji avatar Nov 26 '26 03:11 gushanji