Play Console Pre Launch Crash (OOM allocating Bitmap with dimensions 2340 x 16777215)

I encountered a frustrating issue highlighted in the Play Console pre-launch report for the Google Pixel 5 (64-bit). The app experiences a crash that I couldn’t reproduce on my own device, making it challenging to pinpoint the root cause.

Upon reviewing the recorded session on the Play Console, I noticed that the app loses focus due to a Play Services notification. After this, the tester clicks around randomly on the screen, opens chrome, and browses various pages. When they attempt to return to the app, it crashes.

Thank you for your time

Log File:

logcat (9).txt (5.6 MB)

Exception java.lang.OutOfMemoryError:
  at android.graphics.Bitmap.nativeCreate
  at android.graphics.Bitmap.createBitmap (Bitmap.java:1120)
  at android.graphics.Bitmap.createBitmap (Bitmap.java:1078)
  at android.graphics.Bitmap.createBitmap (Bitmap.java:1028)
  at android.graphics.Bitmap.createBitmap (Bitmap.java:989)
  at com.unity3d.player.P.surfaceDestroyed
  at android.view.SurfaceView.notifySurfaceDestroyed (SurfaceView.java:1803)
  at android.view.SurfaceView.updateSurface (SurfaceView.java:987)
  at android.view.SurfaceView.onWindowVisibilityChanged (SurfaceView.java:308)
  at android.view.View.dispatchWindowVisibilityChanged (View.java:15386)
  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1620)
  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1620)
  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1620)
  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1620)
  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1620)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2787)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2286)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8948)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1231)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1239)
  at android.view.Choreographer.doCallbacks (Choreographer.java:899)
  at android.view.Choreographer.doFrame (Choreographer.java:832)

  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1214)
  at android.os.Handler.handleCallback (Handler.java:942)
  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:7898)
  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:936)

I also experience this issue after uploadling an .aab built with Unity 2022.3.40f. I receive the exact same callstack and OOM error on the same device, Google Pixel 5, in the prelaunch report. I tested on two physical decvices with no such issue.

In my case, the test interacts with Google Play Games dialog.

Have you fixed this issue?My prelaunch report also populate this error log

I have a similar problem but my texture is 219006 x 216372.

Hi i cant fix the issue but i released my application to production without any problem. There was no problem with any physical device so maybe a defact on pre-launch report.