Shield: Transcoding crashes with hardware acceleration enabled

In the last log file it is exactly the same as the two i mentioned
This was the last transcode job in the last set of logs

Nov 03, 2018 00:18:30.883 [14118] VERBOSE - Sufficient disk space: 11.21GB source file, 1.82TB capacity, 302.1GB available on "/storage/SPEEDPORT/deepblue/Videos/Filme/Plex Versions/Optimized for TV"

Nov 03, 2018 00:18:30.905 [13881] DEBUG - [Universal] Using local file path instead of URL: /storage/SPEEDPORT/deepblue/Videos/Filme/Bushwick.mkv

Nov 03, 2018 00:18:30.906 [13881] DEBUG - TPU: hardware transcoding: final decoder: mediacodecndk, final encoder: mediacodecndk

Nov 03, 2018 00:18:32.280 [13881] DEBUG - Started session successfully: 4fedc489-2fc0-48eb-a509-6d175b2848a2

Nov 03, 2018 00:27:10.608 [13888] DEBUG - Jobs: '/data/user/0/com.plexapp.mediaserver.smb/Resources/Plex Transcoder' exit code for process 14134 is -9 (signal: Killed)

Nov 03, 2018 00:27:10.793 [13881] WARN - TranscodeJobManager: previous hardware transcoding job failed, retrying with software transcoding

about 9 minutes after start, the process was killed.
This was an 11Gb source file.So we need to see if you can replicate the issue with a 1Gb sample and then have logs for that and the file

Wasnt there mentioned a ā€œSplit2.mkvā€? I just enabled extended logging again and will provide new logfiles after finding at least another example. Thank you for your help!

No

checked both
Plex Media Server Logs_2018-11-03_00-42-16.zip
and
Plex Media Server Logs_2018-11-02_23-52-46.zip

Please check 2018-11-03_01-27-06

More logs after crashing with a second split file (dhi.mkv). Send you a link asap.Plex Media Server Logs_2018-11-03_02-48-36.zip (2.0 MB)

@sa2000 Send you another file (logfile in previous post). Hope it helps.

Thanks for all the samples and the logs. I have reproduced the issue and referred it to the development team

The problem appears to be that the nVidia Shield gets very low on memory when transcoding with hardware acceleration enabled and lead to the shield killing processes - starting with the transcoder process itself and it may also kill the Plex Media Server process as well

Thank you for your help! Hope this will get fixed soon.

So is this a hardware limitation or is it fixable? I am considering selling the Shield…

1 Like

As it worked before (< July) and software transcoding is still working, it should be fixable.

I am encountering a similar problem, but with Live TV streaming. I have not tested with movies transcoding, but could try the file that was provided here to see if I encounter the same issue. Please look at PMS on Nvidia Shield - Problems w/Live TV for more info on my issue. Please let me know if I can be of further assistance in diagnosing this problem, especially where it relates to Live TV. Thanks!

I cannot really investigate any issue without full server logs with debug enabled and covering specific observed issues with details of what the issue was and what time.

Having said that, i would suggest we wait for the next beta release of Plex Media Server which does have a number of DVR and Live TV related fixes.

For the Shield Hardware Acceleration playback failures - the low memory problem i mentioned before here, it is still under investigation.

@sa2000 Thank you for the response.

For debug, are you referring to this setting ā€œEnable Plex Media Server debug loggingā€? If so, it is already enabled.

To obtain the full server logs, do I just click on ā€œDownload Logsā€ under Troubleshooting?

If you can confirm the above, I will run Live TV, wait for the issue (~13-15 mins), and PM you the logs.

Thank you!

Yes - but please restart the server before doing the test/reproducing the problem

Yes

The logs will indicate if the processes are being killed by the nVidia Shield which is indicative of low memory

The Low Memory issue is under investigation

Logs have been sent through PM. Thank you.

It does appear that the Transcoder process was killed off - but not by Plex Media Server - so suspect it is the low memory issue which is currently being investigated with the nVidia Shield team.

Session started at 14:34 which started two transcoder job for the capture of the stream from the channel and for transcoding for the roku app

