vortigont/FireLamp_JeeUI

Падение при переключении эффекта EffectCircles

Closed this issue · 0 comments

Lamp::event_hndlr LAMP_CHANGE_EVENTS:1001
Lamp::switcheffect() postfade act=3, fade=1, effnb=29
EffectWorker::switchEffect()
switch EffWorker to 29
Wrkr set:29
_eff_cfg_deserialize() eff:29
_eff_ctrls_load_from_jdoc(), got arr of 3 controls
scale2pallete() Reset all controls, wtf???
Mapping value to pallete: Psize=22, POS=3, ptPallete=1.00, palettescale=0

assert failed: block_trim_free heap_tlsf.c:371 (block_is_free(block) && "block must be free")


Backtrace: 0x40083d21:0x3ffb1ab0 0x4008edf5:0x3ffb1ad0 0x40094455:0x3ffb1af0 0x400938aa:0x3ffb1c20 0x40093f6f:0x3ffb1c40 0x400940ac:0x3ffb1c60 0x400841e4:0x3ffb1c80 0x400842a1:0x3ffb1cb0 0x40084391:0x3ffb1ce0 0x400843bf:0x3ffb1d00 0x40094475:0x3ffb1d20 0x4012c4fb:0x3ffb1d40 0x4012c56c:0x3ffb1d80 0x4012c5a1:0x3ffb1da0 0x4012c5ef:0x3ffb1dc0 0x400f8bb5:0x3ffb1de0 0x400f8cf5:0x3ffb1e20 0x400f6a33:0x3ffb1e80 0x400fa29a:0x3ffb1ec0 0x400fad35:0x3ffb1f00 0x400dc134:0x3ffb1f30 0x400fa242:0x3ffb1f50 0x400ff72a:0x3ffb1f90 0x400ff9c1:0x3ffb2140 0x40109c02:0x3ffb2160 0x40109caa:0x3ffb21b0 0x40108962:0x3ffb21d0 0x40108976:0x3ffb21f0 0x40108962:0x3ffb2210 0x40128581:0x3ffb2230 0x40120052:0x3ffb2250 0x4010a626:0x3ffb2270 0x4012e7e1:0x3ffb2290

  #0  0x40083d21:0x3ffb1ab0 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408
  #1  0x4008edf5:0x3ffb1ad0 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:137
  #2  0x40094455:0x3ffb1af0 in __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c:85
  #3  0x400938aa:0x3ffb1c20 in block_locate_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_tlsf.c:441
      (inlined by) tlsf_malloc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_tlsf.c:849
  #4  0x40093f6f:0x3ffb1c40 in multi_heap_malloc_impl at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/multi_heap.c:187
  #5  0x400940ac:0x3ffb1c60 in multi_heap_malloc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/multi_heap_poisoning.c:234
      (inlined by) multi_heap_malloc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/multi_heap_poisoning.c:223
  #6  0x400841e4:0x3ffb1c80 in heap_caps_malloc_base at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:175
      (inlined by) heap_caps_malloc_base at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:120
  #7  0x400842a1:0x3ffb1cb0 in heap_caps_realloc_base at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:396
  #8  0x40084391:0x3ffb1ce0 in heap_caps_realloc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:465
  #9  0x400843bf:0x3ffb1d00 in heap_caps_realloc_default at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:253
  #10 0x40094475:0x3ffb1d20 in realloc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/heap.c:34
  #11 0x4012c4fb:0x3ffb1d40 in String::changeBuffer(unsigned int) at C:/Users/DENIS/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:200 (discriminator 4)
  #12 0x4012c56c:0x3ffb1d80 in String::reserve(unsigned int) at C:/Users/DENIS/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:165 (discriminator 4)
  #13 0x4012c5a1:0x3ffb1da0 in String::copy(char const*, unsigned int) at C:/Users/DENIS/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:224     
  #14 0x4012c5ef:0x3ffb1dc0 in String::String(char const*) at C:/Users/DENIS/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:36
      (inlined by) String::String(char const*) at C:/Users/DENIS/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:33
  #15 0x400f8bb5:0x3ffb1de0 in String::startsWith(char const*) const at C:/Users/DENIS/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.h:225
  #16 0x400f8cf5:0x3ffb1e20 in EffectCalc::setDynCtrl(UIControl*) at src/effectworker.cpp:1226
  #17 0x400f6a33:0x3ffb1e80 in EffectCircles::setDynCtrl(UIControl*) at src/effects.cpp:6550
  #18 0x400fa29a:0x3ffb1ec0 in EffectCalc::scale2pallete() at src/effectworker.cpp:1313
  #19 0x400fad35:0x3ffb1f00 in EffectCalc::scale2pallete() at src/effectworker.cpp:1304
      (inlined by) EffectCalc::palettesload() at src/effectworker.cpp:1275
  #20 0x400dc134:0x3ffb1f30 in EffectCircles::load() at src/effects.cpp:6555
  #21 0x400fa242:0x3ffb1f50 in EffectCalc::init(EFF_ENUM, LL::LinkedList<std::shared_ptr<UIControl> >*, LAMPSTATE*) at src/effectworker.cpp:1175
  #22 0x400ff72a:0x3ffb1f90 in EffectWorker::workerset(unsigned short) at src/effectworker.cpp:507
  #23 0x400ff9c1:0x3ffb2140 in EffectWorker::switchEffect(unsigned short, bool) at src/effectworker.cpp:844
  #24 0x40109c02:0x3ffb2160 in Lamp::_switcheffect(effswitch_t, bool, unsigned short, bool) at src/lamp.cpp:464
  #25 0x40109caa:0x3ffb21b0 in std::_Function_handler<void (), Lamp::_switcheffect(effswitch_t, bool, unsigned short, bool)::{lambda()#1}>::_M_invoke(std::_Any_data const&) at src/lamp.cpp:444
      (inlined by) _M_invoke at c:\users\denis\.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:297
  #26 0x40108962:0x3ffb21d0 in std::function<void ()>::operator()() const at c:\users\denis\.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:687
  #27 0x40108976:0x3ffb21f0 in std::_Function_handler<void (), LEDFader::fadelight(int, unsigned int, std::function<void ()>)::{lambda()#2}::operator()() const::{lambda()#1}>::_M_invoke(std::_Any_data const&) at src/lamp.cpp:712
      (inlined by) _M_invoke at c:\users\denis\.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:297
  #28 0x40108962:0x3ffb2210 in std::function<void ()>::operator()() const at c:\users\denis\.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:687
  #29 0x40128581:0x3ffb2230 in Scheduler::execute() at .pio/libdeps/esp32debug/TaskScheduler/src/TaskScheduler.h:1431
  #30 0x40120052:0x3ffb2250 in EmbUI::handle() at .pio/libdeps/esp32debug/EmbUI/EmbUI/EmbUI.cpp:273
  #31 0x4010a626:0x3ffb2270 in loop() at src/main.cpp:127
  #32 0x4012e7e1:0x3ffb2290 in loopTask(void*) at C:/Users/DENIS/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50