Skip to content

Multiple ANRs on TextureVideoView in all Android versions #3142

@PavlosTze

Description

@PavlosTze

Describe the bug
We have multiple ANRs coming from RevenueCat and more specifically from at com.revenuecat.purchases.ui.revenuecatui.components.video.TextureVideoView$release$2.invoke (VideoView.kt:230)

  1. Environment
    1. Platform: Android
    2. SDK version: 9.22.0
    3. OS version: 29, 30, 31, 33, 34, 35, 36
    4. Android Studio version: Android Studio Panda 1 | 2025.3.1 Patch 1
    5. How widespread is the issue. Percentage of devices affected.
  2. Debug logs that reproduce the issue
  3. Steps to reproduce, with a description of expected vs. actual behavior
  4. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
"main" tid=1 Blocked
  at android.media.MediaHTTPConnection.disconnect (MediaHTTPConnection.java:172)
  at android.media.IMediaHTTPConnection$Stub.onTransact (IMediaHTTPConnection.java:137)
  at android.os.Binder.execTransactInternal (Binder.java:1290)
  at android.os.Binder.execTransact (Binder.java:1249)
  at android.media.MediaPlayer._reset (Native method)
  at android.media.MediaPlayer.reset (MediaPlayer.java:2240)
  at com.revenuecat.purchases.ui.revenuecatui.components.video.TextureVideoView$release$2.invoke (VideoView.kt:230)
  at com.revenuecat.purchases.ui.revenuecatui.components.video.TextureVideoView$release$2.invoke (VideoView.kt:229)
  at com.revenuecat.purchases.ui.revenuecatui.components.video.VideoViewKt.safely (VideoView.kt:485)
  at com.revenuecat.purchases.ui.revenuecatui.components.video.VideoViewKt.safely$default (VideoView.kt:483)
  at com.revenuecat.purchases.ui.revenuecatui.components.video.TextureVideoView.release (VideoView.kt:229)
  at com.revenuecat.purchases.ui.revenuecatui.components.video.TextureVideoView.onDetachedFromWindow (VideoView.kt:367)
  at android.view.View.dispatchDetachedFromWindow (View.java:21671)
  at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:4002)
  at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:3994)
  at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:3994)
  at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:3994)
  at android.view.ViewGroup.endViewTransition (ViewGroup.java:7297)
  at androidx.fragment.app.FragmentContainerView.endViewTransition (FragmentContainerView.kt:255)
  at androidx.fragment.app.DefaultSpecialEffectsController$startAnimations$3.onAnimationEnd$lambda$0 (DefaultSpecialEffectsController.kt:272)
  at android.os.Handler.handleCallback (Handler.java:942)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:211)
  at android.os.Looper.loop (Looper.java:300)
  at android.app.ActivityThread.main (ActivityThread.java:8503)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:561)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:954)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions