OOM in IMA SDK
Open
@marcbaechinger is already working on this.
Since Oct 14, 2024.
bug
needs triage
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.4.1
More version details
No response
Devices that reproduce the issue
The issue is mostly reproducible on GoogleTV devices.
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Did not try
Reproduction steps
When IMA is playing an Ad, the player crashes with OOM error
Expected result
should not throw OOM error while playing ad.
Actual result
stacktrace
Exception java.lang.OutOfMemoryError:
at java.util.Arrays.copyOf (Arrays.java:3257)
at java.lang.AbstractStringBuilder.ensureCapacityInternal (AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append (AbstractStringBuilder.java:448)
at java.lang.StringBuilder.append (StringBuilder.java:137)
at java.lang.StringBuilder.append (StringBuilder.java:132)
at com.google.ads.interactivemedia.v3.impl.data.zzbn.toString (com.google.ads.interactivemedia.v3:interactivemedia@@3.31.0:6)
at java.util.Formatter$FormatSpecifier.printString (Formatter.java:2978)
at java.util.Formatter$FormatSpecifier.print (Formatter.java:2855)
at java.util.Formatter.format (Formatter.java:2524)
at java.util.Formatter.format (Formatter.java:2459)
at java.lang.String.format (String.java:2870)
at com.google.ads.interactivemedia.v3.impl.JavaScriptMessage.toString (com.google.ads.interactivemedia.v3:interactivemedia@@3.31.0:1)
at java.lang.String.valueOf (String.java:2924)
at com.google.ads.interactivemedia.v3.impl.zzbb.zzf (com.google.ads.interactivemedia.v3:interactivemedia@@3.31.0:3)
at com.google.ads.interactivemedia.v3.impl.zzax.onPostMessage (com.google.ads.interactivemedia.v3:interactivemedia@@3.31.0:2)
at androidx.webkit.internal.WebMessageListenerAdapter.onPostMessage (WebMessageListenerAdapter.java:55)
at java.lang.reflect.Method.invoke
at org.chromium.support_lib_boundary.util.BoundaryInterfaceReflectionUtil$InvocationHandlerWithDelegateGetter.invoke (BoundaryInterfaceReflectionUtil.java:162)
at java.lang.reflect.Proxy.invoke (Proxy.java:1006)
at $Proxy27.onPostMessage
at WV.dX.run (chromium-TrichromeWebViewGoogle.aab-stable-661314630:101)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7839)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003)
Media
NA
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.