Skip to content

Rerun measure_esp32s3_opt_ins.py 4 Windows-crashed configs on Linux to flip remaining SLIM rows (#2886)Β #2938

Closed

Description

@zackees

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:

  1. stage4 succeeded. Same script invocation, same platformio.ini patching pattern, just a different -D flag. The script's patching logic is fine.
  2. The failing TU is the same across all 4 failing configs (extras+.cpp.o). With -DFASTLED_SUPPRESS_ARDUINO_CHIP_DEBUG_REPORT=1 set, the shim at src/extras/suppress_arduino_chip_debug_report.cpp.hpp emits a strong extern "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.md

Option 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_savings headline.
  • Update the baseline table's "Stage 3 overlay alone" row to also include the stack (Stages 2+3+4) and max_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

  1. All 4 configs produce successful total_flash measurements.
  2. SLIM doc rows 4 and 6 flip πŸ“Š β†’ βœ… with measured deltas.
  3. The baseline table gains a Max-savings entry.
  4. 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

πŸ€– Generated with Claude Code

Activity

  1. added a commit that references this issue on Jun 7, 2026
    73673d7
  2. moved this from Triage to Done in FastLED Trackeron Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions