You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Presets crashes on new install after updating api (0.14.0 beta / main) #2886
The bug is due to missing "0":{} in presets.json (since the file was deleted).
presets.json with "0":{} object is created on boot if the file does not exist. If you delete presets.json while WLED is running and do not reboot, presets.json becomes corrupt (missing 1st element) as no "0":{}object is created.
There is another bug:
presets.json may not be created on boot if WLED is compiled without EEPROM support.
Activity
blazoncek commentedon Nov 16, 2022
The bug is due to missing
"0":{}in presets.json (since the file was deleted).presets.json with
"0":{}object is created on boot if the file does not exist. If you delete presets.json while WLED is running and do not reboot, presets.json becomes corrupt (missing 1st element) as no"0":{}object is created.There is another bug:
presets.json may not be created on boot if WLED is compiled without EEPROM support.
ewoudwijma commentedon Nov 16, 2022
The file was deleted after the bug occurred, the bug also takes place after an erase and install of WLED.
Erasing the file was done to continue.
So reproduce the error by doing a fresh install and update the first created preset.
The bug is not occurring if you have 2 presets
blazoncek commentedon Nov 16, 2022
Please examine presets.json after save of 1st preset. "0":{} is missing which is the root cause.
I am readying a fix.
MoonModules commentedon Nov 16, 2022
Cool, let me know when it is ready ;-)
blazoncek commentedon Nov 16, 2022
c47d6cf