U1 Dry Run: test a sliced file on the real U1 firmware, no printer needed

I have read and understood all rules of the Innovation Fund Phase 2

on

I consent to my project information (username, project cover, summary, etc.) being publicly displayed for review and showcase

on

Username (for public display)

alandebortolo

Project name

U1 Dry Run

Project URL

Project cover

Project Category

Software

Project Summary

U1 Dry Run lets you test any sliced file on Snapmaker’s real U1 firmware code in seconds, with no printer on the desk, on a laptop or in CI. It tells you if the firmware would stop the print, and if the nozzle would drag across a surface that is already finished.

Demo video and a live sample report: in my reply below this post, and in the repository README.

How it connects to the U1. It builds Snapmaker’s own u1-klipper (pinned commit, firmware 2.0.0), generates the data dictionaries for the U1’s AT32 boards from the Kconfig files in lava/, and runs Klipper in batch mode with lava/printer.cfg and fluidd.cfg. Kinematics, limits, macros and tool-change code run as shipped. Only sections that need absent hardware or services are commented out. A small Klipper module records every toolhead move and simulates the dock mechanically, so the firmware’s own _cmd_SWITCH_EXTRUDER runs its full park and pick sequence and passes its own checks.

The pain point. Today the only way to learn that a slicer release, a start G-code change or a firmware mod broke something is to print and look. @pipewrx found the Orca 2.4.1 final toolchange scratch that way, after repeated prints and comparing G-code by hand.

First result. I sliced the same two-color plate with the official 2.4.0 and 2.4.1 releases, default U1 profiles. 2.4.0 lifts to Z3.65 and travels: clean, exit 0. 2.4.1 travels at Z3.05, the height of the surface it just printed: scar at line 38910, 82 mm of finished surface at 0.00 mm clearance, exit 1. That is the regression from the forum report, found with no printer. A move past the bed limit gets the firmware’s own “Move out of range” with the G-code line, exit 2. As a fidelity check, the firmware’s motion time lands next to the slicer’s estimate: 7120 s against 7153 s on 2.4.1.

Using it. docker build from the repo, docker run on your file, and you get a report.html and report.json. A GitHub Action lets a slicer fork or firmware mod fail its build on a new scar. Unit tests and end-to-end runs of the real firmware run on every push.

Limits, stated up front. A U1 owner ran it on a vanilla Orca file they had already printed without trouble (post 15). The first run exposed a real bug in my tool, fixed the same day (post 17); after the fix the same file came back clean, 1,038,009 moves accepted (post 19). So a known-good print produced no false alarm on someone else’s machine. A predicted scar has not been checked against a physical print yet: the physical evidence for the example is still the forum report. There is no physics: no heating, ooze, flow or sensors. Commands that wait on hardware are skipped and listed in every report, and the start block before the first layer does not run. A scar is a geometric prediction, not a measurement. I built it with AI coding assistance.

If you have a U1 and a print that scratched or failed mid-way, please run it and tell me what it says, right or wrong.

Open Source Status

Open Source

Please specify the open source license used by this project

GPL-3.0

Cash Fund or U1 Hardware Sponsorship

Cash Fund

Originality

Original New Idea

If based on an existing project — your independent contribution

N/A

Is it a paid project?

No

Technical details, for anyone who wants to check the claims above.

How it works

  1. The Docker image builds the pinned u1-klipper commit (93cb12f, firmware 2.0.0) and generates the data dictionaries from Snapmaker’s own Kconfig files, lava/at32f403a_config for the main board and lava/at32f415_config for the toolheads.
  2. Klipper runs in batch mode (klippy.py -i file -o out -d dict) with lava/printer.cfg and lava/fluidd.cfg. These sections are commented out because the hardware or service is absent: mqtt, timelapse, fm175xx_reader, filament_detect, resonance_tester, the accelerometers, homing_precise_corexy, homing_xyz_override.
  3. A small extras module wraps toolhead.move, so it sees macro motion as well as slicer moves. G28 declares each axis at its position_endstop. The dock is simulated mechanically from the moves themselves: at the dock Y, sliding X onto a tool’s xy_park_position releases it, sliding off grabs it. The park detector then reports the matching state, so _cmd_SWITCH_EXTRUDER runs its full sequence and passes its own park and pick checks.
  4. The analysis builds a height map in 0.5 mm cells from the extrusion moves. A scar is a non-extruding move, 5 mm or longer, within 0.05 mm of a cell that has already reached its final height. Material printed over later does not count, Z is followed along ramped lifts, and prime tower extrusion is ignored.

