Skip to content

Pb https #5010

Closed
Closed

Description

@patrice916

Board / MCU

ESP32

LED Chipset

WS2812B / NeoPixel

FastLED Version

3.10.9

Arduino / PlatformIO version

Arduino 2.3.10

Operating System

Windows

Description

With Expressive version 3, there's a connection problem via HTTPS to the website https://aviationweather.gov/api/data/metar?format=json&ids=";

It connects the first time, but gets stuck on the second attempt.
Only works with Expressive version 2

Steps to reproduce

That's all
#include "FastLED.h"
This is enough to block the HTTPS connection.

Minimal sketch

Serial / debug output

Checklist

  • I have searched existing issues for duplicates
  • I have tested with the latest FastLED release or git master
  • I can reproduce this with a minimal sketch

Activity

  1. added
    status: triage
    type: bug
    on Nov 3, 2026
  2. zackees commented on Nov 4, 2026

    @zackees
    Member

    This may be the ESP32 C++ runtime/LTO bug already fixed in #5007, with hardware regression coverage added in #5006 (tracked in #4994).

    FastLED 3.10.9 enables NEED_CXX_BITS on ESP32, which supplies weak, non-thread-safe __cxa_guard_acquire/release implementations. These are process-wide C++ runtime symbols, so linking FastLED can affect local-static initialization outside the LED drivers too. #5007 removes that override on ESP32/ESP8266 so the SDK supplies its thread-safe implementation. The hardware LTO regression reproduced two constructions before the fix and one afterward. This is a plausible explanation for the reported interaction, but we have not reproduced the HTTPS failure itself.

    Please retest with current FastLED master containing #5007, using the same Arduino-ESP32 3.x core and repeated HTTPS requests. If it still hangs, please provide the complete minimal sketch (Wi-Fi credentials removed), exact ESP32 board and Arduino-ESP32 core version, and serial/debug output showing where the second request stops. In particular, include the HTTP client setup, response handling, and connection cleanup.

    Leaving this open until the HTTPS behavior is confirmed.

  3. zackees commented on Nov 4, 2026

    @zackees
    Member

    Confirmed on the attached ESP32dev: the ESP32 C++ runtime/LTO guard defect is present in FastLED 3.10.9 and fixed on master by #5007. Under concurrent local-static initialization, 3.10.9 constructed the same object twice; master constructed it once, with both callers completing.

    We also used an ESP32-C6 as the Wi-Fi access point and tested the ESP32dev against both a local TLS server and the actual aviationweather.gov endpoint. Across the release/master comparisons, the tests passed 120 local requests and 40 real-endpoint requests. The real-endpoint tests verified the server certificate and covered fresh and reused TLS connections on Arduino-ESP32 3.3.11. The specific second-request HTTPS hang was not independently reproduced, so its causal connection to the guard defect remains unconfirmed.

    Closing with the confirmed ESP32 guard fix available on master. Please retest with master; if the HTTPS hang persists, reopen with a minimal sketch (credentials removed), the exact Arduino-ESP32 core version, and serial output.

  4. moved this from Triage to Done in FastLED Trackeron Nov 4, 2026
  5. patrice916 commented on Nov 9, 2026

    @patrice916
    Author

    Arduino 2.3.10
    Expressif 3.3.12
    Fastled master
    same problem
    200
    -1
    -1

  6. added
    sanitized
    on Nov 9, 2026
  7. patrice916 commented on Nov 21, 2026

    @patrice916
    Author

    Arduino 2.3.11
    Expressif 3.3.12
    Fastled 3.10.10
    same problem
    200
    200
    -1
    -1
    -1

  8. added
    sanitized
    and removed
    sanitized
    on Nov 21, 2026
  9. zackees commented on Nov 22, 2026

    @zackees
    Member

    @patrice916 Sorry your replies here weren't answered after this issue was closed. Your follow-up report #5365 is now the single tracking issue for this HTTPS problem; please continue there.

    Summary of where things stand (details in #5365 (comment)):

    • On core 3.3.12, your HTTPS loop was A/B tested on hardware (ESP32-C6, on-device HTTPS server): 10/10 200 with no FastLED, FastLED master and FastLED 3.10.10. FastLED's code made no measurable difference.
    • Including FastLED.h on cores 3.3.2–3.3.12 only adds FastLED's copy of the Arduino startup code (app_main/loopTask). To rule it out on your board, put #define FL_ESP32_STOCK_ARDUINO_MAIN 1 before #include "FastLED.h". Until fix(esp32): keep weak app_main out of FastLED library objects so the stock-startup opt-out works (#5365) #5385 this setting did not take effect in the Arduino IDE; it does on current master.
    • The most likely cause is TLS running out of heap on a classic ESP32 after the 2.0.17 → 3.3.12 core upgrade. Please post ESP.getMaxAllocHeap() and client.lastError() on Https and fasled #5365.
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

    sanitizedstatus: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions