Here is a link to the sample file: Dropbox - Sample File.zip - Simplify your life
Sorry for the delayed reply, it took me a while to figure out how to consistently repeat the problem (and find a sample file that it worked with).
I shut down and then re-opened plex just before performing the experiment, so the logs shouldn’t be too extraneous.
The file in question has 2 audio tracks: Brazilian and Japanese. I’m starting the file with “Japanese (EAC3 5.1)” selected.
The file has a lot of subtitle tracks. I’m starting the file with “English (SRT) For Japanese Audio” selected.
I can’t decipher the logs well enough to know which line corresponds to me pressing “Play”, but I can see on line 2584 (at 18:49:41.345) that the file begins to play. I allow the file to play for about 5 seconds, so that the subtitles appear on screen. Then I pause the playback and do not touch Plex for 3 minutes.
This process I was able to repeat, where pausing for at most 5 minutes causes the error to occur. This specific instance it was around 3 minutes (from the time I pressed Play). I found that pausing for 3 minutes leaves the least amount of variables to wade through. This same issues occurs if I’m simply playing the file for at most 5 minutes, but I would need to make the sample file 3 times as large to demonstrate that.
(I would also like to note that these times are for this specific file. In other files sometimes the error doesn’t occur for 10 minutes or more of playback/pausing. Also, in a previous comment I mentioned that this issue only happens during Direct Play/Stream, not when transcoding, however, I have since seen the issue occur while transcoding, but it happens very rarely, and I can’t reproduced it.)
So the pause occurred on line 2734.
And then on line 3053 (at 18:52:42.339), the audio track switches from Japanese to Brazilian.
At the same time, on line 3108, the subtitle track switches from English to None.
This is all without user input, with the playback being paused. (I may have moved my mouse and activated the hover UI, but that was only once, around 1 minute into the pausing, not at the exact moment, or even close to the moment, when the tracks switch. I’ve done other tests with no mouse hovering and the issue persists.)
The instant this occurs, the subtitles disappear from the paused screen.
At this point, you can press play and the playback will have no subtitles and the audio will be Brazilian.
Of note with this specific file, if you attempt to change the audio and/or subtitle track by clicking the “Settings” button at the bottom right (after the tracks have switched, whether you attempt this while the video is paused, or it’s playing back in Brazilian), the playback stops/crashes with an error. It just says “Playback Error: There was an unexpected error during playback. Please visit our forums if you continue to experience problems.” I did this with this sample file at the end of this test, so the crash should be included in the logs. I believe this is happening around line 3210, but I don’t know for sure.
All of the lines I’ve provide are for the Client Logs. I don’t really see anything of note in the Server Logs.
Please let me know if there is any other info you need.