PMS as a service

@cjmurph
Have you seen any issues with MS Windows 1803 SC build?

Issue:
Been running fine for months, but was forced to update to Windows 1803 like a lot of people, and now when a stream starts that needs to transcode, PMS immediately crashes. The service wrapper will restart it, but as soon as another transcode starts, it goes down. When I run PMS as a normal application (as the same accnt as the service), everything is fine, HW encode/decode is working great. Didn’t update any other software/hardware configuration other than the 1803 update and my video card drivers to the latest. I can scan libraries, and do almost anything else to include direct play/stream.

Here’s some info about my rig:

Environment:
OS: Windows 10 Enterprise 64-bit 1803 SCU
CPU: Intel® Core™ i7-6700K CPU @ 4.00GHz (8 CPUs), ~4.0GHz
GPU: Intel HD Graphics 530 (integrated graphics)
Display Memory: 16231 MB
Dedicated Memory: 128 MB
Shared Memory: 16103 MB
RAM: 32GB
Libraries: All on local USB HDD enclosure

PMS:
PMS: Version 1.13.0.5003 (PlexPass)
Running as local admin account

PMS Settings:
Transcoder quality: Automatic
Transcoder temp dir: Local system SSD
Transcoder default throttle buffer: 180
Background transcoding x264 preset: Medium
Use hardware acceleration when available: Enable
Maximum simultaneous video transcode: 6

T-shooting:

  1. Updated Intel drivers to latest
  2. Wiped out the codecs folder. (All codecs are regenerated upon transcode session start)
  3. Tried system account - same thing
  4. Haven’t tried with “A LOT” of players, but doesn’t seem to matter.

LOGS:

When running as a service it will crash right after the last line:

May 02, 2018 19:20:15.055 [9756] WARN - Couldn't determine bundle identifier for plug-in at: "C:\plex\Plex Media Server\Plug-ins\GoogleMusic.bundle"
May 02, 2018 19:20:16.605 [20732] WARN - Request for plug-in [com.plexapp.plugins.Cast] but it doesn't exist.
May 02, 2018 19:20:16.743 [4804] ERROR - [FFMPEG] - Failed to create Direct3D device
May 02, 2018 19:20:16.746 [4804] ERROR - [FFMPEG] - Cannot load nvEncodeAPI.dll
May 02, 2018 19:20:16.746 [4804] ERROR - [FFMPEG] - The minimum required Nvidia driver for nvenc is 378.66 or newer
May 02, 2018 19:20:16.746 [4804] WARN - avcodec_open2 returned -1313558101 for encoder 'h264_nvenc'
May 02, 2018 19:20:16.979 [4804] INFO - [FFMPEG] - MFT name: 'Intel® Quick Sync Video H.264 Encoder MFT'

The “plex crash uploader.log” also shows this:

May 02, 2018 19:20:17.170 [24512] INFO - Crash Uploader - Platform: windows-i386 (10.0 (Build 17134)) ServerUUID: 4b2718d1a78ac210f0049ee9c8fxxxxxxxxxxx UserId: seanxxxxxxxxxxail.com Version: 1.13.0.5003-8fcb5b6e5
May 02, 2018 19:20:20.800 [23412] INFO - Successfully reported 7c71b1fd-644a-4522-a08e-d82xxxxxxxxxxxx

When running as an application, the same log output will be generated as above but then continue with the below logs:

May 02, 2018 19:35:14.178 [20868] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 2827800 is out of range for mov/mp4 format
May 02, 2018 19:35:14.349 [24056] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 3670300 is out of range for mov/mp4 format
May 02, 2018 19:35:14.472 [13072] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 4341800 is out of range for mov/mp4 format
May 02, 2018 19:35:14.753 [20868] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 5501300 is out of range for mov/mp4 format
May 02, 2018 19:35:15.203 [24056] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 7774400 is out of range for mov/mp4 format
May 02, 2018 19:35:16.816 [16316] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 15986800 is out of range for mov/mp4 format
May 02, 2018 19:35:17.830 [9736] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 20979300 is out of range for mov/mp4 format
May 02, 2018 19:35:17.941 [9924] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 21521500 is out of range for mov/mp4 format
May 02, 2018 19:35:18.175 [13072] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 22393200 is out of range for mov/mp4 format
May 02, 2018 19:35:19.851 [22880] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 22580900 is out of range for mov/mp4 format
May 02, 2018 19:35:20.135 [18408] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 23865500 is out of range for mov/mp4 format
May 02, 2018 19:35:21.403 [22880] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 24411900 is out of range for mov/mp4 format
May 02, 2018 19:35:21.541 [13072] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 25025000 is out of range for mov/mp4 format
May 02, 2018 19:35:21.694 [18408] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 25725700 is out of range for mov/mp4 format
May 02, 2018 19:35:21.727 [22880] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 25855000 is out of range for mov/mp4 format
May 02, 2018 19:35:23.964 [18408] ERROR - [Transcoder] [mp4 @ 069bbb80] Application provided duration: -69 / timestamp: 26255400 is out of range for mov/mp4 format
May 02, 2018 19:35:44.408 [20868] INFO - [FFMPEG] - Initialized an internal MFX session using hardware accelerated implementation

Any ideas?