What ran in the example

Both files are in examples/ in the repo, along with the two STLs and the profile recipe, so anyone can repeat this. Default profiles: Snapmaker U1 (0.4 nozzle), 0.20mm Standard, Snapmaker PLA in both tools.

sign-orca-2.4.0.gcode.gz: 45773 moves, 15 tool changes
motion time 7264 s (no heating), about 54 s of it firmware tool-change motion
clean: firmware accepted every command, no travel across a finished surface

sign-orca-2.4.1.gcode.gz: 34368 moves, 15 tool changes
motion time 7120 s (no heating), about 53 s of it firmware tool-change motion
SCAR line 38910 (gcode, extruder1): [65.52, 143.71] -> [19.84, 224.85] at Z3.05 crosses 82.0 mm of finished surface, clearance 0.00 mm

Line 38910 of the 2.4.1 file is G1 X19.842 Y224.850 F30000, right after ; CP TOOLCHANGE UNLOAD, with no lift before it.

Try it

docker build -t u1-dryrun https://github.com/DesignMaster-Solutions/u1-dryrun.git
docker run --rm -v "$PWD:/work" u1-dryrun my-print.gcode.3mf

Exit code 0 is clean, 1 is scars found, 2 is the firmware rejected the file. If you maintain a slicer fork, the Extended Firmware or a macro pack, tell me what you would want it to check next.

So a U1 emulator then. Nice.

Thanks! That’s the idea: catch a bad move before it costs a print.

Demo video, 2 minutes. The terminal output is real, from both slicer releases and the out-of-range file in the repo’s examples folder. The voice is synthetic.

Live sample report from the real 2.4.1 run, with the part in grey and the scar in red:

The clean 2.4.0 report sits next to it, and the README links both.

Can you provide no-assumptions step-by-step instructions for doing this? Obviously I can google what Docker is, but I don’t actually know and I guess a lot of other readers will be in the same boat. What platform does it run on? What do you have to download?

Yes, absolutely. I jumped straight to the commands and skipped the getting-started part, sorry about that!

Docker is an app that runs U1 Dry Run with the software it needs bundled together. You do not need to learn programming, install Python, connect a printer or change its firmware.

The Docker route is intended for Windows, Mac and Linux computers. Here is the first-run walkthrough for Windows and Mac; Linux uses Docker Engine and the same build/run commands.

  1. Install Docker Desktop.
    Windows: download and follow the installer here: Install Docker Desktop on Windows | Docker Docs
    Use the WSL 2 option (the small Linux environment Docker uses). That page includes the WSL setup steps if your computer needs them. Restart if prompted, then open Docker Desktop from Start.

Mac: download here: Install Docker Desktop on Mac | Docker Docs
Choose Apple silicon for an M-series Mac, or Intel for an Intel Mac. Apple menu > About This Mac tells you which you have. Open the downloaded .dmg, drag Docker to Applications, then open Docker from Applications.

Leave Docker Desktop running and wait until its engine is ready. The linked pages list the supported operating-system versions.

  1. Open a command window.
    On Windows, open Start, type PowerShell and open it (use PowerShell, not Command Prompt). On Mac, press Command-Space, type Terminal and open it.

Paste this line and press Enter:

docker version

You should see both Client and Server information. If it says it cannot connect to the Docker daemon, Docker Desktop is not ready yet. If it cannot find the docker command, close and reopen PowerShell/Terminal after installation.

  1. Download and prepare U1 Dry Run.
    Paste this whole line and press Enter:
docker build -t u1-dryrun https://github.com/DesignMaster-Solutions/u1-dryrun.git

This downloads the project and builds its packaged environment. The first build can take several minutes and prints lots of text. Wait until the command prompt returns successfully. You do this once to get started, not for every print. You do not need a separate GitHub download or a GitHub account.

  1. Create a folder for your test.
    Run these lines one at a time in the same window:
cd ~
mkdir u1-test
cd u1-test

