Repository navigation
Closed
Labels
bugSomething isn't working
Description
What happened?
When using auto playlist with auto change there is a chance that when switching from ambient playlist to music playlist auto change will ask for a preset change before the preset change to the music playlist can take effect which auto playlist then takes as an outside action and disables itself. When autochange is turned off while autoplaylist is left on this no longer happens.
To Reproduce Bug
Turn on audio reactive with autoplaylist and autochange on with a mic connected, in my experience within an hour or two it will disable itself.
Expected Behavior
Autochange should wait until the music playlist preset is applied instead of racing against it.
Install Method
Self-Compiled or other
What version/release of MM WLED?
build 2501170, esp32_4MB_S.bin
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
AutoPlaylist: Sound detected
JSON buffer locked. (19)
FILE '/presets.json' open to read, size 2546 bytes
JSON buffer released. (19)
AutoPlaylist: Applying "MusicPlaylist"
Playlist unloaded.
Request to apply preset: 2 from source: CALL_MODE_NOTIFICATION
--- lowest distance = 166 - no changes done in 143350ms - next change_threshold is 166 ( 67 diff approx)
Request to apply preset: 5 from source: CALL_MODE_BUTTON
*** CHANGE distance = 166 - change_interval was 143350ms - next change_threshold is 183 ( 17 diff aprox)
JSON buffer locked. (9)
Applying preset: 5 (original request source: CALL_MODE_BUTTON)
FILE '/presets.json' open to read, size 2546 bytes
deserializeState {"on":true,"bri":245,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":30,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"n":"","col":[[255,160,0],[0,0,0],[0,0,0]],"fx":156,"sx":128,"ix":128,"pal":1,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}],"ledmap":0,"n":"Gravcenter 🎨⋮♪"}
deserializeSegment {"id":0,"start":0,"stop":30,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"n":"","col":[[255,160,0],[0,0,0],[0,0,0]],"fx":156,"sx":128,"ix":128,"pal":1,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2}
-- Copy segment constructor --
JSON buffer released. (9)
sendDataWs
JSON buffer locked. (12)
serializeState 0 {}
serializeSegment {}
AR I2S cycle time: 12.81 ms
AR Sampling time : 1.34 ms
AR filter time : 1.17 ms
AR FFT time : 3.69 ms
JSON buffer size: 4075 for WS request (2486).
Sending WS data to multiple clients.
JSON buffer released. (12)
Current mode or palette changed.
AutoPlaylist: disable due to manual change of playlist from 2 to -1, preset:5Anything else?
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Reacted by Copilot
Activity
netmindz commentedon Sep 20, 2025
Can you please try the bin from https://github.com/MoonModules/WLED-MM/actions/runs/17879385754 @terminusxx to see if this fixes the issue for you?
netmindz commentedon Oct 5, 2025
have you seen this happen at all @troyhacks ?
troyhacks commentedon Oct 6, 2025
Never witnessed it disabling itself, but I understand the bug report. This is telling maybe?
AutoPlaylist: disable due to manual change of playlist from 2 to -1, preset:5
It may simply be that I have music and ambient playlists that are both fairly equal in size, so the chances of picking a preset number not on the other playlist is less likely and doesn't happen (or happens so infrequently it's not been noticed) in my setup.
@terminusxx how many presets are in each of your playlists?
terminusxx commentedon Oct 6, 2025
I tried the bin but couldn't even get it to pick up anything from my mic, I double checked the settings and the hardware and even reflashed the previous version and that one still works.
I only have one preset in my ambient playlist and five in my music playlist, I can try adding another few to my ambient and see if that fixes anything.
I'll try to flash builds before this and see where my mic stops working, the last build I was using that works with my mic is from Jan.
troyhacks commentedon Oct 10, 2025
Yeah it's likely easy to fix. You just found the edge case we didn't in testing. 😁
softhack007 commentedon Nov 2, 2025
@troyhacks @netmindz if you give me a PR to fix the problem, I can add that into the next WLED-MM release. Is a "simple&elegant" fix possible?
Merge pull request #264 from MoonModules/copilot/fix-256 (fixes #256)
Merge pull request #264 from MoonModules/copilot/fix-256 (fixes #256)