s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
931 stars 214 forks source link

Allocation of memory failed #336

Closed EERomeo closed 10 months ago

EERomeo commented 10 months ago

Hey, I have installed this code to try it and I get some allocation of memory errors:

[20:47:48.847 ERROR @ utils.cpp:358] Timed out connecting to server: api.telegram.org, Err: RSA - The public key operation failed : BIGNUM - Memory allocation failed . . [20:48:01.062 setup] Camera model OV2640 on board CAMERA_MODEL_AI_THINKER ready @ 20MHz [20:48:01.063 checkMemory] Free: heap 66700, block: 40948, min: 24940, pSRAM 1488895 [20:48:01.074 loop] =============== Total tasks: 16 =============== . . [20:48:19.904 ERROR @ utils.cpp:358] Timed out connecting to server: api.ipify.org, Err: X509 - Allocation of memory failed

Everything works so far except the Telegram push. Is it something I'm doing wrong? Thanks!

EERomeo commented 10 months ago

So... it was actually something wrong on my side!

Somehow the files downloaded on the SD card were corrupted. As soon as I erased the SD and rebooted the esp everything started working normally.

Thanks for all the time you have put in this!