Playback randomly stops

I’m experiencing this issue since quite some time (probably since I installed v17) where the playback would just stop randomly when playing videos. It can happen 2 – 3 times when watching a TV show, or sometimes not at all. Tonight was really bad, I watched a movie and had to resume at least 5 – 6 times.

Specs wise, I run the latest Kodi 17 beta on an NVIDIA Shield. Passthrough is enabled for everything. Tonight I was watching a Dolby Atmos movie (even if my receiver only outputs 5.1 from it) but the bug happens even with simple AAC soundtracks. I have refresh rate switching enabled but it happens even with it’s disabled. My shield runs in 4K all the time.

I tried to make the bug happen with Kodi debugging enabled, but I couldn’t reproduce it while I tried. So tonight I was watching a movie in normal mode and since it happened a lot, I noted the time and decided to go have a look at the logs around that time to see if I could see something even with debugging disabled..

Here is what I found around the time it happened :

Code:
21:15:12 T:1464727856   ERROR: virtual ssize_t XFILE::CSMBFile::Read(void*, size_t) - Error( -1, 22, Invalid argument ) - Retrying
21:15:12 T:1464727856   ERROR: virtual ssize_t XFILE::CSMBFile::Read(void*, size_t) - Error( -1, 22, Invalid argument )
21:15:12 T:1464727856   ERROR: virtual ssize_t XFILE::CSMBFile::Read(void*, size_t) - Error( -1, 22, Invalid argument ) - Retrying
21:15:12 T:1464727856   ERROR: virtual ssize_t XFILE::CSMBFile::Read(void*, size_t) - Error( -1, 22, Invalid argument )
21:15:12 T:1464727856   ERROR: virtual ssize_t XFILE::CSMBFile::Read(void*, size_t) - Error( -1, 22, Invalid argument ) - Retrying
21:15:12 T:1464727856   ERROR: virtual ssize_t XFILE::CSMBFile::Read(void*, size_t) - Error( -1, 22, Invalid argument )
21:15:20 T:1464727856  NOTICE: CVideoPlayer::OnExit()
21:15:20 T:1464727856  NOTICE: VideoPlayer: eof, waiting for queues to empty
21:15:20 T:1464727856  NOTICE: Closing stream player 1
21:15:20 T:1464727856  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
21:15:20 T:1464727856  NOTICE: Waiting for audio thread to exit
21:15:20 T:1679538480   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
21:15:20 T:1679538480  NOTICE: thread end: CVideoPlayerAudio::OnExit()
21:15:20 T:1464727856  NOTICE: Closing audio device
21:15:20 T:1464727856  NOTICE: Deleting audio codec
21:15:20 T:1464727856  NOTICE: Closing stream player 2
21:15:20 T:1464727856  NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
21:15:20 T:1464727856  NOTICE: waiting for video thread to exit
21:15:20 T:1678494000   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
21:15:20 T:1678494000  NOTICE: thread end: video_thread
21:15:20 T:1464727856  NOTICE: deleting video codec
21:15:20 T:1464727856  NOTICE: Closing stream player 3
21:15:20 T:1393649968  NOTICE: Current resolution: 1920x1080 @ 23.98 - Full Screen
21:15:20 T:1393649968  NOTICE: VideoPlayer: OnLostDisplay received
21:15:20 T:1393649968 WARNING: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
21:15:20 T:1393649968 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
21:15:20 T:1393649968  NOTICE: CEGLNativeTypeAndroid: Switching to resolution: 1920x1080 @ 60.00 - Full Screen
21:15:20 T:1393649968  NOTICE: VideoPlayer: OnResetDisplay received
21:15:20 T:1393649968 WARNING: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
21:15:20 T:1393649968 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
21:15:20 T:1393649968  NOTICE: CVideoPlayer::CloseFile()
21:15:20 T:1393649968  NOTICE: VideoPlayer: waiting for threads to exit
21:15:20 T:1393649968  NOTICE: VideoPlayer: finished waiting
21:15:20 T:1393649968  NOTICE: CVideoPlayer::CloseFile()
21:15:20 T:1393649968  NOTICE: VideoPlayer: waiting for threads to exit
21:15:20 T:1393649968  NOTICE: VideoPlayer: finished waiting

I looked at other times where I noted it crashed, and the same errors / warnings / notices appear.

Do you have any idea what can cause this?

Thanks