abdallahmehiz / mpvKt

A media player for android, based on mpv-android and built with Jetpack Compose.
Apache License 2.0
636 stars 23 forks source link

Fast switching video application crashes #82

Open toutoumu opened 2 months ago

toutoumu commented 2 months ago

Describe the bug Opening these video files, quickly returning to playback, and then opening another one, repeated several times, will most likely cause the program to crash.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Actual behavior A clear and concise description of what actually happened.

Crash logs log.txt

Screenshots If applicable, add screenshots to help explain your problem.

Additional info (please complete the following information):

Additional context Add any other context about the problem here.

abdallahmehiz commented 2 months ago

Probably caused by a race condition of instantiating another instance of PlayerActivity before mpv is destroyed.