Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

AudioReactive Palettes inconsistent / unsafe behaviour when switching off the usermod temporarily

Aperta
#5,681 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
54/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
cpp
Ambito
embedded-iot

Direzione di ricerca

Start with the linked code in usermods/audioreactive/audio_reactive.cpp, then compare the palette and sound-simulation paths in wled00/colors.cpp, json.cpp, and FX_fcn.cpp. Check how a preset that references an AR palette behaves while the usermod is off. Done means palette access is safe and its off-state behavior matches the simulation behavior described in the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug usermod

https://github.com/wled/WLED/blob/4efb02de581d6949d1fc0e4a696d7a7ec4ed8fe2/usermods/audioreactive/audio_reactive.cpp#L1958-L1960

When the AR usermod is "switched off" (button in info panel, or by unchecking "enabled" in AR settings). audioreactive palettes are erased from the internal palettes vector. If a preset still references an Effect with AR palette, accessing the palette colors reads from unallocated memory - vector array [] access is not checked for bounds violation.

This is inconsistent to other AR effects, which enable Sound Simulation when the AR usermod is off. Its also inconsistent with the original AR palettes behaviour in WLED-MM, where palette colors come from simulation (fftResult[]) when AR is disabled.

https://github.com/wled/WLED/blob/4efb02de581d6949d1fc0e4a696d7a7ec4ed8fe2/wled00/colors.cpp#L319

https://github.com/wled/WLED/blob/4efb02de581d6949d1fc0e4a696d7a7ec4ed8fe2/wled00/json.cpp#L1014-L1016

https://github.com/wled/WLED/blob/4efb02de581d6949d1fc0e4a696d7a7ec4ed8fe2/wled00/FX_fcn.cpp#L276-L278

Lingua principale
C++
Stelle
18.8k
Fork
4.4k
Merge medio
2g 2h
PR unite (30g)
13

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wled/WLED

Tutte le issue di wled/WLED

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.