Nov 15, 2018 14:34:28.408 [13692] DEBUG - Request: [192.168.1.19:56688 (Subnet)] POST /livetv/dvrs/2/channels/2.3/tune (14 live) TLS GZIP Signed-in Token (ravennevar2018)
Nov 15, 2018 14:34:28.923 [13103] DEBUG - Jobs: Starting child process with pid 13734
Nov 15, 2018 14:34:38.001 [13723] DEBUG - Jobs: Starting child process with pid 13794

Got to segment 852 (1 second segments = 14 minutes 12 seconds) and that got to the roku app ok

Nov 15, 2018 14:48:49.911 [13791] DEBUG - Request: [192.168.1.19:56697 (Subnet)] GET /video/:/transcode/universal/session/ac985f8df798b1a7bf7241fde0cea954/base/00852.ts (13 live) TLS Signed-in Token (ravennevar2018)
Nov 15, 2018 14:48:49.912 [13791] DEBUG - Asked for segment 852 from session.
Nov 15, 2018 14:48:49.912 [13791] DEBUG - Returning segment 852 from session: "/storage/emulated/0/Android/data/com.plexapp.mediaserver.smb/cache/Transcode/Sessions/plex-transcode-ac985f8df798b1a7bf7241fde0cea954-103e25d4-ab19-4073-a5c7-22b5cdc9b131/media-00852.ts"
Nov 15, 2018 14:48:49.912 [13791] DEBUG - Content-Length of /storage/emulated/0/Android/data/com.plexapp.mediaserver.smb/cache/Transcode/Sessions/plex-transcode-ac985f8df798b1a7bf7241fde0cea954-103e25d4-ab19-4073-a5c7-22b5cdc9b131/media-00852.ts is 1069532.
Nov 15, 2018 14:48:49.957 [13009] DEBUG - Completed: [192.168.1.19:56697] 200 GET /video/:/transcode/universal/session/ac985f8df798b1a7bf7241fde0cea954/base/00852.ts (13 live) TLS 46ms 1069532 bytes (pipelined: 853)

Next that happened was the transcoder process getting shutdown

Nov 15, 2018 14:48:49.958 [13016] DEBUG - Jobs: '/data/user/0/com.plexapp.mediaserver.smb/Resources/Plex Transcoder' exit code for process 13794 is -9 (signal: Killed)

and this was not instigated by Plex Media Server

It has been flagged as a high priority issue to be investigated and we are working with the nVidia Shield team to provide sample media files and diagnostics

1 Like

@sa2000 Thank you for the reply.

Please let me know if I can be of further assistance in diagnosing this issue using my specific setup of Live TV and Roku clients.

1 Like

@sa2000

These samples should help the dev team diagnose issues: http://www.jell.yfish.us

I just upgraded my Nvidia Sheild Pro to 7.2 and have not found any improvements with transcoding issues. Version 1.14.0.5470…

Recording over the air TV With hardware acceleration on:

Recording to TS files work
Convert VIdeo while Recording HDHomeRun CONNECT Quatro (H264) works
Commercial cut works.

What doesn’t work for me:

Optimize fails with acceleration on, although the speed looks good until it fails, at a 4 or 5%.

The Tivo Bolt and Tivo Minis won’t stream with acceleration on. Although they work fine with the same settings on my Cybertron computer (which s my OTHER Plex server)

I tried recording to H264 with commercial cut on but that fails. Seems like Plex can cut a TS file but is having issues cutting the H264.

What happens when I turn OFF hardware acceleration:

Everything works, but Plex only transcodes at .06%, so if I try to watch a video, the Tivo system keeps stalling to buffer, so I have to optimize everything at 4 Mbps 720p so the Tivo minis can direct play the videos.

I would have thought the issues were with the Tivo Plex client but since my Cybertron Plex server works great with the Tivo system, this all points to the Nvidia Sheild and Plex not being able to do all transcoding with the hardware accelerator on.

The Nvidia Sheild seems to have all the power needed to be an awesome Plex server, if we can only get the transcoding to work like it does on my Cybertron .

No improvement with Version 1.14.1.5487