sap/base/Log - Log messages are never cleaned - lead to OOM
OpenUI5 version: 1.60.17
If you use sap/base/Log to log anything, every message is pushed to aLog array and is never deleted. This lead in longer period to bigger and bigger JS Heap in browser. In case of embedded WebView on mobile in some point it leads to big performance drop and in the to crash of WebView.
I assume that on desktop it will be the same only it will take longer.
When I looked to sap.ui.core/src/sap/base/Log.js I can see here 2 big issues:
- array aLog is never cleaned
- if console is available then every message is logged via console.log, which can have influence to performance.
Hi,
Thank you for sharing this finding. I've created an internal incident 1970462940. The status of the issue will be updated here in GitHub.
Regards, Teo
The issue will be fixed with the next UI5 version (1.73).