Video freeze after 10 minutes approx. (Kodi 17 beta 6)

Hi everyone,

I have a Beelink GT1 connected to my TV.
Another computer has a HD connected to it, with movies. The computer is sharing the movies through SMB.

The GT1 starts playing the movies in less than a second.
10 minutes later the movie freezes (subtitles keeps going), ‘buffring’ message, 6-7 seconds later the screen turns black, 10 seconds later it stops and returns to the menu.

If I try to play it again (even if I stop manually), it will continue playing immediately without any problem.
Happened on Kodi 16.1 as well.

Tried to update my ROM as well (to different versions) – no luck.

Log:

21:42:04.676 T:18446744073424902448 NOTICE: VideoPlayer: finished waiting
21:42:15.075 T:18446744073424902448 NOTICE: VideoPlayer: Opening: smb://Stingray/Movies/000 – Collections/Batman/06 – The Dark Knight (2008)/The Dark Knight (2008).mkv
21:42:15.075 T:18446744073424902448 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
21:42:15.076 T:18446744073077000496 NOTICE: Creating InputStream
21:42:15.284 T:18446744073077000496 NOTICE: Creating Demuxer
21:42:15.651 T:18446744073077000496 NOTICE: Opening stream: 0 source: 256
21:42:15.652 T:18446744073077000496 NOTICE: Creating video codec with codec id: 28
21:42:15.695 T:18446744073077000496 NOTICE: Creating video thread
21:42:15.696 T:18446744073077000496 NOTICE: Opening stream: 1 source: 256
21:42:15.696 T:18446744073071835440 NOTICE: running thread: video_thread
21:42:15.696 T:18446744073077000496 NOTICE: Finding audio codec for: 86018
21:42:15.698 T:18446744073077000496 NOTICE: Creating audio thread
21:42:15.699 T:18446744073077000496 NOTICE: Opening stream: 0 source: 1024
21:42:15.699 T:18446744073069349168 NOTICE: running thread: CVideoPlayerAudio::Process()
21:42:16.285 T:18446744073069349168 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
21:42:16.413 T:18446744073143589168 NOTICE: Trying to open: 48000 samplerate 12 channelMask 4 encoding
21:42:16.434 T:18446744073424902448 NOTICE: Using GL_TEXTURE_2D
21:42:16.447 T:18446744073424902448 NOTICE: GL: Using MediaCodec (Surface) render method
21:42:16.447 T:18446744073424902448 NOTICE: GL: NPOT texture support detected
21:51:32.325 T:18446744073069349168 NOTICE: CVideoPlayerAudio::Process – stream stalled
21:51:32.675 T:18446744073424902448 ERROR: CDVDMediaCodecInfo::ReleaseOutputBuffer ExceptionCheck index(4), render(1)
21:51:34.011 T:18446744073077000496 ERROR: Previous line repeats 25 times.
21:51:34.012 T:18446744073077000496 ERROR: Read – Error( -1, 22, Invalid argument ) – Retrying
21:51:34.042 T:18446744073424902448 ERROR: CDVDMediaCodecInfo::ReleaseOutputBuffer ExceptionCheck index(4), render(1)
21:51:44.023 T:18446744073077000496 ERROR: Previous line repeats 192 times.
21:51:44.023 T:18446744073077000496 ERROR: Read – Error( -1, 22, Invalid argument )
21:51:44.023 T:18446744073077000496 NOTICE: CVideoPlayer::OnExit()
21:51:44.024 T:18446744073077000496 NOTICE: VideoPlayer: eof, waiting for queues to empty
21:51:44.024 T:18446744073077000496 NOTICE: Closing stream player 1
21:51:44.024 T:18446744073077000496 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
21:51:44.024 T:18446744073077000496 NOTICE: Waiting for audio thread to exit
21:51:44.025 T:18446744073069349168 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
21:51:44.025 T:18446744073069349168 NOTICE: thread end: CVideoPlayerAudio::OnExit()
21:51:44.026 T:18446744073077000496 NOTICE: Closing audio device
21:51:44.026 T:18446744073077000496 NOTICE: Deleting audio codec
21:51:44.027 T:18446744073077000496 NOTICE: Closing stream player 2
21:51:44.027 T:18446744073077000496 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
21:51:44.038 T:18446744073077000496 NOTICE: waiting for video thread to exit
21:51:44.038 T:18446744073071835440 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
21:51:44.038 T:18446744073071835440 NOTICE: thread end: video_thread
21:51:44.038 T:18446744073077000496 NOTICE: deleting video codec
21:51:44.114 T:18446744073143589168 NOTICE: Trying to open: 44100 samplerate 12 channelMask 4 encoding
21:51:44.134 T:18446744073077000496 NOTICE: Closing stream player 3
21:51:50.157 T:18446744073424902448 NOTICE: CVideoPlayer::CloseFile()
21:51:50.158 T:18446744073424902448 NOTICE: VideoPlayer: waiting for threads to exit
21:52:04.179 T:18446744073424902448 NOTICE: VideoPlayer: finished waiting
21:52:04.595 T:18446744073424902448 NOTICE: CVideoPlayer::CloseFile()
21:52:04.595 T:18446744073424902448 NOTICE: VideoPlayer: waiting for threads to exit
21:52:04.595 T:18446744073424902448 NOTICE: VideoPlayer: finished waiting
21:52:04.595 T:18446744073424902448 NOTICE: CVideoPlayer::CloseFile()
21:52:04.596 T:18446744073424902448 NOTICE: VideoPlayer: waiting for threads to exit
21:52:04.596 T:18446744073424902448 NOTICE: VideoPlayer: finished waiting
21:52:06.673 T:18446744073424902448 NOTICE: VideoPlayer: Opening: smb://Stingray/Movies/000 – Collections/Batman/06 – The Dark Knight (2008)/The Dark Knight (2008).mkv
21:52:06.673 T:18446744073424902448 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
21:52:06.677 T:18446744073074571568 NOTICE: Creating InputStream