Repository navigation
Description
Goal
Rerun tests/measure_esp32s3_opt_ins.py for the 4 configs that crashed on Windows during the #2935/#2937 measurement run, to flip the remaining SLIM doc rows from π β β
.
Parent: #2886 β follow-up to PR #2937 (which flipped 5 of 9 actionable rows).
Configs that need a successful run
| Config | Flag(s) | Affects SLIM row |
|---|---|---|
stage2 |
-DFASTLED_SUPPRESS_ARDUINO_CHIP_DEBUG_REPORT=1 |
4 |
disable_spi |
-DFASTLED_DISABLE_SPI_CHIPSETS=1 |
6 |
stack |
stage2 + stage3 + stage4 | β (cumulative) |
max_savings |
all 6 flags + Stage 3 overlay | β (headline) |
Why they failed on Windows
The PIO compilation crashed with Windows exit code 3221225794 (0xC0000142 β DLL initialization failure) on lib0d9\FastLED\fl\build\extras+.cpp.o. This is the wrapper TU for src/extras/_build.cpp.hpp (the unity-build aggregator that PR #2914 introduced for the SPI gate and PR #2894 for the boot-banner shim).
The crash is a Windows compiler process instability, not a FastLED source bug. Two observations support this:
stage4succeeded. Same script invocation, same platformio.ini patching pattern, just a different-Dflag. The script's patching logic is fine.- The failing TU is the same across all 4 failing configs (
extras+.cpp.o). With-DFASTLED_SUPPRESS_ARDUINO_CHIP_DEBUG_REPORT=1set, the shim atsrc/extras/suppress_arduino_chip_debug_report.cpp.hppemits a strongextern "C"symbol. The compiler should accept this β it compiles fine in the standalone case β but combining it with PIO's parallel build + the Windows xtensa-esp-elf-gcc seems to trigger the crash.
max_savings is in the failure set because it includes the same flag, and disable_spi is in there because the SPI gate also uses the src/extras/_build.cpp.hpp machinery.
Deliverable
Option A β rerun on Linux
The four configs need to compile and produce total_flash numbers. On Linux this should "just work" because the xtensa-esp-elf-gcc DLL crash is Windows-specific.
uv run python tests/measure_esp32s3_opt_ins.py --config stage2,disable_spi,stack,max_savings --out compare.mdOption B β capture per-config build logs on Windows for triage
If the user has a Linux environment available, prefer Option A. If Windows is the only option, patch tests/measure_esp32s3_opt_ins.py to redirect each build's stdout/stderr to a per-config log file before retrying. The current subprocess.run swallows the build output; an extension to capture to .build/measure-logs/<config>.log would let us diagnose the crash.
Step 2 β update SLIM doc
With the 4 measurements in hand:
- Flip row 4 (
FASTLED_SUPPRESS_ARDUINO_CHIP_DEBUG_REPORT) to β with the measured saving. - Flip row 6 (
FASTLED_DISABLE_SPI_CHIPSETS) to β with the measured saving. - Add a "Max-savings stack measured" callout below the priority table with the
max_savingsheadline. - Update the baseline table's "Stage 3 overlay alone" row to also include the
stack(Stages 2+3+4) andmax_savings(all gates) numbers.
Step 3 β post comprehensive update to #2886
A single comment with the complete 10-config comparison table, including the configs from PR #2937 alongside the newly measured ones.
Acceptance
- All 4 configs produce successful
total_flashmeasurements. - SLIM doc rows 4 and 6 flip π β β with measured deltas.
- The baseline table gains a Max-savings entry.
- A comprehensive comment is posted to Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) β supersedes #2885Β #2886.
Out of scope
- Diagnosing the root cause of the Windows compiler DLL crash. That's an upstream toolchain / PIO issue.
- Adding the per-config build-log capture to the script as part of this PR. Filed separately if needed.
Related
- Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) β supersedes #2885Β #2886 β parent meta + audit cycle.
- Run measure_esp32s3_opt_ins.py end-to-end + flip SLIM rows 2/4/6/7/8/9 to β (#2886)Β #2935 β original measurement-run sub-issue (this is its follow-up).
- docs(esp32): flip SLIM rows 2/3/7/8/9 to β with measured numbers (#2935)Β #2937 β partial doc flip with the 5 rows that did measure on Windows.
- tools(bloat): ship tests/measure_esp32s3_opt_ins.py multi-config audit driverΒ #2906 / tools(bloat): extend measure_esp32s3_opt_ins.py with 4 new opt-ins + max_savingsΒ #2934 / fix(bloat): make measure_esp32s3_opt_ins.py work on WindowsΒ #2936 β the measurement driver this PR runs on Linux.
π€ Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(bloat): capture per-config build logs in measure_esp32s3_opt_insβ¦