atanisoft / ESP32CommandStation

An ESP32 based DCC Command Station with integrated OpenLCB (LCC) --- NOTE: this project is not under active development.
https://atanisoft.github.io/ESP32CommandStation/
GNU General Public License v3.0
90 stars 34 forks source link

RailCom Detector alloc failure #36

Closed atanisoft closed 3 years ago

atanisoft commented 4 years ago

Observed once, needs further investigation. Possibly shift from alloc on-demand to alloc from limited pool.

Backtrace: 0x401280ab:0x3ffb0b40 0x400f936e:0x3ffb0b70 0x400f93e7:0x3ffb0b90 0x400faf32:0x3ffb0bc0 0x400faf3d:0x3ffb0bf0 0x400f684a:0x3ffb0c10 0x40083765:0x3ffb0c30 0x40081c39:0x3ffb0c70 0x40082b3d:0x3ffb0c90 0x401a5a47:0x3ffc0dd0 0x400d4a55:0x3ffc0df0 0x40097acc:0x3ffc0e10
0x401280ab: DynamicPool::alloc_untyped(unsigned int, Executable*) at ESP32CommandStation/build/../components/OpenMRNLite/src/utils/Buffer.cpp:112

0x400f936e: void Pool::alloc<HubContainer<StructContainer<dcc::Feedback> > >(Buffer<HubContainer<StructContainer<dcc::Feedback> > >**, Executable*) at ESP32CommandStation/build/../components/OpenMRNLite/src/utils/Buffer.hxx:295
0x400f93e7: esp32cs::Esp32RailComDriver<esp32cs::RailComHW>::set_feedback_key(unsigned int) at ESP32CommandStation/build/../components/OpenMRNLite/src/executor/StateFlow.hxx:1139
 (inlined by) esp32cs::Esp32RailComDriver<esp32cs::RailComHW>::set_feedback_key(unsigned int) at ESP32CommandStation/build/../components/DCCSignalGenerator/private_include/Esp32RailComDriver.h:159
0x400faf32: esp32cs::RMTTrackDevice::encode_next_packet() at ESP32CommandStation/build/../components/DCCSignalGenerator/RMTTrackDevice.cpp:445
0x400faf3d: esp32cs::RMTTrackDevice::rmt_transmit_complete() at ESP32CommandStation/build/../components/DCCSignalGenerator/RMTTrackDevice.cpp:348
0x400f684a: esp32cs::rmt_tx_callback(rmt_channel_t, void*) at ESP32CommandStation/build/../components/DCCSignalGenerator/DCCSignalVFS.cpp:327
0x40083765: rmt_driver_isr_default at esp-idf/components/driver/rmt.c:588
0x40081c39: shared_intr_isr at esp-idf/components/esp32/intr_alloc.c:505
0x40082b3d: _xt_lowint1 at esp-idf/components/freertos/xtensa_vectors.S:1153
0x401a5a47: esp_pm_impl_waiti at esp-idf/components/esp32/pm_esp32.c:484
0x400d4a55: esp_vApplicationIdleHook at esp-idf/components/esp_common/src/freertos_hooks.c:63
0x40097acc: prvIdleTask at esp-idf/components/freertos/tasks.c:3382