That creates u1-test in your home folder. To open it in your file manager, use explorer . on Windows or open . on Mac.

  1. Put a sliced file in that folder.
    In Snapmaker Orca, slice your plate for the U1 and export the sliced G-code into u1-test. Use the actual exported filename below, including its extension. A model STL or an unsliced project 3MF is not the input; it needs to be .gcode or a .gcode.3mf containing sliced G-code.
  2. Run the check.
    In that same PowerShell/Terminal window, paste this, replacing only my-print.gcode with your filename. Keep the quotes, including around filenames with spaces:
docker run --rm -v "${PWD}:/work" u1-dryrun "my-print.gcode"

The ${PWD} part means the folder you are currently in. Docker makes that folder available to U1 Dry Run, so the report comes back to your computer.

  1. Open the result.
    Inside u1-test, open the new u1-dryrun-report folder and double-click report.html. It opens in your browser. CLEAN means no problem was detected by these checks; SCAR means a predicted scrape; a firmware error means the firmware rejected something. A clean result is not a guarantee of a successful physical print: heating, material behaviour and real sensors are not simulated.

Each run uses the same report folder, so copy it elsewhere before the next run if you want to keep both results.

Which operating system and version are you using? I can walk you through the matching steps without making you translate between platforms.

Great, thank you.

I’ll be using Linux Mint 22.3. I will have a go first and see how I get on without further instructions.

(I don’t have a failed slicer output to test, but result code 0 will be something!)

Sounds good, thanks for giving it a go! A clean run is useful feedback too. I’ll be interested to hear how you get on with Mint, even if there’s nothing to report beyond a 0.

Using Linux Mint 22.3:–

I opened a terminal and tried > docker version, that got a nada so I went into Software Manager and typed “docker” into the search bar. The first hit for that was Docker.io so I installed it. That gave me a response to > docker version on the command line, but only client (not server).

So then I checked the documentation on the Docker.io page in Software Manager, and under Reviews there was a comment to check the instructions at https://gist.github.com/cstroe/d56256091f98e836c1a3de59a66aaa72:

Docker is available in the default repositories. You can install via apt:

sudo apt install docker.io

Then add yourself to the docker group:

sudo usermod -a -G docker $(whoami)

Restart the docker service:

sudo systemctl restart docker

and relogin, reboot, or start a new login shell

GUI instructions are also provided, but the details have changed a bit since LM20 (when that was written), so it is easier to follow the CLI instructions than explain how to do it on the desktop.

Having installed docker from the Software Manager, obviously it wasn’t necessary to install it again on the command line.

However, having restarted docker, logged out, and logged back in again, I still didn’t get a server response to > docker version despite that I checked my login was indeed in the docker group. It required a full reboot to resolve, logging out and in was not sufficient.

$ docker version
Client:
 Version:           29.1.3
 API version:       1.52
 Go version:        go1.24.4
 Git commit:        29.1.3-0ubuntu3~24.04.2
 Built:             Wed Apr 29 16:41:06 2026
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          29.1.3
  API version:      1.52 (minimum version 1.44)
  Go version:       go1.24.4
  Git commit:       29.1.3-0ubuntu3~24.04.2
  Built:            Wed Apr 29 16:41:06 2026
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          2.2.1
  GitCommit:        
 runc:
  Version:          1.3.4-0ubuntu1~24.04.1
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:

However, I then ran into another road block when “docker build” was declared deprecated, and advised to install “buildx”:

$ docker build -t u1-dryrun https://github.com/DesignMaster-Solutions/u1-dryrun.git

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

unable to prepare context: unable to 'git clone' to temporary context directory: error fetching: fatal: couldn't find remote ref master
: exit status 128

Just search for “buildx” in Software Manager and install it.

Docker build took 1,000 seconds on my AMD Ryzen 6-core!

$ docker build -t u1-dryrun https://github.com/DesignMaster-Solutions/u1-dryrun.git
[+] Building 1002.9s (13/13) FINISHED                            docker:default

The docker run command now executes:

Note that docker does not support the usual tab for auto-completion, but:

Running this on one of my Orca files unearthed a bug, here’s a run completed after the OP posted a revision:

The output, apart from the terminal report quoted above, is a set of intermediate and report files in a report folder created in the working directory, including an HTML rendering of the print footprint with any detected potential scarring (I presume). Note that I have not tested a file that has failures in it.

I’m hoping the docker run command can be encapsulated in an easy script, which I will update this post to reflect.

