Skip to content
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

OOM on HUAWEI MLA-AL10 #3

Open
275288698 opened this issue Jan 3, 2019 · 1 comment
Open

OOM on HUAWEI MLA-AL10 #3

275288698 opened this issue Jan 3, 2019 · 1 comment

Comments

@275288698
Copy link

in this demo ,when i click the "START" button , then the native memory increase continue (from android studio profiler view),about 3 min, the memory increase to 500M,and the app crash. and i try to fix the the code in siriwave9.js.
// if (window.requestAnimationFrame) {
// window.requestAnimationFrame(this._startDrawCycle.bind(this));
// } else {
// setTimeout(this._startDrawCycle.bind(this), 20);
// }
setTimeout(this._startDrawCycle.bind(this), 30);

and it won't OOM again , i am not good at js, wait for ur help to give a prefect solution

@dnkilic
Copy link
Owner

dnkilic commented Aug 6, 2021

in this demo ,when i click the "START" button , then the native memory increase continue (from android studio profiler view),about 3 min, the memory increase to 500M,and the app crash. and i try to fix the the code in siriwave9.js.
// if (window.requestAnimationFrame) {
// window.requestAnimationFrame(this._startDrawCycle.bind(this));
// } else {
// setTimeout(this._startDrawCycle.bind(this), 20);
// }
setTimeout(this._startDrawCycle.bind(this), 30);

and it won't OOM again , i am not good at js, wait for ur help to give a prefect solution

feel free to create a PR my friend @275288698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants