You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FATAL EXCEPTION: main Process: androidx.media3.demo.shortform, PID: 27397 java.lang.OutOfMemoryError: Failed to allocate a 120 byte allocation with 98000 free bytes and 95KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC. at android.content.res.AssetManager.nativeGetSizeConfigurations(Native Method) at android.content.res.AssetManager.getSizeConfigurations(AssetManager.java:1451) at android.content.res.ResourcesImpl.getSizeConfigurations(ResourcesImpl.java:203) at android.content.res.Resources.getSizeConfigurations(Resources.java:2207) at android.app.ActivityThread.reportSizeConfigurations(ActivityThread.java:3837) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3817) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2308) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7898) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Thanks for reporting! I used the same device model, OS and library version (1.4.1), and repeated the provided steps for several times, but still couldn't reproduce. Did you change any configurations in DefaultLoadControl before seeing the issue?
Thanks for the response! I haven't changed any configurations in DefaultLoadControl (see Fig. 1). After repeatedly opening and closing the ViewPagerActivity, I noticed that multiple PlayerViews persist, even after garbage collection has been executed. I'll attach a screenshot for reference.
Version
Media3 main branch
More version details
Media3 1.4.1
Devices that reproduce the issue
Google Pixel 4a running Android 13
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
Expected result
No OOM and No crash
Actual result
Memory usage is increasing and then:
FATAL EXCEPTION: main Process: androidx.media3.demo.shortform, PID: 27397 java.lang.OutOfMemoryError: Failed to allocate a 120 byte allocation with 98000 free bytes and 95KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC. at android.content.res.AssetManager.nativeGetSizeConfigurations(Native Method) at android.content.res.AssetManager.getSizeConfigurations(AssetManager.java:1451) at android.content.res.ResourcesImpl.getSizeConfigurations(ResourcesImpl.java:203) at android.content.res.Resources.getSizeConfigurations(Resources.java:2207) at android.app.ActivityThread.reportSizeConfigurations(ActivityThread.java:3837) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3817) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2308) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7898) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Media
No
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: