OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

CLI robustness: Application metadata with missing project settings/plates causes access violation

Open antonio94770 opened this issue 1 month ago • 0 comments

Scope clarification, 2026-10-29: the access violation was reproduced again, but the input is a deliberately incomplete synthetic project. This is a robustness report about handling missing project metadata, not a claim that normal GUI-saved projects crash. The older plate-only case is fixed in 2.4.1.

Is there an existing issue for this problem?

  • [x] I have searched the existing issues

Snapmaker_Orca Version

2.4.1, official Windows installer; reproduced on 2026-10-28.

Operating System (OS)

Windows

OS Version

Windows 11

Printer

Snapmaker U1 (0.4 nozzle), bundled 0.20mm High Quality @Snapmaker U1 (0.4 nozzle) process and Generic PLA presets. Offline CLI slicing, no physical print required.

Related: #935 describes the older plate-data crash. The plate-only control now succeeds on 2.4.1; this is a remaining metadata case.

How to reproduce

Run the linked suite and compare safe-project, plate-only and application-only. The latter inserts <metadata name="Application">Snapmaker_Orca-2.4.1</metadata> into 3D/3dmodel.model of the same synthetic project, without Metadata/project_settings.config or a <plate> section. The command loads working flattened presets and uses --slice 0 --arrange 0 --allow-newer-file.

Actual results

application-only: exit 3221225477 (0xC0000005), zero G-code files. safe-project and plate-only: exit 0, one G-code each, 3915 s / 19.61 g, 108 tool changes. The generated inputs and exact command are retained by the script.

Expected results

Slice geometry with the supplied settings, or reject incomplete project metadata with a clear diagnostic rather than an access violation.

Project file & Debug log uploads

Reproducer script and recorded results, pinned to the tested revision. The script generates the inputs and preserves each command (command.json), input settings, output and combined stdout/stderr (slicer.log) in a separate probe directory. Raw logs are not attached here. To reproduce with Python >= 3.11 and Orca 2.4.1 installed:

git clone https://github.com/antonio94770/Snapmaker-U1-Print-Copilot.git

cd Snapmaker-U1-Print-Copilot

git checkout aa73504769f591bb9c993c9b662de601251da4e6

python -m pip install -e .

python research/m4-probe/recheck_release.py C:/orca-cli-recheck

Use a fresh short absolute work directory that does not already exist. The script copies bundled presets and does not modify the installation or user presets or communicate with a printer. The suite includes intentional crash probes, each with a 45-second timeout. Commands use Windows-style paths and four filament presets.

Checklist of files to include

  • [ ] Raw log file attached (preserved locally by the script)
  • [x] Reproducer and input-generation code linked above

antonio94770 avatar Oct 29 '26 13:10 antonio94770