You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/21 12:10:31 UTC

[GitHub] [cordova-plugin-media] AgDude opened a new issue #248: References to released media objects are not cleared

AgDude opened a new issue #248: References to released media objects are not cleared
URL: https://github.com/apache/cordova-plugin-media/issues/248
 
 
   # Bug Report
   
   ## Problem
   
   With Media.js a reference to every media object is stored in the `mediaObjects` obeject. When the resources are released the reference remains. This leads to a slow memory leaks when many sounds are played. In our use case there are many short sounds which we play repeatedly (sometimes releasing in between), each time a new Media instance is created (even for the same sound file) a new record is added to `mediaObjects`, and never removed.
   
   ### What is expected to happen?
   
   There is no memory footprint for released media objects.
   
   ### What does actually happen?
   
   A small memory footpring remains
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   
   I have observed this as a problem in Android, but it impacts all platforms
   
   
   
   ### Version information
   5.0.3
   
   
   ## 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
   
   I will provide a pull request shortly to address this issue.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org