PLEASE NOTE: Inexperienced Linux users, and particularly Windows users who have migrated to Linux, might well think all that was too much messing about and not for them. Well, (1) it’s all part of the learning curve, and it’s useful that another inexperienced user documents things an experienced user would ignore as normal, and (2) Linux is not Windows. Windows tries to be all things to all men with everything installed and hidden away whether you need it or not, but Linux (depending which Linux in particular) leaves it to the user to decide what facilities they want to install without those facilities being an unnecessary burden on everyone else. You need to be more pro-active in Linux; if you want to be blazé and take a disinterested approach, stick with Windows. Linux Mint comes with most things you might want on a day-to-day basis already configured though.

Glad the reboot sorted it out, and thanks for documenting the Mint steps! If docker version now shows both Client and Server without the permission error, you can carry on with the build step.

One small clarification for anyone following along: $(whoami) is meant to be pasted exactly as written, including the dollar sign and parentheses. The terminal substitutes your login name automatically. Using your actual login name instead is fine too. No need to repeat that step now that it is working.

I look forward to hearing how the first run goes!

Oh, OK. I presumed it was for the user to replace for themselves!

However, please see post edit above.

I am now installing buildx.

Thanks for sticking with it! I should have covered the Linux setup more clearly in the walkthrough. Let me know how the build goes once that finishes.

I’ve got this:

$ docker run --rm -v "${PWD}:/work" u1-dryrun BalloonStandBase-Shell_PLA_4h7m.gcode
BalloonStandBase-Shell_PLA_4h7m.gcode: 0 moves, 0 tool changes
motion time 0 s (no heating), about 0 s of it firmware tool-change motion
FIRMWARE ERROR near line 464: Must home X axis first: 106.012 187.357 0.000 [0.136]
FIRMWARE ERROR near line 465: Must home X axis first: 103.528 185.847 0.000 [0.132]
FIRMWARE ERROR near line 466: Must home X axis first: 101.045 184.165 0.000 [0.136]
FIRMWARE ERROR near line 467: Must home X axis first: 98.640 182.349 0.000 [0.137]
FIRMWARE ERROR near line 468: Must home X axis first: 96.417 180.492 0.000 [0.132]
FIRMWARE ERROR near line 469: Must home X axis first: 94.285 178.523 0.000 [0.132]
FIRMWARE ERROR near line 470: Must home X axis first: 92.184 176.383 0.000 [0.136]
FIRMWARE ERROR near line 471: Must home X axis first: 90.187 174.127 0.000 [0.137]
FIRMWARE ERROR near line 472: Must home X axis first: 88.376 171.866 0.000 [0.132]
FIRMWARE ERROR near line 473: Must home X axis first: 86.616 169.425 0.000 [0.137]
FIRMWARE ERROR near line 474: Must home X axis first: 85.039 166.995 0.000 [0.132]
FIRMWARE ERROR near line 475: Must home X axis first: 83.582 164.486 0.000 [0.132]
FIRMWARE ERROR near line 476: Must home X axis first: 82.206 161.822 0.000 [0.136]
FIRMWARE ERROR near line 477: Must home X axis first: 80.861 158.835 0.000 [0.149]
FIRMWARE ERROR near line 478: Must home X axis first: 79.807 156.132 0.000 [0.132]
FIRMWARE ERROR near line 479: Must home X axis first: 78.890 153.384 0.000 [0.132]
FIRMWARE ERROR near line 480: Must home X axis first: 78.078 150.482 0.000 [0.137]
FIRMWARE ERROR near line 481: Must home X axis first: 77.419 147.556 0.000 [0.136]
FIRMWARE ERROR near line 482: Must home X axis first: 76.922 144.697 0.000 [0.132]
FIRMWARE ERROR near line 483: Must home X axis first: 76.568 141.822 0.000 [0.132]
FIRMWARE ERROR near line 484: Must home X axis first: 76.347 138.822 0.000 [0.137]
FIRMWARE ERROR near line 485: Must home X axis first: 76.281 135.925 0.000 [0.132]
FIRMWARE ERROR near line 486: Must home X axis first: 76.360 132.913 0.000 [0.137]
FIRMWARE ERROR near line 487: Must home X axis first: 76.593 129.923 0.000 [0.136]
FIRMWARE ERROR near line 488: Must home X axis first: 76.961 127.045 0.000 [0.132]
FIRMWARE ERROR near line 489: Must home X axis first: 77.470 124.193 0.000 [0.132]
FIRMWARE ERROR near line 490: Must home X axis first: 78.144 121.256 0.000 [0.137]
FIRMWARE ERROR near line 491: Must home X axis first: 78.965 118.372 0.000 [0.136]
FIRMWARE ERROR near line 492: Must home X axis first: 79.896 115.623 0.000 [0.132]
FIRMWARE ERROR near line 493: Must home X axis first: 80.960 112.929 0.000 [0.132]
FIRMWARE ERROR near line 494: Must home X axis first: 82.203 110.184 0.000 [0.137]
FIRMWARE ERROR near line 495: Must home X axis first: 83.579 107.519 0.000 [0.136]
FIRMWARE ERROR near line 496: Must home X axis first: 85.036 105.009 0.000 [0.132]
FIRMWARE ERROR near line 497: Must home X axis first: 86.613 102.579 0.000 [0.132]
FIRMWARE ERROR near line 498: Must home X axis first: 88.372 100.139 0.000 [0.137]
FIRMWARE ERROR near line 499: Must home X axis first: 90.183 97.878 0.000 [0.132]
FIRMWARE ERROR near line 500: Must home X axis first: 92.181 95.621 0.000 [0.137]
FIRMWARE ERROR near line 501: Must home X axis first: 94.066 93.692 0.000 [0.123]
FIRMWARE ERROR near line 503: Must home X axis first: 94.385 94.004 0.000 [0.000]
FIRMWARE ERROR near line 506: Must home X axis first: 94.408 93.980 0.000 [0.001]
FIRMWARE ERROR near line 507: Must home X axis first: 96.512 92.019 0.000 [0.131]
FIRMWARE ERROR near line 508: Must home X axis first: 98.714 90.163 0.000 [0.131]
FIRMWARE ERROR near line 509: Must home X axis first: 101.081 88.359 0.000 [0.135]
FIRMWARE ERROR near line 510: Must home X axis first: 103.544 86.674 0.000 [0.136]
FIRMWARE ERROR near line 511: Must home X axis first: 105.999 85.166 0.000 [0.131]
FIRMWARE ERROR near line 512: Must home X axis first: 108.614 83.737 0.000 [0.135]
FIRMWARE ERROR near line 513: Must home X axis first: 111.201 82.484 0.000 [0.131]
FIRMWARE ERROR near line 514: Must home X axis first: 113.858 81.357 0.000 [0.131]
FIRMWARE ERROR near line 515: Must home X axis first: 116.646 80.332 0.000 [0.135]
FIRMWARE ERROR near line 516: Must home X axis first: 119.407 79.474 0.000 [0.131]
FIRMWARE ERROR near line 517: Must home X axis first: 122.289 78.730 0.000 [0.135]
FIRMWARE ERROR near line 518: Must home X axis first: 125.213 78.135 0.000 [0.136]
FIRMWARE ERROR near line 519: Must home X axis first: 128.061 77.699 0.000 [0.131]
FIRMWARE ERROR near line 520: Must home X axis first: 131.032 77.397 0.000 [0.136]
FIRMWARE ERROR near line 521: Must home X axis first: 133.903 77.248 0.000 [0.131]
FIRMWARE ERROR near line 522: Must home X axis first: 136.889 77.244 0.000 [0.136]
FIRMWARE ERROR near line 523: Must home X axis first: 140.030 77.401 0.000 [0.143]
FIRMWARE ERROR near line 524: Must home X axis first: 142.983 77.706 0.000 [0.135]
FIRMWARE ERROR near line 525: Must home X axis first: 145.841 78.143 0.000 [0.131]
FIRMWARE ERROR near line 526: Must home X axis first: 148.750 78.740 0.000 [0.135]
FIRMWARE ERROR near line 527: Must home X axis first: 151.544 79.458 0.000 [0.131]
FIRMWARE ERROR near line 528: Must home X axis first: 154.386 80.344 0.000 [0.135]
FIRMWARE ERROR near line 529: Must home X axis first: 157.100 81.339 0.000 [0.131]
FIRMWARE ERROR near line 530: Must home X axis first: 159.834 82.501 0.000 [0.135]
FIRMWARE ERROR near line 531: Must home X axis first: 162.429 83.759 0.000 [0.131]
FIRMWARE ERROR near line 532: Must home X axis first: 165.039 85.190 0.000 [0.135]
FIRMWARE ERROR near line 533: Must home X axis first: 167.497 86.699 0.000 [0.131]
FIRMWARE ERROR near line 534: Must home X axis first: 169.952 88.384 0.000 [0.135]
FIRMWARE ERROR near line 535: Must home X axis first: 172.247 90.130 0.000 [0.131]
FIRMWARE ERROR near line 536: Must home X axis first: 174.521 92.050 0.000 [0.135]
FIRMWARE ERROR near line 537: Must home X axis first: 176.636 94.022 0.000 [0.131]
FIRMWARE ERROR near line 538: Must home X axis first: 178.704 96.154 0.000 [0.135]
FIRMWARE ERROR near line 539: Must home X axis first: 180.609 98.323 0.000 [0.131]
FIRMWARE ERROR near line 540: Must home X axis first: 182.396 100.574 0.000 [0.131]
FIRMWARE ERROR near line 541: Must home X axis first: 184.136 103.001 0.000 [0.136]
FIRMWARE ERROR near line 542: Must home X axis first: 185.690 105.420 0.000 [0.131]
FIRMWARE ERROR near line 543: Must home X axis first: 187.180 108.008 0.000 [0.136]
FIRMWARE ERROR near line 544: Must home X axis first: 188.486 110.569 0.000 [0.131]
FIRMWARE ERROR near line 545: Must home X axis first: 189.710 113.293 0.000 [0.136]
FIRMWARE ERROR near line 546: Must home X axis first: 190.755 115.971 0.000 [0.131]
FIRMWARE ERROR near line 547: Must home X axis first: 191.702 118.803 0.000 [0.136]
FIRMWARE ERROR near line 548: Must home X axis first: 192.474 121.572 0.000 [0.131]
FIRMWARE ERROR near line 549: Must home X axis first: 193.135 124.484 0.000 [0.136]
FIRMWARE ERROR near line 550: Must home X axis first: 193.628 127.317 0.000 [0.131]
FIRMWARE ERROR near line 551: Must home X axis first: 193.995 130.280 0.000 [0.136]
FIRMWARE ERROR near line 552: Must home X axis first: 194.203 133.147 0.000 [0.131]
FIRMWARE ERROR near line 553: Must home X axis first: 194.274 136.133 0.000 [0.136]
FIRMWARE ERROR near line 554: Must home X axis first: 194.196 139.006 0.000 [0.131]
FIRMWARE ERROR near line 555: Must home X axis first: 193.968 141.983 0.000 [0.136]
FIRMWARE ERROR near line 556: Must home X axis first: 193.628 144.684 0.000 [0.124]
FIRMWARE ERROR near line 557: Must home X axis first: 193.134 147.517 0.000 [0.131]
FIRMWARE ERROR near line 558: Must home X axis first: 192.500 150.326 0.000 [0.131]
FIRMWARE ERROR near line 559: Must home X axis first: 191.705 153.187 0.000 [0.135]
FIRMWARE ERROR near line 560: Must home X axis first: 190.756 156.024 0.000 [0.136]
FIRMWARE ERROR near line 561: Must home X axis first: 189.710 158.709 0.000 [0.131]
FIRMWARE ERROR near line 562: Must home X axis first: 188.531 161.336 0.000 [0.131]
FIRMWARE ERROR near line 563: Must home X axis first: 187.181 163.989 0.000 [0.135]
FIRMWARE ERROR near line 564: Must home X axis first: 185.693 166.576 0.000 [0.136]
FIRMWARE ERROR near line 565: Must home X axis first: 184.139 168.994 0.000 [0.131]
FIRMWARE ERROR near line 566: Must home X axis first: 182.399 171.422 0.000 [0.136]
FIRMWARE ERROR near line 567: Must home X axis first: 180.608 173.678 0.000 [0.131]
FIRMWARE ERROR near line 568: Must home X axis first: 178.707 175.842 0.000 [0.131]
FIRMWARE ERROR near line 569: Must home X axis first: 176.635 177.979 0.000 [0.135]
FIRMWARE ERROR near line 570: Must home X axis first: 174.451 180.012 0.000 [0.136]
FIRMWARE ERROR near line 571: Must home X axis first: 172.253 181.865 0.000 [0.131]
FIRMWARE ERROR near line 572: Must home X axis first: 169.875 183.672 0.000 [0.136]
FIRMWARE ERROR near line 573: Must home X axis first: 167.503 185.297 0.000 [0.131]
FIRMWARE ERROR near line 574: Must home X axis first: 165.044 186.807 0.000 [0.131]
FIRMWARE ERROR near line 575: Must home X axis first: 162.441 188.236 0.000 [0.135]
FIRMWARE ERROR near line 576: Must home X axis first: 159.747 189.538 0.000 [0.136]
FIRMWARE ERROR near line 577: Must home X axis first: 157.101 190.660 0.000 [0.131]
FIRMWARE ERROR near line 578: Must home X axis first: 154.391 191.654 0.000 [0.131]
FIRMWARE ERROR near line 579: Must home X axis first: 151.549 192.540 0.000 [0.135]
FIRMWARE ERROR near line 580: Must home X axis first: 148.756 193.258 0.000 [0.131]
FIRMWARE ERROR near line 581: Must home X axis first: 145.840 193.857 0.000 [0.135]
FIRMWARE ERROR near line 582: Must home X axis first: 142.989 194.294 0.000 [0.131]

