Crash on TV when re-launching the app while playing video
Description
Not really sure how to reproduce. I launched a video -> HOME button -> restart video -> HOMe and so on.
I got:
2020-03-30 15:24:13.887 22064-22102/? E/VLC/VlcCrashHandler: java.lang.RuntimeException: WakeLock under-locked VLC:MediaParsigService
at android.os.PowerManager$WakeLock.release(PowerManager.java:1563)
at android.os.PowerManager$WakeLock.release(PowerManager.java:1525)
at org.videolan.vlc.MediaParsingService.exitCommand(MediaParsingService.kt:390)
at org.videolan.vlc.MediaParsingService.updateStorages(MediaParsingService.kt:322)
at org.videolan.vlc.MediaParsingService$actions$1.invokeSuspend(MediaParsingService.kt:451)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:561)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:727)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:667)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:655)
at Android.MODEL(sdk_google_atv_x86)
at Android.VERSION(9)
at Android.FINGERPRINT(google/sdk_google_atv_x86/generic_x86:9/PSR1.180720.093/5456446:userdebug/test-keys)
2020-03-30 15:24:14.101 22064-22352/? E/VLC: [c52d7630/5750] libvlc window: request 1 not implemented
2020-03-30 15:24:14.151 22064-22102/? E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-4
Process: org.videolan.vlc.debug, PID: 22064
java.lang.RuntimeException: WakeLock under-locked VLC:MediaParsigService
at android.os.PowerManager$WakeLock.release(PowerManager.java:1563)
at android.os.PowerManager$WakeLock.release(PowerManager.java:1525)
at org.videolan.vlc.MediaParsingService.exitCommand(MediaParsingService.kt:390)
at org.videolan.vlc.MediaParsingService.updateStorages(MediaParsingService.kt:322)
at org.videolan.vlc.MediaParsingService$actions$1.invokeSuspend(MediaParsingService.kt:451)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:561)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:727)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:667)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:655)
at Android.MODEL(sdk_google_atv_x86)
at Android.VERSION(9)
at Android.FINGERPRINT(google/sdk_google_atv_x86/generic_x86:9/PSR1.180720.093/5456446:userdebug/test-keys)
Expected behavior
Actual behavior
Steps to reproduce
Screenshot / video
Context
App version
Version is !524 (merged)
Android version
Android TV emulator 28
Device model
App mode
TV