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)
- Environment
- Platform: Android
- SDK version: 9.22.0
- OS version: 29, 30, 31, 33, 34, 35, 36
- Android Studio version: Android Studio Panda 1 | 2025.3.1 Patch 1
- How widespread is the issue. Percentage of devices affected.
- Debug logs that reproduce the issue
- Steps to reproduce, with a description of expected vs. actual behavior
- 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)
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)