mobizt / Firebase-ESP32

[DEPRECATED]🔥 Firebase RTDB Arduino Library for ESP32. The complete, fast, secured and reliable Firebase Arduino client library that supports CRUD (create, read, update, delete) and Stream operations.
MIT License
415 stars 118 forks source link

ESP 32 Cloud Messaging memory leak #131

Closed iflyhere closed 3 years ago

iflyhere commented 3 years ago

Describe the bug On Cloud Messaging the ESP32 Rebooting when I call "Firebase.sendMessage()". I think it's a memory leak.

To Reproduce Steps to reproduce the behavior:

  1. Go to your example Cloud_Messaging.ino
  2. On "Firebase.sendMessage()"
  3. Send Firebase Cloud Messaging... [V][fb_ssl_client32.cpp:296] stop_ssl_socket(): Cleaning SSL connection. [V][fb_ssl_client32.cpp:61] start_ssl_client(): Free internal heap before TLS 244500 [V][fb_ssl_client32.cpp:63] start_ssl_client(): Starting socket [V][fb_ssl_client32.cpp:107] start_ssl_client(): Seeding the random number generator [V][fb_ssl_client32.cpp:117] start_ssl_client(): Setting up the SSL/TLS structure... [V][fb_ssl_client32.cpp:132] start_ssl_client(): Loading CA cert [V][fb_ssl_client32.cpp:216] start_ssl_client(): Setting hostname for TLS session... [V][fb_ssl_client32.cpp:233] start_ssl_client(): Performing the SSL/TLS handshake... [V][fb_ssl_client32.cpp:259] start_ssl_client(): Verifying peer X.509 certificate... [V][fb_ssl_client32.cpp:271] start_ssl_client(): Certificate verified. [V][fb_ssl_client32.cpp:289] start_ssl_client(): Free internal heap after TLS 203212 [V][fb_ssl_client32.cpp:340] send_ssl_data(): Writing HTTP request... [V][fb_ssl_client32.cpp:340] send_ssl_data(): Writing HTTP request... CORRUPT HEAP: Bad tail at 0x3ffde03d. Expected 0xbaad5678 got 0xbaad5600 assertion "head != NULL" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c", line 214, function: multi_heap_free abort() was called at PC 0x4012e78f on core 1

Firebase ESP32 Client

IDE and its version:

ESP32 Arduino Core SDK version

mobizt commented 3 years ago

update the library

mobizt commented 3 years ago

I will check and inform later.

mobizt commented 3 years ago

The bug was fixed, please update the library.