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

Analog clock seems to permanently crash connection #9

Closed
schroepfer opened this issue Apr 8, 2018 · 5 comments
Closed

Analog clock seems to permanently crash connection #9

schroepfer opened this issue Apr 8, 2018 · 5 comments
Labels

Comments

@schroepfer
Copy link

You wrote:
Features: (V0.6.2)
.......
NTP and configurable analog clock function

NTP settings work, but where i can find the analog clock function?

@Aircoookie
Copy link
Member

You can find the Analog Clock function in the "Time & Macros" settings menu. Under the NTP time, there is a "Clock Overlay" dropdown menu. Select Analog Clock. Then you can also specify the LED range to display the clock and the LED where 12 o' clock should be. If you run into the issue that your clock goes anticlockwise, go to LED settings, scroll all the way down and on the bottom, select "Reverse LED order". Hope the function works well for you!

@schroepfer
Copy link
Author

schroepfer commented Apr 10, 2018

I found it!
But: It works, but it blocks the web-interface and the Access Point. It seems, that this function blocks all other and all time of the ESP.
To stop this setup, i must erase the flash with esptool.

@Aircoookie Aircoookie added the bug label Apr 10, 2018
@Aircoookie
Copy link
Member

Uh oh this is terrible! This problem seems to cause the web-interface to never work with a certain settings configuration! Which means you can't fix it by a simple reflash because the settings are retained in flash.

Unfortunately I can't reproduce it. Enabling AP also doesn't cause it for me. Can you please send me your settings before enabling the clock? Then I can see if I can reproduce it. Also I took a quick look at the clock code and there is absolutely nothing in there that should cause such a severe and permanent issue. Thank you so much for discovering this problem and I'm sorry it's such a hassle.

@Aircoookie
Copy link
Member

By the way, I really need to add a settings dump feature (excluding WiFi creds) to make it easier for you and others to send a config that causes problems. Sorry!

@Aircoookie Aircoookie changed the title Analog clock? Analog clock seems to permanently crash connection Apr 10, 2018
@schroepfer
Copy link
Author

schroepfer commented Apr 10, 2018

i only changed the number of leds to 60 and my wifi setting.
I used your WLED_0.6.2_ESP8266_RGB.bin and flashed it with esptool.

Aircoookie pushed a commit that referenced this issue Apr 8, 2020
THATDONFC referenced this issue in atuline/WLED May 4, 2020
huksley pushed a commit to huksley/WLED that referenced this issue May 25, 2020
…DONFC/master

Code Cleanup, Update Slider CSS, Slider XML Response
Proto-molecule pushed a commit to Proto-molecule/WLED that referenced this issue Jan 16, 2022
use classList add/remove instead of edit className with string functions
softhack007 added a commit that referenced this issue Sep 8, 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
Projects
None yet
Development

No branches or pull requests

2 participants