Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer able to save presets after factory reset #2

Closed
1 task done
dosipod opened this issue Nov 16, 2022 · 3 comments
Closed
1 task done

No longer able to save presets after factory reset #2

dosipod opened this issue Nov 16, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@dosipod
Copy link

dosipod commented Nov 16, 2022

What happened?

Very strange issue I hope someone could confirm , when you flash to 0.14.0.3.0 (build 2211152) with OTA presets will work but if you do a factory reset then you will no longer be able to save any presets unless you uncheck use current state . Also if you serial flash 0.14.0.3.0 then you will not be able to save presets same as above and this was observed with multiple units . I am not sure if that issue was there in earlier versions and we missed that as last one we tested was 0.14.0.1.0
image

To Reproduce Bug

factory reset and try to save presets

Expected Behavior

presets are saved

Install Method

Self-Compiled

What version of WLED?

WLED 0.14.0.3.0 (build 2211152)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@dosipod dosipod added the bug Something isn't working label Nov 16, 2022
@softhack007
Copy link
Collaborator

Could be related to wled#2886

@ewoudwijma
Copy link
Collaborator

That was already solved, this is related to this:

https://discord.com/channels/473448917040758787/779395228624617512/1043504303865856000

Just solved in latest WLEDSR commit.

Let me know if it works for you, then I can close this

@dosipod
Copy link
Author

dosipod commented Nov 20, 2022

Tested in MM 0.14.0.4.2 (build 2211192) and we can save presets after factory reset , you may close as you see fit

softhack007 added a commit that referenced this issue Dec 4, 2022
* set.cpp: reject non-ADC pins as analog button pins (bugfix)
* pinmanager:
record conflicts
added getOwnerText(PinOwner tag) and getPinConflicts(int gpio)

GPIO    | Assigned to           | Info
--------|-----------------------|------------
i/o   0   Button            !! Conflict with AudioReactive (UM) !!        (default) I2S MCLK
i/o   1   debug output            Serial TX
i/o   2   ./.                     (default) LED pin
i/o   3   ./.                     Serial RX
i/o   5   ./.                     (default) SPI SS
i/o  13   Button            !! Conflict with IR Receiver !!

PIN ALLOC error: GPIO19 for analog button #2 is not an analog pin!
softhack007 added a commit that referenced this issue Nov 15, 2023
this is a band-aid fix for random crashes when switching between presets with multiple segments - crossfade disabled.

!! adding type initializers fixed it for me on -S3, however I still see (less frequent) crashes on esp32, due to heap corruption.

It took me hours to get a meaningful stackdump:

assert failed: heap_caps_free heap_caps.c:360 (heap != NULL && "free() target pointer is outside heap areas")

Backtrace: 0x40084ee1:0x3ffb2570 0x4008e341:0x3ffb2590 0x40094709:0x3ffb25b0 0x4008534a:0x3ffb26e0 0x40094739:0x3ffb2700 0x400e9037:0x3ffb2720 0x400e917c:0x3ffb2740 0x400eaeeb:0x3ffb2760 0x40117ec5:0x3ffb27c0 0x401184ea:0x3ffb2800 0x4013509d:0x3ffb2820

  #0  0x40084ee1:0x3ffb2570 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
  #1  0x4008e341:0x3ffb2590 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
  #2  0x40094709:0x3ffb25b0 in __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c:85
  #3  0x4008534a:0x3ffb26e0 in heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:360
      (inlined by) heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:345
  #4  0x40094739:0x3ffb2700 in free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/heap.c:39
  #5  0x400e9037:0x3ffb2720 in Segment::deallocateData() at wled00/FX_fcn.cpp:189
  #6  0x400e917c:0x3ffb2740 in Segment::resetIfRequired() at wled00/FX_fcn.cpp:206
      (inlined by) Segment::resetIfRequired() at wled00/FX_fcn.cpp:203
  #7  0x400eaeeb:0x3ffb2760 in WS2812FX::service() at wled00/FX_fcn.cpp:1216 (discriminator 2)
  #8  0x40117ec5:0x3ffb27c0 in WLED::loop() at wled00/wled.cpp:115 (discriminator 3)
  #9  0x401184ea:0x3ffb2800 in loop() at C:/src/wled00/wled00.ino:20
  #10 0x4013509d:0x3ffb2820 in loopTask(void*) at C:/Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50

ELF file SHA256: 18c20b536f4c6ef4
Brandon502 pushed a commit to Brandon502/WLED that referenced this issue May 7, 2024
…rt Adafruit MAX17048 module. (MoonModules#2)

Co-authored-by: Azots <78281612+Azots@users.noreply.github.com>
CroachX added a commit to CroachX/WLED that referenced this issue Aug 22, 2024
softhack007 added a commit that referenced this issue Dec 3, 2024
segments that are "off" were still rendered during transitions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants