Repository navigation
Description
Context
The ESP32-P4 PARLIO no-output regression fixed in #2515 exposed a missing diagnostic in the channel dispatch layer.
The broken path was:
- Sketch called
FastLED.setExclusiveDriver("PARLIO"). - Legacy
FastLED.addLeds<WS2812B, PIN, ...>()still selected/pre-bound the RMT path before fix(esp32p4): route legacy clockless controllers through PARLIO #2515. - RMT registered with
ChannelManager, but exclusive-driver mode disabled it because the requested driver was PARLIO. Channel::showPixels()still encoded/enqueued LED data to the bound driver.ChannelManager::onEndFrame()only calledshow()on enabled drivers, so no enabled driver transmitted the queued LED data.- The sketch appeared to run normally but no pin output was produced, and the user got no actionable error.
There are already diagnostics for selectDriverForChannel() returning no compatible driver, but this failure is different: a channel can have data bound/enqueued to a driver that will not be executed by the manager because the driver is disabled or otherwise not present in the enabled flush set.
Proposal
Add a loud FL_ERROR diagnostic when frame-end flush has LED data that cannot be executed by any enabled channel driver.
The diagnostic should cover at least:
- a channel enqueues data to a driver disabled by
setExclusiveDriver(...) - a channel has a pre-bound driver that is not registered/enabled in
ChannelManager ChannelManager::onEndFrame()has no enabled compatible driver to call for queued LED data
The message should name the channel if available, the intended/bound driver if available, the current exclusive-driver setting if any, and at least one actionable remediation.
Example remediation text could point users toward:
- use the typed bus overload / compile-time binding for the intended driver
- call
FastLED.enableDrivers<fl::Bus::...>()orFastLED.enableAllDrivers()where appropriate - avoid
setExclusiveDriver("PARLIO")with channels that are actually bound to another bus
Acceptance criteria
- Reproduce the pre-fix(esp32p4): route legacy clockless controllers through PARLIO #2515 class of failure in a unit test or focused integration test: channel data is enqueued but the only bound driver is disabled by exclusive-driver selection.
FastLED.show()orChannelManager::onEndFrame()emits anFL_ERRORinstead of silently dropping the frame.- The error clearly says that no enabled driver will execute the queued LED data.
- The error includes the relevant driver names / exclusive-driver state when available.
- Normal successful flush paths do not produce the new error.
Related issues / PRs
- bug(esp32p4): PARLIO produces no LED output on recent master #2513: ESP32-P4 PARLIO no-output issue where this diagnostic would have shortened the investigation
- fix(esp32p4): route legacy clockless controllers through PARLIO #2515: Fix that routes ESP32-P4 legacy clockless controllers through PARLIO
- ESP32-P4 PARLIO: FastLED.show() appears to block for ~16.7 ms before WS2812 data burst begins #2493: Source thread where the no-output report surfaced
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(channels): emit FL_ERROR when queued LED data has no enabled driv…
perf(channel): gate emitDisabledDriverError diagnostic chain (#2950) (#…
fix(gfx): two crashes the dormant channel test was hiding (#4201) (#4239
fix(channels): clear the exclusive-driver filter in clearAllDrivers, …
study(color): characterise the 8-bit shaping paths, ruling two out (#…