ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
494 stars 210 forks source link

OutOfMemoryError #239

Open creakosta opened 6 years ago

creakosta commented 6 years ago

Hello! I receive OOM after adding plugin:

java.lang.OutOfMemoryError: at com.google.android.gms.ads.exoplayer1.upstream.b.a(:com.google.android.gms.dynamite_dynamitemodulesa@12685021@12.6.85 (040306-197041431):3) at com.google.android.gms.ads.exoplayer1.extractor.g.b(:com.google.android.gms.dynamite_dynamitemodulesa@12685021@12.6.85 (040306-197041431):40) at com.google.android.gms.ads.exoplayer1.extractor.k.a(:com.google.android.gms.dynamite_dynamitemodulesa@12685021@12.6.85 (040306-197041431):2) at com.google.android.gms.ads.exoplayer1.extractor.mp4.f.a(:com.google.android.gms.dynamite_dynamitemodulesa@12685021@12.6.85 (040306-197041431):441) at com.google.android.gms.ads.exoplayer1.upstream.p.run(:com.google.android.gms.dynamite_dynamitemodulesa@12685021@12.6.85 (040306-197041431):23) at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:428) at java.util.concurrent.FutureTask.run (FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607) at java.lang.Thread.run (Thread.java:762)

I also found a mention of this error here: https://groups.google.com/forum/#!topic/google-admob-ads-sdk/mPWvc7o7xus Perhaps you need to update the SDK?

creakosta commented 6 years ago

Hi again! I started using another plugin and this problem is gone. I would like to use this plugin, is it possible to fix a memory leak? This happens when video ads is closed at some point.