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

Google AdMob SDK Integration Memory Leak #744

Closed
ipena-spigot opened this issue Nov 6, 2024 · 2 comments
Closed

Google AdMob SDK Integration Memory Leak #744

ipena-spigot opened this issue Nov 6, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ipena-spigot
Copy link

MAX SDK Version

13.0.1

Device/Platform Info

Pixel 4 XL - Android 13

Current Behavior

Android Studio Profiler tool detects memory leaks after rendering the following Ad formats when using Google AdMob SDK 23.5.0:

  • Banner
  • Interstitial
  • Mrec

This is preventing Activities from getting garbage collected and ultimately causing ANRs and crashes

Expected Behavior

Resources / references should be released such that no memory leaks occur

How to Reproduce

Banner:

  • MAX Mediation Debugger
  • Completed SDK integrations
  • Google AdMob (23.5.0)
  • Test Mode
  • Banner
  • Load
  • Close Activity
  • Check for memory leak with Android Studio profiler***

Interstitial

  • MAX Mediation Debugger
  • Completed SDK integrations
  • Google AdMob (23.5.0)
  • Test Mode
  • Interstitial
  • Load
  • Show
  • Close Activity
  • Check for memory leak with Android Studio profiler***

Mrec

  • MAX Mediation Debugger
  • Completed SDK integrations
  • Google AdMob (23.5.0)
  • Test Mode
  • Mrec (in MREC vs Native section)
  • Mrec (In the section with the 5 Ad formats)
  • Load
  • Close Activity
  • Check for memory leak with Android Studio profiler***

Steps for: Check for memory leak with Android Studio***

  • In Android Studio
  • Profiler
  • Analyze Memory Usage
  • Start profiler task
  • Click on Detected 2 Leaks
  • MaxDebuggerMultiAdActivity
  • In the Instance tab: MaxDebuggerMultiAdActivity
  • References tab
  • Show nearest GC root only
  • Expand non referent in WeakReference references

Reproducible in the demo app?

Yes

Additional Info

Banner Google AdMob SDK 23.5.0 Memory Leak:
Screenshot 2024-11-05 at 2 39 44 PM

Interstitial Google AdMob SDK 23.5.0 Memory Leak:
Screenshot 2024-11-05 at 2 59 50 PM

Mrec Google AdMob SDK 23.5.0 Memory Leak:
Screenshot 2024-11-05 at 3 26 06 PM

@ipena-spigot ipena-spigot added the bug Something isn't working label Nov 6, 2024
@Mecze
Copy link

Mecze commented Nov 13, 2024

Could this be causing the increase in ANRs lately?
#714

@mattn02
Copy link
Contributor

mattn02 commented Nov 14, 2024

Hi @ipena-spigot - I was able to reproduce the memory leak. After analyzing the trace, the leak originates from Google AdMob's SDK. To verify this, I observed the same memory leak on AdMob's demo app after leaving the activity after the ad was displayed.

Since this issue stems from AdMob's SDK rather than ours, it would be best for you to reach out to the Google AdMob team for support. Thanks!

@mattn02 mattn02 closed this as completed Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants