Open Dhruvan1 opened 5 months ago
It was memory leak issue from another task.
same code working on ESP IDF 4.3.6 memory leak happning but it is from driver level. this is the log that i got after log tracing enables.
surprisingly when i desabel log tracing then it works fine but it take free 500 bytes less so after every socket disconnect to connect process i lost 500 bytes.
@Dhruvan1 I noticed that you closed and reopened the issue. Please be aware that IDF release/4.3 is no longer supported. Are you still experiencing the issue?
Yes issue is still there, i found workaround and temporarily fixed it but there is something fishy there not sure what it is. and i still can not call client stop and destroy in linear manner. (before calling this i was manually closing websocket).
if you want to check and fix it then it would be very helpful not for 4.3.7, but also for 5.x.x version also.
Answers checklist.
IDF version.
4.3.7
Espressif SoC revision.
ESP32 Wrover IE
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
CMD
Development Kit.
ESP 32 Wrover IE
Power Supply used.
External 3.3V
What is the expected behavior?
Websocket should be properly closed all mallocated memory should be free.
What is the actual behavior?
ESP32 crashing instead of freeing old websocket memory.
Steps to reproduce.
Debug Logs.
More Information.
I try to reconnect websocket without esp_websocket_client_destroy() API and it worked but it took 10k malloced memory (instead of releasing old memory and reusing it) memory leak issue generated here. plus i am destroying my websocket from my local task.