Skip to content

Creating a 2D setup larger than amount of LEDs can lead to crash #5669

Closed

Description

@DedeHai

What happened?

When creating a 2D setup of say 32x32 with only 256 LEDs configured my C3 reliably crashes. I mentioned this before somewhere and also tried to fix it but it is still an issue.
Strangely it did work on an vanilla ESP32 when I tested. It also works fine if WLED is in off state.

To Reproduce Bug

set number of LEDs to 256, go to 2D setup and create a 32x32 matrix, no ledmap.json

Expected Behavior

handle it gracefully

Install Method

Self-Compiled

What version of WLED?

17.0

Which microcontroller/board are you seeing the problem on?

ESP32-C3

Relevant log/trace output

Crash report is totally incocnlusive...

Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

Core  0 register dump:
MEPC    : 0x40383ea0  RA      : 0x40383e96  SP      : 0x3fc9a270  GP      : 0x3fc8d200  
=> 0x40383ea0: shared_intr_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_hw_support/intr_alloc.c:404
=> 0x40383e96: shared_intr_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_hw_support/intr_alloc.c:403
TP      : 0x3fc7c59c  T0      : 0x4038806e  T1      : 0x600c2140  T2      : 0x00000003  
=> 0x4038806e: vPortEnterCritical at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port/riscv/port.c:246
S0/FP   : 0x00ffaa00  S1      : 0x8000000b  A0      : 0x00000003  A1      : 0x3fc99be4  
A2      : 0x000000ff  A3      : 0x00000004  A4      : 0x00000001  A5      : 0x3fc9e000  
A6      : 0xfe010000  A7      : 0x00000000  S2      : 0x00001881  S3      : 0x00000001  
S4      : 0x0000000f  S5      : 0x000003dd  S6      : 0x0000001d  S7      : 0x3fca696c  
S8      : 0x0000000f  S9      : 0x3fc8ca2a  S10     : 0x0000001d  S11     : 0x00000000  
T3      : 0x3fc9e068  T4      : 0x00000000  T5      : 0x00000001  T6      : 0x4201f2e6  
=> 0x4201f2e6: _add(unsigned char, unsigned char) at wled00/FX_fcn.cpp:1338
MSTATUS : 0x00001881  MTVEC   : 0x40380001  MCAUSE  : 0x00000005  MTVAL   : 0x00ffaa00  
=> 0x40380001: _vector_table at ??:?
MHARTID : 0x00000000  

