Skip to content

App Crashes When Video Player is Closed #746

@Prakhar-Agarwal-byte

Description

@Prakhar-Agarwal-byte

Describe the issue
When we open any video in the app and close it after it starts, then the app crashes. Crash report:-

02-25 17:21:00.951 3196-3302/org.amahi.anywhere E/AndroidRuntime: FATAL EXCEPTION: Thread-237
    Process: org.amahi.anywhere, PID: 3196
    java.lang.IllegalStateException: can't get VLCObject instance
        at org.videolan.libvlc.MediaPlayer.nativeStop(Native Method)
        at org.videolan.libvlc.MediaPlayer.access$700(MediaPlayer.java:45)
        at org.videolan.libvlc.MediaPlayer$4.run(MediaPlayer.java:627)
        at java.lang.Thread.run(Thread.java:818)

To Reproduce or Feature details
Steps to reproduce the behavior:

  1. Go to Videos
  2. Click on any video
  3. Let it play and then press the back button
  4. See that the app crashes.

Current behavior

Android.Emulator.-.Pixel_4_API_21_5554.2021-02-25.17-43-55.mp4

Smartphone (please complete as much of the following information as possible):

  • All supported android devices (I tested it on API 21, 25, 29, and 30)

Additional context
Maybe the error is caused by a bug in the VLC library

Metadata

Metadata

Assignees

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