However, I should say that I use vanilla Orca not Snapmaker Orca, if that makes a difference. The file has been printed and worked fine.

Question: why didn’t the docker run command line allow auto-completion for the input filename?

Thanks, this is exactly the test I needed. You printed that file and it worked, so those errors are a bug in my tool, not a problem with your file. Every move failed because the tool never saw the printer as homed, and I only ever ran it on Snapmaker Orca output, so vanilla Orca is the likely reason. I am fixing it now and will post here when it is in.

To be sure I fix the right thing, could you paste the output of these two?

grep -n -m 5 -E 'LAYER_CHANGE|CHANGE_LAYER|^G28|PRINT_START' BalloonStandBase-Shell_PLA_4h7m.gcode
sed -n '455,464p' BalloonStandBase-Shell_PLA_4h7m.gcode

On the auto-completion: for docker commands bash hands Tab over to Docker’s own completion script, and after the image name it stops offering local files. Pressing Alt+/ instead of Tab completes the filename anyway.

Fixed, and it was my bug, not your file.

Klipper reads the file in 4 KB blocks and silently throws a block away if it cuts a multi-byte character in half. The U1 start G-code has Chinese comments, and the thumbnails at the top of your file happened to push one of them across a block edge. The homing command my tool inserts was in that block, so it was lost and every move after it failed with “Must home”. It depends only on where the bytes land, so it could hit Snapmaker Orca files too.

The tool now sends plain ASCII to the firmware and homes before the first line. An OrcaSlicer 2.4.2 file that showed the same error is now part of the tests that run on every push.

To pick it up, rebuild without the cache and run it again:

docker build --no-cache -t u1-dryrun https://github.com/DesignMaster-Solutions/u1-dryrun.git
docker run --rm -v "${PWD}:/work" u1-dryrun BalloonStandBase-Shell_PLA_4h7m.gcode

You can skip the grep and sed I asked for. I would like to hear what it says now.

OK, give me 16 minutes or so!

Every session or just the once in total (unless revised)?

$ docker run --rm -v "${PWD}:/work" u1-dryrun BalloonStandBase-Shell_PLA_4h7m.gcode
BalloonStandBase-Shell_PLA_4h7m.gcode: 1038009 moves, 0 tool changes
motion time 14091 s (no heating), about 12064 s of it firmware tool-change motion
  extruder: 38734 mm of filament
not exercised (no such hardware here): TIMELAPSE_TAKE_FRAME, DEFECT_DETECTION_DETECT, SM_PRINT_END_AUTO_UNLOAD_FILAMENT, SET_PURIFIER_MODE, TIMELAPSE_STOP
clean: firmware accepted every command, no travel across a finished surface

Looks good to me.

Thanks for sticking with it! That confirms the homing fix worked on your file, and it is good to have a successful run on Mint with vanilla Orca.

I did spot one oddity in the output: 12,064 seconds of tool-change motion with zero tool changes cannot be right. I checked the code and reproduced a reporting problem where curved G-code moves were counted as tool-change motion. I have fixed that and added a test using the real firmware.

Please disregard that tool-change subtotal in this report. No need to spend another 16 minutes rebuilding just to confirm the homing fix again. Your test already answered that, thank you!