Skip to content

Fix 3MF import crash for silent-mode machine limits with legacy vector sizes#12289

Merged
SoftFever merged 1 commit into
OrcaSlicer:mainfrom
Argolein:3mf-import-crash-fix-pr
Feb 15, 2026
Merged

Fix 3MF import crash for silent-mode machine limits with legacy vector sizes#12289
SoftFever merged 1 commit into
OrcaSlicer:mainfrom
Argolein:3mf-import-crash-fix-pr

Conversation

@Argolein

@Argolein Argolein commented Feb 14, 2026

Copy link
Copy Markdown
Contributor

Normalize printer_options_with_variant_2 (stride=2) machine limit vectors during preset merge to handle legacy 3MF/projects that store only a single (normal,silent) pair despite multiple printer variants, preventing set_with_restore() size-mismatch crashes.

Crash error message during 3MF import as project:

image

3MF attached that causes the bug.
cube.3mf.zip

…r sizes

Normalize printer_options_with_variant_2 (stride=2) machine limit vectors during preset merge to handle legacy 3MF/projects that store only a single
    (normal,silent) pair despite multiple printer variants, preventing set_with_restore() size-mismatch crashes.
@RF47 RF47 added the bug Something isn't working label Feb 14, 2026
@SoftFever

Copy link
Copy Markdown
Collaborator

Thanks @Argolein.
Do you have any idea which OrcaSlicer version the old 3MF file was saved with?

@SoftFever SoftFever left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thank you

@SoftFever SoftFever merged commit 0604aa5 into OrcaSlicer:main Feb 15, 2026
12 checks passed
SoftFever pushed a commit that referenced this pull request Feb 15, 2026
…r sizes (#12289)

Normalize printer_options_with_variant_2 (stride=2) machine limit vectors during preset merge to handle legacy 3MF/projects that store only a single (normal,silent) pair despite multiple printer variants, preventing set_with_restore() size-mismatch crashes.

Crash error message during 3MF import as project:

<img width="833" height="274" alt="image" src="https://github.com/user-attachments/assets/f92148a9-98c6-47b7-a0ab-d5ac8b1f2be4" />

3MF attached that causes the bug. 
[cube.3mf.zip](https://github.com/user-attachments/files/25318309/cube.3mf.zip)
@Argolein

Copy link
Copy Markdown
Contributor Author

@SoftFever

Snapmaker Orca.

But idk really from what version they forked it from.
I'm trying to get the folks in the SM Discord to get to Orca as with the recent Orca release there really is no reason to use Snorca.

@Argolein Argolein deleted the 3mf-import-crash-fix-pr branch February 15, 2026 16:40
valerii-bokhan pushed a commit to valerii-bokhan/OrcaSlicer that referenced this pull request Feb 17, 2026
…r sizes (OrcaSlicer#12289)

Normalize printer_options_with_variant_2 (stride=2) machine limit vectors during preset merge to handle legacy 3MF/projects that store only a single (normal,silent) pair despite multiple printer variants, preventing set_with_restore() size-mismatch crashes.

Crash error message during 3MF import as project:

<img width="833" height="274" alt="image" src="https://github.com/user-attachments/assets/f92148a9-98c6-47b7-a0ab-d5ac8b1f2be4" />

3MF attached that causes the bug. 
[cube.3mf.zip](https://github.com/user-attachments/files/25318309/cube.3mf.zip)
tome9111991 pushed a commit to tome9111991/OrcaSlicer that referenced this pull request Feb 24, 2026
…r sizes (OrcaSlicer#12289)

Normalize printer_options_with_variant_2 (stride=2) machine limit vectors during preset merge to handle legacy 3MF/projects that store only a single (normal,silent) pair despite multiple printer variants, preventing set_with_restore() size-mismatch crashes.

Crash error message during 3MF import as project:

<img width="833" height="274" alt="image" src="https://github.com/user-attachments/assets/f92148a9-98c6-47b7-a0ab-d5ac8b1f2be4" />

3MF attached that causes the bug. 
[cube.3mf.zip](https://github.com/user-attachments/files/25318309/cube.3mf.zip)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants