Audio issues with some files

Hi all,

I am having an issue with video playback with some video files. Sometimes I will get a video that plays just fine, except for the audio. If I then try to stop the video, and play any other video, even a known good file, it has no audio. Further, if I try to exit Kodi, I just get a black screen after hitting the exit button, and have to power cycle the device.

My environment is as follows:
Android 4.4
Kodi 16.1, installed from play store
running on a M8S android tv box
No addons installed

Here is the kodi log, beginning when I tried to play the file:

Code:
23:49:10 T:1790010896  NOTICE: DVDPlayer: Opening: nfs://192.168.10.112//mnt/main/media/tv/Silicon Valley/Season 4/Silicon Valley - S04E09 - Hooli-Con WEBDL-1080p.mkv
23:49:10 T:1790010896 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:49:10 T:1887115648  NOTICE: Creating InputStream
23:49:10 T:1887115648  NOTICE: Creating Demuxer
23:49:14 T:1887115648  NOTICE: Opening stream: 0 source: 256
23:49:14 T:1887115648  NOTICE: Creating video codec with codec id: 28
23:49:15 T:1887115648  NOTICE: Creating video thread
23:49:15 T:1887115648  NOTICE: Opening stream: 1 source: 256
23:49:15 T:1887115648  NOTICE: Finding audio codec for: 86057
23:49:15 T:1887115648  NOTICE: Creating audio thread
23:49:15 T:1887115648  NOTICE: Opening stream: 2 source: 256
23:49:15 T:1877232432  NOTICE: running thread: video_thread
23:49:15 T:1887275688  NOTICE: running thread: CDVDPlayerAudio::Process()
23:49:15 T:1887275688  NOTICE: Creating audio stream (codec id: 86057, channels: 6, sample rate: 48000, no pass-through)
23:49:15 T:1877232432 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
23:49:15 T:1877232432 WARNING: Previous line repeats 1 times.
23:49:15 T:1877232432  NOTICE:  fps: 23.976024, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
23:49:15 T:1877232432  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (16)
23:49:16 T:1790010896  NOTICE: Using GL_TEXTURE_2D
23:49:16 T:1790010896  NOTICE: GL: Using BYPASS render method
23:49:16 T:1790010896  NOTICE: GL: NPOT texture support detected
23:49:17 T:1877232432 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
23:49:17 T:1887275688 WARNING: Previous line repeats 1 times.
23:49:18 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:18 T:1877232432 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
23:49:18 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:20 T:1887275688  NOTICE: Previous line repeats 69 times.
23:49:20 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:20 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:21 T:1887275688  NOTICE: Previous line repeats 50 times.
23:49:21 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:21 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:23 T:1887275688  NOTICE: Previous line repeats 49 times.
23:49:23 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:23 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:25 T:1887275688  NOTICE: Previous line repeats 49 times.
23:49:25 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:25 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:26 T:1887275688  NOTICE: Previous line repeats 49 times.
23:49:26 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:26 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:28 T:1887275688  NOTICE: Previous line repeats 50 times.
23:49:28 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:28 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:29 T:1887275688  NOTICE: Previous line repeats 49 times.
23:49:29 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:29 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:31 T:1887275688  NOTICE: Previous line repeats 49 times.
23:49:31 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:31 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:33 T:1887275688  NOTICE: Previous line repeats 50 times.
23:49:33 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:33 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:34 T:1887275688  NOTICE: Previous line repeats 49 times.
23:49:34 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:34 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:36 T:1877232432  NOTICE: Previous line repeats 49 times.
23:49:36 T:1877232432 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
23:49:36 T:1887275688   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:49:36 T:1887275688  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
23:49:38 T:1877232432  NOTICE: Previous line repeats 50 times.

#The above message repeats hundreds of times while the video plays

23:54:05 T:1790010896  NOTICE: CDVDPlayer::CloseFile()
23:54:05 T:1790010896  NOTICE: DVDPlayer: waiting for threads to exit
23:54:05 T:1887115648  NOTICE: CDVDPlayer::OnExit()
23:54:05 T:1887115648  NOTICE: Closing stream player 1
23:54:05 T:1887115648  NOTICE: Waiting for audio thread to exit
23:54:05 T:1887275688  NOTICE: thread end: CDVDPlayerAudio::OnExit()
23:54:05 T:1887115648  NOTICE: Closing audio device
23:54:06 T:1877232432 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
23:54:06 T:1887115648  NOTICE: Deleting audio codec
23:54:06 T:1887115648  NOTICE: Closing stream player 2
23:54:06 T:1887115648  NOTICE: waiting for video thread to exit
23:54:06 T:1877232432  NOTICE: thread end: video_thread
23:54:06 T:1887115648  NOTICE: deleting video codec
23:54:07 T:1887115648  NOTICE: Closing stream player 3
23:54:07 T:1790010896  NOTICE: DVDPlayer: finished waiting
23:54:07 T:1790010896  NOTICE: CDVDPlayer::CloseFile()
23:54:07 T:1790010896  NOTICE: DVDPlayer: waiting for threads to exit
23:54:07 T:1790010896  NOTICE: DVDPlayer: finished waiting
23:54:07 T:1790010896  NOTICE: CDVDPlayer::CloseFile()
23:54:07 T:1790010896  NOTICE: DVDPlayer: waiting for threads to exit
23:54:07 T:1790010896  NOTICE: DVDPlayer: finished waiting
23:54:07 T:1810609608   ERROR: ActiveAE::void ActiveAE::CActiveAE::FlushEngine() - failed to flush

23:54:12 T:1810609608   ERROR: ActiveAE::bool ActiveAE::CActiveAE::InitSink() - failed to init
23:55:39 T:1790010896  NOTICE: NFS is idle. Closing the remaining connections.

Any thoughts on what might be causing this, or how to fix it?