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

esp8266 veriant working but when open clock settings esp reboots #9

Closed
1 task done
DJprasenjit opened this issue Feb 5, 2023 · 3 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@DJprasenjit
Copy link

What happened?

i downloaded the latest code of ledclock-esp8266 compiled from platformio and uploaded on nodeMcu working good. but cant set my timezone. when i am going clock setting option esp reboots. and the web server opens on only the wled app. in web browser when i giving the ip somthing starts downloading. please tell me a solutoin to fix my time zone.
for your info this same code works fine on esp32.
but i wanted it to esp8266.
please reply with a fix

To Reproduce Bug

platform io compiles error but fix in two three attempts and uploaded with platform io. ledclock esp8266 working everything. i managed to fix the led order. but in esp8266 reboots only when i open the clock settings and time macros option.

Expected Behavior

in esp32 same programme working fine . i can open clock settings and time macros

Install Method

Self-Compiled

What version of WLED?

lestest build 1.2.0

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@DJprasenjit DJprasenjit added the bug Something isn't working label Feb 5, 2023
@imeszaros
Copy link
Owner

imeszaros commented Feb 5, 2023

Sorry, I can't help with ESP8266. My project was never meant to work with it, I do not have an ESP8266 board to try it out. If you have multiple boards you should try to use another one. Other guys did not have this problem as far as i'm aware.

@DJprasenjit
Copy link
Author

can you tell me where is the manual settings for the clock setting time zone and auto brightness settings? if i do it in the code. then the clock work fine. i have to set time zone IST india and auto brightness off

@imeszaros
Copy link
Owner

Timezone setting is loaded here: https://github.com/imeszaros/ledclock/blob/master/wled00/cfg.cpp#L360
Auto brightness setting can be overridden here: https://github.com/imeszaros/ledclock/blob/master/wled00/um_ledclock.h#L777

@imeszaros imeszaros closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
imeszaros pushed a commit that referenced this issue Dec 21, 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
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

2 participants