panic on mqtt publish

smokes2345
Posts: 1
Joined: Sat Jan 27, 2024 2:42 pm

panic on mqtt publish

Postby smokes2345 » Sat Jan 27, 2024 2:49 pm

first time in IDF, so i'm way over my head here. I found this project that uses a capacitive sensor to monitor soil moisture, but publishes the data to an influx database. don't have one, don't want one. so i figured it *should* be trivial to change it over to mqtt so i can put the data where ever i'd like. This seems to be the offending function call: https://github.com/smokes2345/plant-mon ... ain.c#L257 I did find another thread about the `client` being null, but i hope i've coded around that particular scenario.
  1. I (6431) plant1: publishing 2464 to topic plants/monitor
  2. Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.
  3.  
  4. Core  0 register dump:
  5. MEPC    : 0x40035c88  RA      : 0x40035bdc  SP      : 0x40824520  GP      : 0x408168b4
  6. 0x40035c88: _svfprintf_r in ROM
  7.  
  8. 0x40035bdc: _svfprintf_r in ROM
  9.  
  10. TP      : 0x407fb41c  T0      : 0x400283c2  T1      : 0x408245ec  T2      : 0xffffffff
  11. 0x400283c2: __getreent in ROM
  12.  
  13. S0/FP   : 0x00000000  S1      : 0x00000000  A0      : 0x00000001  A1      : 0xffffffff
  14. A2      : 0x00000000  A3      : 0x00000000  A4      : 0x00000025  A5      : 0x00000000
  15. A6      : 0x3fe00000  A7      : 0x0000000a  S2      : 0x000009a0  S3      : 0x40824b68
  16. S4      : 0x40824968  S5      : 0x420bd000  S6      : 0x00000000  S7      : 0x00000000
  17. S8      : 0x000009a0  S9      : 0x00000000  S10     : 0x408245ec  S11     : 0x00000000
  18. T3      : 0x00000000  T4      : 0x00001867  T5      : 0x0ccccccc  T6      : 0x00000019
  19. MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000005  MTVAL   : 0x000009a0
  20. 0x40800001: _vector_table at ??:?
  21.  
  22. MHARTID : 0x00000000
  23.  
  24. Stack memory:
  25. 40824520: 0x420bc8cc 0x00000004 0x00000000 0x40802904 0x40824644 0x00000000 0x00000000 0x00000000
  26. 0x40802904: _lock_release_recursive at C:/Espressif/v5.1.2/esp-idf/components/newlib/locks.c:203
  27.  
  28. 40824540: 0x00000000 0x00000001 0x00000000 0x4081f364 0x00000000 0x4004e20c 0x00000000 0x00000000
  29. 40824560: 0x00000000 0x00000004 0xffffffff 0x7fefffff 0x00000000 0x3fe00000 0x00000004 0x420bc8f8
  30. 40824580: 0x00000000 0x3fc00000 0x00000000 0x40300000 0x00000000 0x00000044 0x00000001 0x0000000e
  31. 408245a0: 0x00000000 0x4004e20c 0x00000000 0x408249e8 0x00000000 0x00000000 0xffffffff 0x7fefffff
  32. 408245c0: 0x00000000 0x00000000 0x00000000 0x00000003 0x00000000 0x3fc00000 0x00000000 0x40300000
  33. 408245e0: 0x408245ec 0x00000000 0x00000000 0x00000000 0x408245fc 0x00000000 0x00000000 0x408249fc
  34. 40824600: 0x00000005 0x008322c0 0x00000008 0x00000004 0x00000000 0x00000000 0x00000000 0x00000000
  35. 40824620: 0x00000000 0x00000000 0x00000000 0x00000000 0x4082463c 0x00000000 0x00000000 0x420bc8f8
  36. 40824640: 0x00000005 0x420bc8bc 0x0000000e 0x30323436 0xffffffff 0x00000000 0x00000000 0x00000000
  37. 40824660: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
  38. 40824680: 0x00000000 0x00000000 0x00000000 0x00000000 0xffffffff 0x00000000 0x00000000 0x31393336
  39. 408246a0: 0xffffffff 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
  40. 408246c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00001915 0x00000000 0x00000000 0x34363432
  41. 408246e0: 0xffffffff 0x00000000 0x00000000 0x00000000 0x00000004 0x00000000 0x00000000 0x00000000
  42. 40824700: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
  43. 40824720: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
  44. 40824740: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
  45. 40824760: 0x0000191f 0x00000000 0x00000000 0x00000000 0x40824a18 0x00000000 0x00000000 0x00000000
  46. 40824780: 0x000009a0 0x00000000 0x00000000 0x00000000 0x420bc8bc 0x00000000 0x00000000 0x00000000
  47. 408247a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4080d422
  48. 0x4080d422: _multi_heap_unlock at C:/Espressif/v5.1.2/esp-idf/components/heap/multi_heap.c:94 (discriminator 1)
  49.  
  50. 408247c0: 0x408315b8 0x00000000 0x00000000 0x40022498 0x408315d8 0x40880000 0x4081e790 0x40022574
  51. 0x40022498: multi_heap_internal_unlock in ROM
  52.  
  53. 0x40022574: multi_heap_malloc_impl in ROM
  54.  
  55. 408247e0: 0x00000000 0x00000000 0x00000000 0x00000008 0x00000001 0x00001800 0x4081ee70 0x40800a90
  56. 0x40800a90: heap_caps_malloc_base at C:/Espressif/v5.1.2/esp-idf/components/heap/heap_caps.c:177
  57.  
  58. 40824800: 0x408311ac 0x40880000 0x4081e790 0x408315c8 0x00001800 0x00000008 0x00000008 0x40800b10
  59. 0x40800b10: heap_caps_malloc at C:/Espressif/v5.1.2/esp-idf/components/heap/heap_caps.c:197
  60.  
  61. 40824820: 0x408315b4 0x00000008 0x00000008 0x40800b6c 0x00000000 0x00000008 0x00000008 0x4080e64a
  62. 0x40800b6c: heap_caps_malloc_default at C:/Espressif/v5.1.2/esp-idf/components/heap/heap_caps.c:223
  63.  
  64. 0x4080e64a: _calloc_r at C:/Espressif/v5.1.2/esp-idf/components/newlib/heap.c:65
  65.  
  66. 40824840: 0x4080b05c 0x4080b088 0x408248c0 0x408168b4 0x407fb41c 0x40030dca 0x0000000f 0xffffffff
  67. 0x4080b05c: vPortClearInterruptMask at C:/Espressif/v5.1.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:384
  68.  
  69. 0x4080b088: vPortExitCritical at C:/Espressif/v5.1.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:339
  70.  
  71. 0x40030dca: memset in ROM
  72.  
  73. 40824860: 0x4083127c 0x00000000 0x00000001 0x00000001 0x00000003 0x00000004 0x4081e000 0x20001000
  74. 40824880: 0x00000009 0x00000000 0x4081f53c 0x408082fa 0x00000000 0x00000000 0x4081f53c 0x408088f2
  75. 0x408082fa: prvCopyDataToQueue at C:/Espressif/v5.1.2/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:2415
  76.  
  77. 0x408088f2: xQueueGenericSend at C:/Espressif/v5.1.2/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:999
  78.  
  79. 408248a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00001867 0x0ccccccc 0x00000019
  80. 408248c0: 0x00000000 0x00000000 0x4081f53c 0x4080d410 0x00000000 0x00000000 0x00000000 0x40022498
  81. 0x4080d410: _multi_heap_lock at C:/Espressif/v5.1.2/esp-idf/components/heap/multi_heap.c:89 (discriminator 1)
  82.  
  83. 0x40022498: multi_heap_internal_unlock in ROM
  84.  
  85. 408248e0: 0x4083218c 0x40880000 0x4081e790 0x40022574 0x00000000 0x00000000 0x00000000 0x00000054
  86. 0x40022574: multi_heap_malloc_impl in ROM
  87.  
  88. 40824900: 0x00000001 0x00000804 0x4081ee70 0x40800a90 0x00000000 0x00000000 0x4081f53c 0x00000000
  89. 0x40800a90: heap_caps_malloc_base at C:/Espressif/v5.1.2/esp-idf/components/heap/heap_caps.c:177
  90.  
  91.  
  92.  
  93.  
  94. ELF file SHA256: 0a8d43355b83ff67

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 235 guests