media icon indicating copy to clipboard operation
media copied to clipboard

ANR in com.google.android.exoplayer2.PlayerMessage.blockUntilDelivered

Open vandana9813 opened this issue 1 year ago • 1 comments

Version

Older (unsupported)

More version details

We are observing ANR on devices. According to the stack trace it seems like the issue is happening when the surface is getting destroyed. The thread is getting blocked while waiting for the resources to be released by the thread. Mostly the issue is highest on Poco C61 and Redmi A3. The version of exoplayer that we are using is r2.9.6.

Devices that reproduce the issue

NA

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

NA

Expected result

The media should play successfully.

Actual result

Playback crashes with following error:

  at java.lang.Object.wait (Native method)
  at java.lang.Object.wait (Object.java:405)
  at java.lang.Object.wait (Object.java:543)
  at com.google.android.exoplayer2.PlayerMessage.blockUntilDelivered (PlayerMessage.java:283)
  at com.google.android.exoplayer2.SimpleExoPlayer.setVideoSurfaceInternal (SimpleExoPlayer.java:1150)
  at com.google.android.exoplayer2.SimpleExoPlayer.access$1400 (SimpleExoPlayer.java:67)
  at com.google.android.exoplayer2.SimpleExoPlayer$ComponentListener.surfaceDestroyed (SimpleExoPlayer.java:1379)
  at android.view.SurfaceView.notifySurfaceDestroyed (SurfaceView.java:2132)
  at android.view.SurfaceView.updateSurface (SurfaceView.java:1230)
  at android.view.SurfaceView.onWindowVisibilityChanged (SurfaceView.java:439)
  at android.view.View.dispatchDetachedFromWindow (View.java:23289)
  at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:4195)
  at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:4195)
  at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:4195)
  at android.view.ViewGroup.endViewTransition (ViewGroup.java:7604)
  at androidx.fragment.app.FragmentAnim$EndViewTransitionAnimation.run (FragmentAnim.java:308)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8919)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:578)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

Media

Not applicable

Bug Report

  • [ ] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

vandana9813 avatar Oct 10 '24 11:10 vandana9813

@vandana9813 Please add more details in the bug here as per discussion

MayuriKhinvasara avatar Oct 14 '24 03:10 MayuriKhinvasara

Hey @vandana9813. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Nov 01 '24 01:11 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@vandana9813 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Nov 11 '24 02:11 google-oss-bot