abdallahmehiz / mpvKt

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

Fast switching video application crashes #82

Open toutoumu opened 1 month ago

toutoumu commented 1 month 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 1 month ago

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