Stack memory:
3fc9a270: 0x00001881 0x8000000b 0x3fca5054 0x4038b7be 0x00001881 0x8000000b 0x3fca5054 0x403801ee
=> 0x4038b7be: _global_interrupt_handler at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/riscv/interrupt.c:66
=> 0x403801ee: _interrupt_handler at ??:?

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. softhack007 commented on Jun 4, 2026

    @softhack007
    Member

    I've tried it on S3 - could not get a crash yet, but an intermediate "corrupted heap" appeared directly after saving the 2D setup

    -- Destroying segment: 0x3fced430 [0,256:0,1] T[0]
    Image playback end called
    -- Creating segment: 0x3fced430 [0,32:0,32]
    CORRUPT HEAP: Bad head at 0x3d814a38. Expected 0xabba1234 got 0x00000000
    
  2. softhack007 commented on Jun 4, 2026

    @softhack007
    Member

    getting closer - best debug attempt on -S3 yet, requires -D WLED_USE_SHARED_RMT, so looks like something weird in going on with the Neopixelbus driver when creating the too-large 2D config 🤔 i can test with a -C3 devkit tomorrow.

    -- Destroying segment: 0x3fced2f4 [0,32:0,1] T[0x0]
    Image playback end called
    -- Creating segment: 0x3fced2f4 [0,54:0,63]
    [ 75170][D][AsyncTCP.cpp:234] _get_async_event(): coalescing polls, network congestion or async callbacks might be too slow!
    [ 75186][D][AsyncTCP.cpp:234] _get_async_event(): coalescing polls, network congestion or async callbacks might be too slow!
    Slow effects 29/23.
    Slow strip 35/23.
    Writing settings to /wsec.json...
    JSON buffer locked. (4)
    Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.
    Core  0 register dump:
    PC      : 0x42168faf  PS      : 0x00060130  A0      : 0x82169754  A1      : 0x3fca6ef0  
    A2      : 0x3d812144  A3      : 0x00000008  A4      : 0x000001a8  A5      : 0x3fc9a514  
    A6      : 0x00000000  A7      : 0x3fc9a474  A8      : 0x82169044  A9      : 0x000001a8  
    A10     : 0x00ffaa00  A11     : 0x00ffaa00  A12     : 0x00ffaa00  A13     : 0x3fcf0dd0  
    A14     : 0x00000001  A15     : 0x3fca5760  SAR     : 0x00000000  EXCCAUSE: 0x0000001d  
    EXCVADDR: 0x00ffaa04  LBEG    : 0x40056f5c  LEND    : 0x40056f72  LCOUNT  : 0xffffffff  
    Backtrace: 0x42168fac:0x3fca6ef0 0x42169751:0x3fca6f20 0x42169bd1:0x3fca6f60 0x40041502:0x3fca6fa0 0x42167d6e:0x3fca6fd0
    ELF file SHA256: 0f08e394aa616316
    Rebooting...
    �ESP-ROM:esp32s3-20210327
    Build:Mar 27 2021
    rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
    Saved PC:0x40379468
    SPIWP:0xee

    Stack Trace

    # Address Function Location
    0 0x42168fac esf_buf_alloc ??
    1 0x42169751 wDev_IndicateFrame ??
    2 0x42169bd1 wDev_ProcessRxSucData ??
    3 0x42167d6e ppTask ??

    EXCCAUSE
    0x0000001d
    Access to invalid address: STORE (wild pointer?)

  3. softhack007 commented on Jun 4, 2026

    @softhack007
    Member

    I know I shouldn't ask the rabbit, but I'm curious.....

    @coderabbitai please analyze the source code related to the failure scenario described above: creating a 2D setup with matrix dimensions larger than the physical LED count. Look for evidence of heap corruption (overwriting not allocated memory with 0x0). Check the involved methods of NeoPixelBus for out-of-bounds parameters during 2D panel setup.

    The final crash - at least on -S3 - seems to be a consequence of a corrupted heap. The shared_intr_isr function might be involved, however its possibly not the root cause. The crash itself is only reproducible with WLED_USE_SHARED_RMT (-C3 only has this RMT driver), but my initial "CORRUPT HEAP" warning occurred with the non-shared NeoESP32RmtHI driver library.

  4. added
    needs investigation
    on Jun 4, 2026
  5. coderabbitai commented on Jun 4, 2026

    @coderabbitai
    Contributor
    🧩 Analysis chain

    🏁 Script executed:

    #!/bin/bash
    set -euo pipefail
    
    echo "## Repo files likely relevant"
    fd -i 'FX_fcn\.cpp|FX\.h|bus.*\.(h|cpp)|2D|matrix|Neo.*Rmt.*|NeoPixelBus|shared.*rmt|rmt|esp32.*rmt' . | sed 's#^\./##' | sort | head -200
    
    echo
    echo "## Search: matrix / panel setup definitions"
    rg -n -C 3 --type=cpp --type=h \
      '\b(setUpMatrix|panel|Panel|matrix|Matrix|Segment::setGeometry|setGeometry|finalizeInit|deserializeConfig|deserializeSegment|map2D|XY|Segment::setPixelColor|setPixelColorXY)\b' \
      -g '!**/build/**' -g '!**/.pio/**' | head -240
    
    echo
    echo "## Search: WLED_USE_SHARED_RMT and shared_intr_isr"
    rg -n -C 5 '\b(WLED_USE_SHARED_RMT|shared_intr_isr|rmt_isr|RMT|rmt_)\b' \
      -g '!**/build/**' -g '!**/.pio/**' | head -260
    
    echo
    echo "## Search: NeoPixelBus / NeoESP32Rmt methods and buffer allocations"
    rg -n -C 4 '\b(NeoEsp32|NeoESP32|Rmt|Initialize|Update|Dirty|Pixels|Allocate|malloc|calloc|memset|memcpy|Begin|End|Show|CanShow)\b' \
      -g '!**/build/**' -g '!**/.pio/**' -g '!**/docs/**' | head -320
    
    echo
    echo "## Key function locations"
    rg -n -C 3 '\bvoid\s+WS2812FX::finalizeInit\b|\bvoid\s+WS2812FX::setUpMatrix\b|\bSegment::setGeometry\b|\bBusManager::add\b|\bBusDigital::BusDigital\b|\bBusDigital::show\b|\bshared_intr_isr\b' \
      -g '!**/build/**' -g '!**/.pio/**'
    
    echo
    echo "## Print selected files around key functions (if present)"
    python - <<'PY'
    from pathlib import Path
    targets = [
        ("FX_fcn.cpp", ["WS2812FX::finalizeInit", "WS2812FX::setUpMatrix", "Segment::setGeometry"]),
        ("bus_manager.cpp", ["BusManager::add", "BusDigital::BusDigital", "BusDigital::show"]),
        ("bus_wrapper.h", ["BusDigital"]),
        ("NeoEsp32RmtHIMethod.h", ["shared_intr_isr", "Initialize", "Update", "NeoEsp32"]),
        ("NeoEsp32RmtMethod.h", ["shared_intr_isr", "Initialize", "Update", "NeoEsp32"]),
    ]
    files = {p.name: p for p in Path(".").rglob("*") if p.is_file()}
    for name, needles in targets:
        matches = [p for p in files.values() if p.name == name]
        if not matches:
            continue
        for p in matches[:5]:
            text = p.read_text(errors="replace").splitlines()
            print(f"\n### FILE {p}")
            for needle in needles:
                for i,line in enumerate(text):
                    if needle in line:
                        start=max(0,i-35); end=min(len(text),i+90)
                        print(f"\n--- around {needle} line {i+1} ---")
                        for n in range(start,end):
                            print(f"{n+1:5d}: {text[n]}")
                        break
    PY

    Length of output: 123148


    🏁 Script executed:

    #!/bin/bash
    set -euo pipefail
    
    echo "## Print FX_2Dfcn.cpp fully (matrix setup and XY mapping)"
    python - <<'PY'
    from pathlib import Path
    for p in Path(".").rglob("FX_2Dfcn.cpp"):
        print(f"\n### FILE {p}")
        lines=p.read_text(errors="replace").splitlines()
        for i,l in enumerate(lines,1):
            print(f"{i:5d}: {l}")
    PY
    
    echo
    echo "## Targeted definitions: Segment XY/color methods and WS2812FX physical mapping"
    rg -n -C 5 '\b(IRAM_ATTR\s+)?(void|uint32_t|unsigned|uint16_t|bool)\s+(Segment|WS2812FX|BusManager|BusDigital)::(setPixelColorXY|setPixelColor|addPixelColorXY|getPixelColorXY|getPixelColor|setPixelColor|show|service|deserializeMap|makeAutoSegments|checkSegmentAlignment|fixInvalidSegments)\b' \
      -g '!**/build/**' -g '!**/.pio/**'
    
    echo
    echo "## Print matching function bodies from FX_fcn.cpp, FX_2Dfcn.cpp, bus_manager.cpp"
    python - <<'PY'
    from pathlib import Path
    needles = [
    "Segment::setPixelColorXY", "Segment::setPixelColor", "Segment::getPixelColorXY", "Segment::getPixelColor",
    "WS2812FX::setPixelColor", "WS2812FX::deserializeMap", "WS2812FX::makeAutoSegments",
    "WS2812FX::service", "BusManager::setPixelColor", "BusDigital::setPixelColor"
    ]
    for p in [*Path(".").rglob("FX_fcn.cpp"), *Path(".").rglob("FX_2Dfcn.cpp"), *Path(".").rglob("bus_manager.cpp")]:
        text=p.read_text(errors="replace").splitlines()
        printed=False
        for needle in needles:
            for i,line in enumerate(text):
                if needle in line:
                    if not printed:
                        print(f"\n### FILE {p}")
                        printed=True
                    start=max(0,i-20); end=min(len(text),i+120)
                    print(f"\n--- around {needle} line {i+1} ---")
                    for n in range(start,end):
                        print(f"{n+1:5d}: {text[n]}")
                    break
    PY
    
    echo
    echo "## Print FX.h relevant declarations and length helpers"
    rg -n -C 4 '\b(maxWidth|maxHeight|customMappingTable|_customMappingSize|length\(|vLength\(|width\(|height\(|setUpMatrix|deserializeMap|setPixelColorXY|setPixelColor\(|pixels|map1D2D|Panel)\b' wled00/FX.h wled00/bus_manager.h wled00/bus_wrapper.h
    
    echo
    echo "## Print NeoESP32RmtHI driver cpp and search for shared driver files"
    python - <<'PY'
    from pathlib import Path
    for p in Path(".").rglob("NeoEsp32RmtHIMethod.cpp"):
        print(f"\n### FILE {p}")
        lines=p.read_text(errors="replace").splitlines()
        for i,l in enumerate(lines,1):
            print(f"{i:5d}: {l}")
    print("\n### RMT method-like files")
    for p in Path(".").rglob("*Rmt*"):
        if p.is_file():
            print(p)
    PY
    
    echo
    echo "## Search for ledmap allocation and physical index sentinels"
    rg -n -C 5 '\b(customMappingTable|_customMappingSize|ledmap|Ledmap|0xFFFF|UINT16_MAX|setUpMatrix|deserializeMap|map1D2D|m12|pixels\s*=|memset\(|fill\(|clear\(\))\b' \
      -g '!**/build/**' -g '!**/.pio/**' | head -400

    Length of output: 195318



    @softhack007 I checked the 2D setup path, mapper, bus handoff, and the vendored NeoESP32RmtHI driver. My current read is:

    The likely heap corruption is in WLED’s global strip _pixels buffer after 2D geometry changes, not in NeoPixelBus receiving out-of-bounds pixel indices.

    Why this matches the symptom

    The 2D settings save path does this:

    • strip.suspend()
    • strip.waitForIt()
    • strip.deserializeMap() → may call setUpMatrix()
    • strip.makeAutoSegments(true)
    • strip.resume()

    from wled00/set.cpp Lines 870-875.

    setUpMatrix() updates Segment::maxWidth / Segment::maxHeight based on the panel config at wled00/FX_2Dfcn.cpp Lines 24-35. For a too-large matrix, getLengthTotal() now effectively becomes the matrix virtual size, not just the physical LED count.

    The main segment is then recreated as the whole matrix:

    • wled00/FX_fcn.cpp Lines 1979-1982:
      • _segments.emplace_back(0, Segment::maxWidth, 0, Segment::maxHeight);

    That segment’s own pixels buffer is allocated from length() == width * height, so it looks OK.

    The suspicious part is the global WS2812FX::_pixels buffer:

    • It is allocated in finalizeInit() at wled00/FX_fcn.cpp Line 1277 using getLengthTotal().
    • But the 2D settings path does not appear to reallocate _pixels after changing Segment::maxWidth / Segment::maxHeight.
    • Later writes/checks use the new getLengthTotal():
      • wled00/FX.h Line 898: if (n < getLengthTotal()) _pixels[n] = c;
      • wled00/FX_fcn.cpp Lines 1733-1744: iterates i < totalLen and reads _pixels[i].

    So if the device had, say, 256 physical LEDs and _pixels was allocated for 256, then saving a 32x32 matrix makes getLengthTotal() become 1024. Any subsequent clear/blend/show path bounded by the new getLengthTotal() can write/read beyond the old _pixels allocation. If the overwrite color is black, that explains the heap head being overwritten with 0x00000000.

    That lines up very well with:

    -- Creating segment: ... [0,32:0,32]
    CORRUPT HEAP: Bad head ... Expected 0xabba1234 got 0x00000000
    

    NeoPixelBus / RMT parameter check

    For the physical bus path, I don’t see strong evidence that NeoPixelBus itself is being called with out-of-bounds physical pixel indices from the normal show path:

    • BusDigital creates the NeoPixelBus object with physical bc.count at wled00/bus_manager.cpp Lines 159-162.
    • WS2812FX::show() maps logical/virtual pixels through getMappedPixelIndex(i) at wled00/FX_fcn.cpp Line 1743.
    • BusManager::setPixelColor() then filters with bus->containsPixel(pix) before calling bus->setPixelColor() at wled00/bus_manager.cpp Lines 1365-1369.

    So if setUpMatrix() maps virtual matrix cells to physical indices beyond the actual strip length, those indices should simply miss all physical buses and not reach BusDigital::setPixelColor().

    There is still a minor cleanliness issue in setUpMatrix():

    • wled00/FX_2Dfcn.cpp Lines 99-113 increments pix for panel cells without clamping to _length.

    I’d consider changing that so entries beyond physical LEDs become 0xFFFF, but that alone won’t fix the heap corruption because the virtual matrix buffer still needs to be sized to getLengthTotal().

    About shared_intr_isr

    The shared RMT source was not present in the cloned tree, so I could only inspect the vendored high-priority RMT driver. In lib/NeoESP32RmtHI/src/NeoEsp32RmtHIMethod.cpp, the ISR (NeoEsp32RmtMethodIsr) fills RMT memory from an already-established tx buffer and doesn’t allocate/free heap.

    Given the final crash lands in WiFi (esf_buf_alloc / wDev_*), I’d treat the shared-RMT reproducibility as a timing/heap-layout amplifier, not the primary corruption source. The heap is probably already damaged by the resized 2D geometry before WiFi/RMT trips over it.

    Suggested fix direction

    I’d add a dedicated resize/reset of WS2812FX::_pixels whenever 2D geometry changes getLengthTotal() outside finalizeInit().

    Conceptually:

    bool WS2812FX::resizeGlobalPixelBuffer() {
      const size_t bytes = size_t(getLengthTotal()) * sizeof(uint32_t);
    
      uint32_t* newPixels = static_cast<uint32_t*>(
        allocate_buffer(bytes, BFRALLOC_ENFORCE_PSRAM | BFRALLOC_NOBYTEACCESS | BFRALLOC_CLEAR)
      );
    
      if (!newPixels) {
        errorFlag = ERR_NORAM;
        return false;
      }
    
      p_free(_pixels);
      _pixels = newPixels;
      return true;
    }

    Then call it after deserializeMap() / setUpMatrix() changes geometry and before makeAutoSegments(true) resumes normal rendering.

    Separately, I’d make setUpMatrix() mark panel pixels beyond physical _length as missing:

    if (!gapTable || gapTable[index] > 0) {
      customMappingTable[index] = (pix < _length) ? pix : 0xFFFFU;
    }

    That would keep the virtual matrix valid for effects while preventing misleading physical mappings.

    🐇🔎


    🧠 Learnings used
    Learnt from: softhack007
    Repo: wled/WLED PR: 5048
    File: wled00/cfg.cpp:673-673
    Timestamp: 2026-03-28T00:51:30.926Z
    Learning: In WLED PR `#5048`, the NTP-related crash on ESP32-C5 (pioarduino IDF 5.5.x with CONFIG_LWIP_CHECK_THREAD_SAFETY=y) is definitively NOT caused by ntpUdp.begin(). The crash dump shows the real call chain: WLED::loop() → handleTime() → handleNetworkTime() (ntp.cpp:212) → AsyncDNS::query() (asyncDNS.h:45) → dns_gethostbyname_addrtype() → dns_alloc_pcb() → dns_alloc_random_port() → udp_new_ip_type() ← ASSERT. The fix must be in AsyncDNS::query() (asyncDNS.h:45): the call to dns_gethostbyname_addrtype() must be dispatched to the TCPIP thread via tcpip_callback_with_block() on IDF V5+. The ntpUdp.begin() call sites (wled.cpp:926 and set.cpp:562) are NOT the crash location for this particular bug.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 5464
    File: wled00/FX_fcn.cpp:1699-1701
    Timestamp: 2026-04-09T07:26:14.510Z
    Learning: In WLED (wled00/util.cpp), `allocate_buffer()` processes `BFRALLOC_NOBYTEACCESS` in an `if` with an `else` that covers all other flags. On classic ESP32, this means `BFRALLOC_ENFORCE_PSRAM` and `BFRALLOC_PREFER_PSRAM` are silently ignored when `BFRALLOC_NOBYTEACCESS` is also set — IRAM (MALLOC_CAP_32BIT) is always tried first. Combining `BFRALLOC_CLEAR | BFRALLOC_NOBYTEACCESS` is unsafe: the allocator's internal `memset` at util.cpp:901 will perform byte-level access on a potentially IRAM-resident buffer. This affects `Segment::pixels` in `setGeometry()` (FX.h) and `_pixels` in `finalizeInit()` (FX_fcn.cpp). Additionally, `memcpy` on `Segment::pixels` in the copy constructor and copy assignment (FX_fcn.cpp lines ~73 and ~116) is also a byte-level violation when the buffer is in IRAM. The safe pattern is element-wise 32-bit access (for loops over `uint32_t*`) rather than `memset`/`memcpy` for all `BFRALLOC_NOBYTEACCESS` buffers.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 5464
    File: wled00/FX_fcn.cpp:1699-1701
    Timestamp: 2026-04-09T09:14:32.589Z
    Learning: In WLED, pixel buffers allocated with `BFRALLOC_NOBYTEACCESS` (both `WS2812FX::_pixels` and `Segment::pixels`) are intentionally placed in 32-bit-only accessible IRAM by design. Buffers up to ~1000 LEDs (~4 kB) easily fit within IRAM's ~50 kB pool. `memset` and `memcpy` on these buffers work correctly in practice because the Xtensa newlib assembly implementations use 32-bit stores for word-aligned, word-multiple-size buffers — satisfying the IRAM hardware constraint as an implementation property of the assembly code, which is unlikely to change across IDF versions. The risk of a future violation exists but is accepted as very low. Do not flag `memset`/`memcpy` usage on `BFRALLOC_NOBYTEACCESS` pixel buffers as a critical bug in WLED reviews; note it as a low-risk accepted pattern.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5048
    File: wled00/cfg.cpp:673-673
    Timestamp: 2026-03-27T21:17:51.985Z
    Learning: In WLED PR `#5048`, the NTP/UDP crash on ESP32-C5 (pioarduino IDF 5.5.x): CONFIG_LWIP_TCPIP_CORE_LOCKING defaults to n (disabled) in arduino-esp32/pioarduino, while CONFIG_LWIP_CHECK_THREAD_SAFETY=y is what actually causes the "Required to lock TCPIP core functionality!" assertion. LOCK_TCPIP_CORE() / UNLOCK_TCPIP_CORE() macros are only functional when CONFIG_LWIP_TCPIP_CORE_LOCKING=y; using them without enabling that config has no effect. The correct fix without sdkconfig changes is to use tcpip_callback() to schedule ntpUdp.begin() (and other raw lwIP API calls) on the TCPIP thread, which works regardless of the locking mode setting. The tasmota core (IDF 5.3.x, used for C6) likely has CONFIG_LWIP_CHECK_THREAD_SAFETY=n, which is why the same violation does not crash on C6.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 4939
    File: wled00/FX_fcn.cpp:1176-1187
    Timestamp: 2025-09-16T18:08:42.848Z
    Learning: In WLED finalizeInit() bus creation (wled00/FX_fcn.cpp), intentionally allowing memory overruns when bus configurations exceed MAX_LED_MEMORY is a deliberate design choice. The trade-off prioritizes creating buses with reduced LED counts over completely failing to create buses, which would cause no LED output and UI failures. This approach forces users to update configurations after migrating to version 0.16 while maintaining basic functionality.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5048
    File: wled00/cfg.cpp:673-673
    Timestamp: 2026-03-27T21:17:51.985Z
    Learning: In WLED PR `#5048` (wled00/cfg.cpp), the NTP crash on ESP32-C5 (pioarduino + IDF 5.5.x) is caused by both CONFIG_LWIP_TCPIP_CORE_LOCKING=y AND CONFIG_LWIP_CHECK_THREAD_SAFETY=y being enabled by default in the pioarduino/arduino-esp32 IDF 5.x sdkconfig. The tasmota core (IDF 5.3.x, used for C6) likely has CONFIG_LWIP_CHECK_THREAD_SAFETY=n, which is why the same violation does not crash on C6. Since pioarduino already has TCPIP_CORE_LOCKING enabled, wrapping ntpUdp.begin() (and any other raw lwIP API call) with LOCK_TCPIP_CORE()/UNLOCK_TCPIP_CORE() from lwip/tcpip.h is directly applicable without sdkconfig changes in platformio.ini.
    

    Learnt from: BobLoeffler68
    Repo: wled/WLED PR: 5440
    File: usermods/user_fx/user_fx.cpp:1304-1313
    Timestamp: 2026-03-25T07:03:35.475Z
    Learning: In WLED `mode_dissolveplus` (usermods/user_fx/user_fx.cpp), using `hw_random16(SEGLEN)` to select the survivor pixel index is correct and safe for this 1D-only effect. The 0xFFFF unmapped-entry concern from the physical bus mapping does not apply to 1D segments because virtual indices 0..SEGLEN-1 always map to valid physical LEDs without gaps. Do not flag this as a bug in future reviews of 1D effects.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5457
    File: usermods/zigbee_rgb_light/usermod_zigbee_rgb_light.h:0-0
    Timestamp: 2026-03-31T17:31:01.023Z
    Learning: In WLED PR `#5457` (zigbee_rgb_light usermod): The WLED_MAX_DIGITAL_CHANNELS=0 build flag used in the esp32c6_zigbee environment is a temporary workaround for rmt_tx_wait_all_done() timeout spam when the Zigbee/802.15.4 stack is active. The root cause is under investigation and is likely related to Zigbee light-sleep (CONFIG_PM_ENABLE) disrupting RMT's internal time base, or ISR latency due to cache-disable during flash ops — NOT the 802.15.4 radio "sharing" the RMT peripheral (they are separate hardware). Because a proper fix (rmt_enable()/rmt_disable() PM-lock wrapping, allow_pd=0, CONFIG_RMT_TX_ISR_CACHE_SAFE) may eliminate the need to disable digital channels entirely, do NOT add a compile-time `#error` guard requiring WLED_MAX_DIGITAL_CHANNELS=0; doing so would prematurely bake in a constraint that may be lifted once the investigation concludes.
    

    Learnt from: willmmiles
    Repo: wled/WLED PR: 4890
    File: lib/NeoESP32RmtHI/include/NeoEsp32RmtHIMethod.h:72-85
    Timestamp: 2025-09-02T01:48:16.409Z
    Learning: In NeoPixelBus driver code, ESP_ERROR_CHECK (which can abort) is used in destructors when driver uninstall failures indicate hardware is in an unsafe configuration, as such errors are considered unrecoverable hardware safety issues rather than typical software errors.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 4939
    File: wled00/data/index.js:2406-2413
    Timestamp: 2025-09-28T09:53:42.670Z
    Learning: WLED's heap panic recovery in the main loop intentionally prioritizes UI functionality over complete system reinitialization. Strip reinitialization may be deliberately skipped during heap panic as a last-resort measure to free enough memory to maintain a working UI.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 4939
    File: wled00/data/index.js:2406-2413
    Timestamp: 2025-09-28T09:53:42.670Z
    Learning: In WLED, code paths that appear unreachable may actually be safety fallbacks for low-heap conditions. These fallbacks are intentional defensive programming measures to ensure UI functionality is preserved when system resources are constrained.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 4791
    File: wled00/FX_fcn.cpp:1187-1191
    Timestamp: 2025-08-29T15:38:46.208Z
    Learning: In WLED's allocate_buffer() function, BFRALLOC_ENFORCE_PSRAM already includes fallback logic to DRAM if PSRAM is not available, as documented in the comment "use PSRAM if available, otherwise fall back to DRAM". The function also uses validateFreeHeap() for additional safety checks. During setup() when finalizeInit() runs, PSRAM has vast available memory making failures unlikely.
    
  6. softhack007 commented on Jun 4, 2026

    @softhack007
    Member

    @coderabbitai could task concurrency be an amplifier for the problem? Is the async_tcp task only "catching" the 2D setup change (serialized later in main loop()), or is the async_tcp task already starting the geometry re-configuration itself? The blend/show path is only called from the main loop task.

    Also consider that minimal crash scenario does not require de-serializing ledmap.json or `2d-gaps.json´.

  7. softhack007 commented on Jun 4, 2026

    @softhack007
    Member

    So if the device had, say, 256 physical LEDs and _pixels was allocated for 256, then saving a 32x32 matrix makes getLengthTotal() become 1024. Any subsequent clear/blend/show path bounded by the new getLengthTotal() can write/read beyond the old _pixels allocation. If the overwrite color is black, that explains the heap head being overwritten with 0x00000000.

    @DedeHai does this make sense to you?

  8. coderabbitai commented on Jun 4, 2026

    @coderabbitai
    Contributor
    🧩 Analysis chain

    🏁 Script executed:

    #!/bin/bash
    set -euo pipefail
    
    echo "## 1. set.cpp: LED config handler - look for strip/finalizeInit/setUpMatrix calls and flag-based deferral"
    python - <<'PY'
    from pathlib import Path
    for p in Path(".").rglob("set.cpp"):
        lines = p.read_text(errors="replace").splitlines()
        print(f"\n### FILE {p}")
        for i, l in enumerate(lines, 1):
            print(f"{i:5d}: {l}")
    PY
    
    echo
    echo "## 2. wled.cpp loop(): how strip reconfiguration / finalizeInit is deferred to main loop"
    python - <<'PY'
    from pathlib import Path
    needles = ["finalizeInit", "doReboot", "doDeserializeSegments", "doSerializeConfig",
               "busConfigs", "doInitBusses", "loadLedmap", "setUpMatrix",
               "stateChanged", "deserializeMap", "requestJSONBufferLock", "doPublishMqtt",
               "doRestartAP", "deserializeConfig", "applyFinalPreset"]
    for p in Path(".").rglob("wled.cpp"):
        lines = p.read_text(errors="replace").splitlines()
        print(f"\n### FILE {p}")
        for i, l in enumerate(lines, 1):
            if any(n in l for n in needles):
                start = max(0, i-3)
                end = min(len(lines), i+6)
                print(f"\n  --- line {i} ---")
                for n in range(start, end):
                    print(f"  {n+1:5d}: {lines[n]}")
    PY
    
    echo
    echo "## 3. AsyncWebServer handler registration for /json and /settings in set.cpp or json.cpp"
    rg -n -C 4 'on\s*\(\s*["\x27]/json|on\s*\(\s*["\x27]/set|handleSet|handleJson|handleApiPost|HTTP_POST|HTTP_PUT|HTTP_GET' \
      --type=cpp --type=h -g '!**/.pio/**' | head -200
    
    echo
    echo "## 4. Search for the specific 'doInitBusses' or 'doFinalizeInit' flag usage"
    rg -n -C 5 '\b(doInitBusses|doFinalizeInit|doLoadLedmap|doDeserialize|doSerialize|busConfigured|ledsConfigured|reconfNeeded|needReconfig|busUpdate|stripUpdate|configChanged|needsConfig|doSave)\b' \
      --type=cpp --type=h -g '!**/.pio/**' | head -300
    
    echo
    echo "## 5. Check if handleSettingsSet calls finalizeInit directly or via main loop flag"
    rg -n -C 8 '\b(finalizeInit|setUpMatrix|makeAutoSegments|deserializeMap)\b' \
      --type=cpp --type=h -g '!**/.pio/**' | head -300
    
    echo
    echo "## 6. What does suspend()/waitForIt()/resume() guard - concurrency protection?"
    rg -n -C 4 '\b(suspend\s*\(|waitForIt\s*\(|resume\s*\(|_suspend|_triggered)\b' \
      --type=cpp --type=h -g '!**/.pio/**' | head -200

    Length of output: 118058



    @softhack007 Here's what the code shows:

    Q1: Task concurrency — amplifier or direct executor?

    For SUBPAGE_2D, the async_tcp task is the direct executor, not just a messenger:

    // wled_server.cpp
    server.on(F("/settings"), HTTP_POST, [](AsyncWebServerRequest *request){
        serveSettings(request, true);  // → handleSettingsSet()
    });
    

    handleSettingsSet() for SUBPAGE_2D (set.cpp Lines 872–876) calls the full geometry reconfiguration synchronously on the async_tcp FreeRTOS task:

    strip.suspend();
    strip.waitForIt();
    strip.deserializeMap(); // → setUpMatrix() → changes maxWidth/maxHeight
    strip.makeAutoSegments(true); // destroys/recreates _segments vector
    strip.resume();

    By contrast, the LED settings path (SUBPAGE_LEDS) correctly only sets a flag:

    doInitBusses = busesChanged;  // set.cpp line 404

    …and defers finalizeInit() to WLED::loop() (wled.cpp Lines 217–225). That path is safe.

    What does suspend()/waitForIt() actually guard?

    _suspend is volatile bool (FX.h Line 1019) and service() checks it cooperatively at Lines 1290 and 1297. So:

    • waitForIt() ensures the current in-flight service() call has returned before modification starts — this part works.
    • But there is no mutex or memory barrier protecting the compound sequence: other code in the main loop that reads getLengthTotal(), customMappingTable, or iterates _segments is not blocked.
    • On ESP32-S3 (dual-core), the async_tcp task runs on Core 0 and the Arduino loop on Core 1 — they can truly run simultaneously. After waitForIt() returns and while makeAutoSegments(true) is rebuilding _segments on Core 0, the main loop on Core 1 could be executing other code that touches the same objects.

    So yes, concurrency is a real amplifier — the cooperative _suspend flag provides a soft synchronization window, not a hard lock. The comment in cfg.cpp Line 211 itself acknowledges the 2D setup path has had concurrency issues before:

    // cannot call strip.deserializeLedmap()/strip.setUpMatrix() here due to already locked JSON buffer

    Q2: Minimal crash path — no file I/O required

    Confirmed. The crash needs only:

    1. deserializeMap() called with no ledmap.json → immediately calls setUpMatrix()
    2. setUpMatrix() raises Segment::maxWidth × maxHeight to the new matrix size (e.g., 32 × 32 = 1024)
    3. getLengthTotal() now returns maxWidth * maxHeight (FX_fcn.cpp Line 1871):
      unsigned len = Segment::maxWidth * Segment::maxHeight;
    4. _pixels was allocated in finalizeInit() for the old getLengthTotal() (e.g., 256 LEDs × 4 bytes = 1 KB). There is no reallocation of _pixels in the 2D save path — it only happens inside finalizeInit().
    5. The very next fill() call (FX.h Line 903: for (size_t i = 0; i < getLengthTotal(); i++) setPixelColor(i, c)) walks 1024 elements into a 256-element buffer → overwrites heap with 0x00000000 → CORRUPT HEAP: Expected 0xabba1234 got 0x00000000.

    No ledmap.json, no 2d-gaps.json, no gap table involved.


    Root cause in one sentence: The 2D save handler runs on the async_tcp task and changes getLengthTotal() without reallocating _pixels — the first subsequent fill()/show() on the main loop then overflows the stale buffer. The suspend()/waitForIt() cooperative guard reduces the race window but cannot fully close it on a dual-core device, and it doesn't address the missing _pixels resize at all.

    🐇🔍


    🧠 Learnings used
    Learnt from: DedeHai
    Repo: wled/WLED PR: 5464
    File: wled00/FX_fcn.cpp:1699-1701
    Timestamp: 2026-04-09T07:26:14.510Z
    Learning: In WLED (wled00/util.cpp), `allocate_buffer()` processes `BFRALLOC_NOBYTEACCESS` in an `if` with an `else` that covers all other flags. On classic ESP32, this means `BFRALLOC_ENFORCE_PSRAM` and `BFRALLOC_PREFER_PSRAM` are silently ignored when `BFRALLOC_NOBYTEACCESS` is also set — IRAM (MALLOC_CAP_32BIT) is always tried first. Combining `BFRALLOC_CLEAR | BFRALLOC_NOBYTEACCESS` is unsafe: the allocator's internal `memset` at util.cpp:901 will perform byte-level access on a potentially IRAM-resident buffer. This affects `Segment::pixels` in `setGeometry()` (FX.h) and `_pixels` in `finalizeInit()` (FX_fcn.cpp). Additionally, `memcpy` on `Segment::pixels` in the copy constructor and copy assignment (FX_fcn.cpp lines ~73 and ~116) is also a byte-level violation when the buffer is in IRAM. The safe pattern is element-wise 32-bit access (for loops over `uint32_t*`) rather than `memset`/`memcpy` for all `BFRALLOC_NOBYTEACCESS` buffers.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 5464
    File: wled00/FX_fcn.cpp:1699-1701
    Timestamp: 2026-04-09T09:14:32.589Z
    Learning: In WLED, pixel buffers allocated with `BFRALLOC_NOBYTEACCESS` (both `WS2812FX::_pixels` and `Segment::pixels`) are intentionally placed in 32-bit-only accessible IRAM by design. Buffers up to ~1000 LEDs (~4 kB) easily fit within IRAM's ~50 kB pool. `memset` and `memcpy` on these buffers work correctly in practice because the Xtensa newlib assembly implementations use 32-bit stores for word-aligned, word-multiple-size buffers — satisfying the IRAM hardware constraint as an implementation property of the assembly code, which is unlikely to change across IDF versions. The risk of a future violation exists but is accepted as very low. Do not flag `memset`/`memcpy` usage on `BFRALLOC_NOBYTEACCESS` pixel buffers as a critical bug in WLED reviews; note it as a low-risk accepted pattern.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5048
    File: wled00/cfg.cpp:673-673
    Timestamp: 2026-03-28T00:51:30.926Z
    Learning: In WLED PR `#5048`, the NTP-related crash on ESP32-C5 (pioarduino IDF 5.5.x with CONFIG_LWIP_CHECK_THREAD_SAFETY=y) is definitively NOT caused by ntpUdp.begin(). The crash dump shows the real call chain: WLED::loop() → handleTime() → handleNetworkTime() (ntp.cpp:212) → AsyncDNS::query() (asyncDNS.h:45) → dns_gethostbyname_addrtype() → dns_alloc_pcb() → dns_alloc_random_port() → udp_new_ip_type() ← ASSERT. The fix must be in AsyncDNS::query() (asyncDNS.h:45): the call to dns_gethostbyname_addrtype() must be dispatched to the TCPIP thread via tcpip_callback_with_block() on IDF V5+. The ntpUdp.begin() call sites (wled.cpp:926 and set.cpp:562) are NOT the crash location for this particular bug.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 4939
    File: wled00/FX_fcn.cpp:1176-1187
    Timestamp: 2025-09-16T18:08:42.848Z
    Learning: In WLED finalizeInit() bus creation (wled00/FX_fcn.cpp), intentionally allowing memory overruns when bus configurations exceed MAX_LED_MEMORY is a deliberate design choice. The trade-off prioritizes creating buses with reduced LED counts over completely failing to create buses, which would cause no LED output and UI failures. This approach forces users to update configurations after migrating to version 0.16 while maintaining basic functionality.
    

    Learnt from: BobLoeffler68
    Repo: wled/WLED PR: 5440
    File: usermods/user_fx/user_fx.cpp:1304-1313
    Timestamp: 2026-03-25T07:03:35.475Z
    Learning: In WLED `mode_dissolveplus` (usermods/user_fx/user_fx.cpp), using `hw_random16(SEGLEN)` to select the survivor pixel index is correct and safe for this 1D-only effect. The 0xFFFF unmapped-entry concern from the physical bus mapping does not apply to 1D segments because virtual indices 0..SEGLEN-1 always map to valid physical LEDs without gaps. Do not flag this as a bug in future reviews of 1D effects.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5457
    File: usermods/zigbee_rgb_light/usermod_zigbee_rgb_light.h:0-0
    Timestamp: 2026-03-31T17:31:01.023Z
    Learning: In WLED PR `#5457` (zigbee_rgb_light usermod): The WLED_MAX_DIGITAL_CHANNELS=0 build flag used in the esp32c6_zigbee environment is a temporary workaround for rmt_tx_wait_all_done() timeout spam when the Zigbee/802.15.4 stack is active. The root cause is under investigation and is likely related to Zigbee light-sleep (CONFIG_PM_ENABLE) disrupting RMT's internal time base, or ISR latency due to cache-disable during flash ops — NOT the 802.15.4 radio "sharing" the RMT peripheral (they are separate hardware). Because a proper fix (rmt_enable()/rmt_disable() PM-lock wrapping, allow_pd=0, CONFIG_RMT_TX_ISR_CACHE_SAFE) may eliminate the need to disable digital channels entirely, do NOT add a compile-time `#error` guard requiring WLED_MAX_DIGITAL_CHANNELS=0; doing so would prematurely bake in a constraint that may be lifted once the investigation concludes.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5048
    File: wled00/cfg.cpp:673-673
    Timestamp: 2026-03-27T21:17:51.985Z
    Learning: In WLED PR `#5048`, the NTP/UDP crash on ESP32-C5 (pioarduino IDF 5.5.x): CONFIG_LWIP_TCPIP_CORE_LOCKING defaults to n (disabled) in arduino-esp32/pioarduino, while CONFIG_LWIP_CHECK_THREAD_SAFETY=y is what actually causes the "Required to lock TCPIP core functionality!" assertion. LOCK_TCPIP_CORE() / UNLOCK_TCPIP_CORE() macros are only functional when CONFIG_LWIP_TCPIP_CORE_LOCKING=y; using them without enabling that config has no effect. The correct fix without sdkconfig changes is to use tcpip_callback() to schedule ntpUdp.begin() (and other raw lwIP API calls) on the TCPIP thread, which works regardless of the locking mode setting. The tasmota core (IDF 5.3.x, used for C6) likely has CONFIG_LWIP_CHECK_THREAD_SAFETY=n, which is why the same violation does not crash on C6.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5048
    File: wled00/cfg.cpp:673-673
    Timestamp: 2026-03-27T21:17:51.985Z
    Learning: In WLED PR `#5048` (wled00/cfg.cpp), the NTP crash on ESP32-C5 (pioarduino + IDF 5.5.x) is caused by both CONFIG_LWIP_TCPIP_CORE_LOCKING=y AND CONFIG_LWIP_CHECK_THREAD_SAFETY=y being enabled by default in the pioarduino/arduino-esp32 IDF 5.x sdkconfig. The tasmota core (IDF 5.3.x, used for C6) likely has CONFIG_LWIP_CHECK_THREAD_SAFETY=n, which is why the same violation does not crash on C6. Since pioarduino already has TCPIP_CORE_LOCKING enabled, wrapping ntpUdp.begin() (and any other raw lwIP API call) with LOCK_TCPIP_CORE()/UNLOCK_TCPIP_CORE() from lwip/tcpip.h is directly applicable without sdkconfig changes in platformio.ini.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 0
    File: :0-0
    Timestamp: 2025-12-28T14:06:48.772Z
    Learning: In WLED post-commit ee9ac947, the rendering pipeline uses per-segment buffers and per-pixel bus updates. Unmapped (0xFFFF) mapping entries are now skipped in WS2812FX::show() (no “clear to black”), which can leave physical gap LEDs with stale/random colors unless they are explicitly cleared. This is a behavior change from pre-0.16 where a full physical buffer was effectively refreshed each frame.
    

    Learnt from: DedeHai
    Repo: wled/WLED PR: 4939
    File: wled00/data/index.js:2406-2413
    Timestamp: 2025-09-28T09:53:42.670Z
    Learning: In WLED, code paths that appear unreachable may actually be safety fallbacks for low-heap conditions. These fallbacks are intentional defensive programming measures to ensure UI functionality is preserved when system resources are constrained.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5048
    File: wled00/set.cpp:551-555
    Timestamp: 2026-03-27T21:00:25.902Z
    Learning: In WLED PR `#5048` (wled00/set.cpp lines 551-555), the CONFIG_IDF_TARGET_ESP32C5 block that unconditionally forces ntpEnabled = false is an intentional **temporary hotfix** by softhack007 for a known ESP32-C5 crash: `assert failed: udp_new_ip_type udp.c:1278 (Required to lock TCPIP core functionality!)`. Do not flag this as a permanent design issue; the TODO comment in the code already notes it should be resolved properly once the underlying IDF/TCPIP bug on C5 is fixed. A future permanent solution should use a target capability flag rather than overwriting the user's setting.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5641
    File: usermods/FSEQ/xlz_unzip.cpp:11-12
    Timestamp: 2026-05-29T12:29:48.004Z
    Learning: In the WLED FSEQ usermod (usermods/FSEQ/xlz_unzip.cpp), the static `g_xlzZip` (UNZIP instance, ~41 KB) is intentionally kept as a file-scoped static rather than a local variable because placing a 41 KB struct on the FreeRTOS loopTask stack causes stack-canary panics on ESP32. The instance is only accessed from XLZUnzip::unpackArchive(), which is called synchronously and entirely from UsermodFPP::loop() on the single Arduino loopTask. Effect render functions (mode_fseq_player) never touch g_xlzZip. The cooperative yield() calls inside the decompression loop do not suspend the function across loop() iterations. Therefore, no mutex or synchronization is required for g_xlzZip; do not flag this shared static as a race condition.
    

    Learnt from: softhack007
    Repo: wled/WLED PR: 5435
    File: wled00/file.cpp:43-43
    Timestamp: 2026-03-22T00:49:53.727Z
    Learning: In WLED (wled00/file.cpp and related), all callers of writeObjectToFile(), writeObjectToFileUsingId(), readObjectFromFile(), and readObjectFromFileUsingId() execute exclusively on the main Arduino loop task. No async webserver callback (which runs on a separate FreeRTOS task on ESP32) directly calls any of these file functions — async handlers either set flags or delegate to the main loop. This means the static File f in file.cpp is never concurrently accessed from multiple tasks, and the window between doCloseFile=false and f.close() in closeFile() cannot be exploited by a parallel open() call.
    
  9. softhack007 commented on Jun 4, 2026

    @softhack007
    Member

    Root cause in one sentence: The 2D save handler runs on the async_tcp task and changes getLengthTotal() without reallocating _pixels — the first subsequent fill()/show() on the main loop then overflows the stale buffer. The suspend()/waitForIt() cooperative guard reduces the race window but cannot fully close it on a dual-core device, and it doesn't address the missing _pixels resize at all.

    Side note: the race window also exists on single-core. We should look into replacing the wishful-thinking "suspend()/waitForIt() cooperative guard" with a real mutex, or maybe with an atomic guard.

  10. willmmiles commented on Jun 4, 2026

    @willmmiles
    Member

    What we should do is handle web requests setting state synchronously in loop(), and later isolate the render task. There are too many of these races to effectively handle them one at a time.

    If you're at the ready to sort out mutexes, #4808 is mostly there -- it still needs the JSON mutex backoff logic to be moved in to the handler queue, but the principle and architecture is there.

  11. willmmiles commented on Jun 5, 2026

    @willmmiles
    Member

    (By 'isolate the render task' I mean pull all of the render state behind an object API and header breakup so we are guranteed there are no global variables that will influence the render task, and all external accesses go through an API where thread safety can be guaranteed.)

  12. DedeHai commented on Jun 5, 2026

    @DedeHai
    CollaboratorAuthor

    I think this time it has nothing to do with async settings - the rabbit seems to be on to something. So if I understand it correctly the issue is the _pixels[] buffer: it gets allocated only in finalizeInit() which is only called when buses change or on bootup - since it requires the busconfigs to be filled.
    If I switch the LEDs off, change the matrix to 32x32 it will save it. As soon as I now switch the LEDs to on, it crashes. The fix the rabbit suggests is probably valid - have a function to resize the _pixels[] buffer independently of finalizeInit().

  13. softhack007 commented on Jun 12, 2026

    @softhack007
    Member

    @DedeHai @willmmiles is this a regression in 16.0.0 (compared to 0_15_x)?
    If yes, then we should try to merge the fix soon so its part of 16.0.1 🤔

    @netmindz

  14. willmmiles commented on Jun 12, 2026

    @willmmiles
    Member

    @DedeHai @willmmiles is this a regression in 16.0.0 (compared to 0_15_x)? If yes, then we should try to merge the fix soon so its part of 16.0.1 🤔

    @softhack007 0.15 didn't always require a global buffer, so probably only if that feature was enabled. Either way, I have no objections to backporting the fix for 16.0.1.

  15. softhack007 commented on Jun 16, 2026

    @softhack007
    Member

    solved with #5675

  16. added
    confirmed
    and removed
    needs investigation
    on Jun 16, 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

    bugconfirmed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions