ilovepumpkin opened a new issue, #1498:
URL: https://github.com/apache/cordova-android/issues/1498

   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   We have an cordova android application which might be reloaded automatically 
for many times during development - we are using window.location.reload(). We 
didn't expect there is any issue of this approach.
   
   ### What does actually happen?
   
   However, we found  after running for a while, it crashes during to out o 
memory error. Everytime it is reloaded, the memory increases some and it keeps 
increasing, never drop. And this issue can be reproduced using Hello World 
cordova application.  
   
   ## Information
   
   I followed https://cordova.apache.org/docs/en/10.x/guide/cli/ to create a 
Hello World cordova android application and I reproduced this out of memory 
issue.
   
   The first time I open it, the memory usage is 1.8 MB.
   
![image](https://user-images.githubusercontent.com/11310645/191964700-b5264daf-77a0-4c04-9187-6eb4408babcc.png)
   
   After I execute "window.location.reload()" for 30 times. the memory is 
increased to 8.3 MB. And this number is kept there, never drop.
   
![image](https://user-images.githubusercontent.com/11310645/191964918-24635ef3-f9b2-41f3-825b-b8d910723b49.png)
   
   If I continue and execute enough times, eventually the app will crash.
   
   ### Command or Code
   window.location.reload()
   
   
   
   ### Environment, Platform, Device
   My host is Fedora 33, and I am testing it in Android emulator API 33.
   
   
   ### Version information
   Cordova version 11
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ x] I searched for existing GitHub issues
   - [ x] I updated all Cordova tooling to most recent version
   - [ x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to