-
Notifications
You must be signed in to change notification settings - Fork 288
Open
Description
I am encountering a recurring fatal exception when using LibVLC on Android. The crash occurs specifically during the detachFromGLContext call.
Stack Trace
Fatal Exception: java.lang.RuntimeException
Error during detachFromGLContext (see logcat for details)
at android.graphics.SurfaceTexture.detachFromGLContext (SurfaceTexture.java:345)
at org.videolan.libvlc.AWindow$SurfaceTextureThread.detachFromGLContext (AWindow.java:665)
at org.videolan.libvlc.AWindow$SurfaceTextureThread.access$1600 (AWindow.java:573)
at org.videolan.libvlc.AWindow.SurfaceTexture_detachFromGLContext (AWindow.java:724)
Context
Library: LibVLC Android
Action: Happens when releasing the player or switching surfaces.
Observation: It seems like the OpenGL context is already destroyed or invalid when detachFromGLContext is invoked.
Steps to Reproduce
- Initialize LibVLC.
- Play a video stream.
- Back when video playing
- Trigger a surface destruction or call detachViews().
My code dispose view
_controller.removeOnInitListener(_controllerInitListener);
_controller.removeListener(_controllerListener);
await _controller.stopRendererScanning();
await _controller.stop();
await _controller.dispose();
Metadata
Metadata
Assignees
Labels
No labels