Skip to content

Disconnect from the network FlutterVlcPlayer.stop will cause the interface ANR, which is very likely to occur #538

@hezhipengzipp

Description

@hezhipengzipp

When the connection is already established, it is easy to call stop when the network is disconnected.

Event:APP_SCOUT_WARNING Thread:main backtrace: (Ask Gemini)
at org.videolan.libvlc.MediaPlayer.nativeStop(Native Method)
at org.videolan.libvlc.MediaPlayer.stop(MediaPlayer.java:834)
at software.solid.fluttervlcplayer.FlutterVlcPlayer.stop(FlutterVlcPlayer.java:259)
at software.solid.fluttervlcplayer.FlutterVlcPlayerBuilder.stop(FlutterVlcPlayerBuilder.java:125)
at software.solid.fluttervlcplayer.Messages$VlcPlayerApi.lambda$setup$6(Messages.java:988)
at software.solid.fluttervlcplayer.Messages$VlcPlayerApi$$ExternalSyntheticLambda37.onMessage(Unknown Source:2)
at io.flutter.plugin.common.BasicMessageChannel$IncomingMessageHandler.onMessage(BasicMessageChannel.java:261)
at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8118)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions