-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak issue on esp_route_table_add_route_entry (CON-1058) #850
Comments
Could you send more log of heap trace? Looks like the heap trace log you sent is not the cause of memory leak. The device will allocate a route entry once it receives a RA message with RIO(Route info option) and delete the entry after timeout. Normally the timeout duration is about 1800 seconds, so this will be treated as memory leak by heap trace. If there does be some memory leak, I think it could be caused by other reasons. |
@wqx6 Please find the attached log, starting from booting up. The device is already paired and no interactions have been made with the device but the HEAP keeps dropping. This is based on |
I didn't find any memory leak from your log. At the start of the trace log, the free heap is
and send a log which have an evident heap decreasing again. |
@wqx6 Please see the attached log, the final HEAP dropped to log.dev.ttyUSB1.20240226202616.txt.zip I will change the vTaskDelay to 60000. |
@wqx6 Please note that we are using espressif's mDNS solution instead of the connectedhomeip's minimal mDNS. Please see the below log:
We have not seen any memory leak from our code, be note of this |
If you are testing the device with an ecosystem, the free heap will decrease as the hub needs to establish the subscriptions with the end-device and some subscriptions might be evicted during the test since there might be packet lost. And some resources might not be released immediately. However, the free heap will not decrease continuously since the subscriptions per fabric has a maximum number. Did you observe a heap decrease of over 5 KB? If not, I think it is accepted for the test with ecosystem. |
@law-ko Any more observations you can share? Do you still see the memory leaking |
Closing this now |
We found some issues which might cause memory leak. And the issues are fixed in the following commits: Could you check whether your IDF repo includes the fix? If you are using platform mdns, you should also check whether your mdns component includes the mdns fix. |
@law-ko Did you get a chance to check if the above fixes help? If yes, please close the issue |
There is a memory leakage issue when Matter is paired and running for a long time.
Checked by adding heap tracing in while loop under app_main.cpp:
Heap tracing log:
Environment
This continues to leak after a certain period of time, until all internal DRAM is used.
The matter stack is running on top of PSRAM, but should not make a difference as the leak happens on internal DRAM.
...
The text was updated successfully, but these errors were encountered: