Shield: Transcoding crashes with hardware acceleration enabled

I will try to provide a file later on. The problem is focused on hardware transcoding, crashing even when optimizing files. Strange that some files are playing fine.

Does a split of an effected file help? The crash occours around 15 minutes - 1 hour playback (or faster if optimizing). If yes, can i send you a pm? I can provide my (new) logfiles, too. Like statet, it is working fine if hardware transcoding is disabled!

1 Like

@DaveBinM I can confirm that the error occurs with the file provided by @PatricheTeodor!

/Edit: Software Transcoding seems not working well on this file, too.

Some extra information around the Android version on the Shield, plus the PMS version would be much appreciated :slight_smile: (and the version numbers, please. Not “latest”) :grimacing: :sweat_smile:

Android 8 (Shield Software 7.1.0(29.6.259.0)). PMS 1.13.9.5439.

PS: Software Transcoding of the example file is only slow becauce it is 4k.

Hardware transcoding crashes on this file. I have several Media in 720p an 1080p which behave the same.

@DaveBinM Is this under investigation now, or do you need more samples?
Those hardware transcoding errors made the Shield practically unusable for the last months beginning in July I guess. I really would like to use my Shield’s Plex server again :wink:

Yes it is being looked into to reproduce the problem. Using the 2Gb file provided by @PatricheTeodor here, it is switching to software soon after starting.

I would not mind more samples - preferably smaller filesize 1Gb or less

@Deepblue23 you mentioned before that hardware transcoding fails after few minutes - could i have logs for that please and if it is the same on all clients. and would like more samples please - the smallest file size that brings the problem on

The transcoder is even crashing during optimizing. Please find attached two logfiles after trying to optimize a file (extended logging on). It is nothing client related. Client which needs transcoding i a chromecast (classic version). Direct play and software transcoding is working fine.

Plex Media Server Logs_2018-11-02_23-52-46.zip (2.4 MB)
Plex Media Server Logs_2018-11-03_00-42-16.zip (2.1 MB)

I need more sample files. I do not want to base the whole investigation for these issues on just one HEVC 4k / EAC3 + srt sample

I am already trying to create test files for you. All my files that are affected are full movies - so i try to create split files and testing optimizing.

Thank you. Is the issue that we are trying to solve here is that software transcoding being done instead of hardware transcoding?

My issue is that transcoding is stopping / crashing completely on many files if hardware transcoding is enabled. Optimizing fails, playbacks are stopping. It works if i disable hardware transcoding. Don’t know if the transcoder tries to switch modes
 but if it does, it doesnt work.

I can see the transcode process for these being terminated after start
I do not believe they are very big - under 1Gb each - so can go with the files themselves
You can upload to dropbox or other service and send me link by private messaage

Bushwick.mkv
Alien vs Predator 2.mkv

I cancelled two optimizing jobs, dont know if you mean these (Bushwick was stopping by itself before that). Testing currently a second split file of bushwick (the 1 GB Version was finished without errors
). The full file is around 9 GB


Logfile update after crashing with a split file. Sadly it is again almost 2 GB
 Sending a PM (link).Plex Media Server Logs_2018-11-03_01-27-06.zip (2.2 MB)

I cannot tell what killed the transcode process - whether you stopping it or the actual issue we are trying to investigate

This was one where it failed / got killed at 23:13:38

Nov 02, 2018 23:05:22.849 [10831] DEBUG - [Universal] Using local file path instead of URL: /storage/SPEEDPORT/deepblue/Videos/Filme/Bushwick.mkv

Nov 02, 2018 23:05:22.850 [10831] DEBUG - TPU: hardware transcoding: final decoder: mediacodecndk, final encoder: mediacodecndk

Nov 02, 2018 23:05:24.343 [10831] DEBUG - Started session successfully: 9d0f115d-441b-4daa-9ae8-827a423c9525

Nov 02, 2018 23:13:38.119 [10838] DEBUG - Jobs: '/data/user/0/com.plexapp.mediaserver.smb/Resources/Plex Transcoder' exit code for process 11065 is -9 (signal: Killed)
Nov 02, 2018 23:13:38.282 [10831] WARN - TranscodeJobManager: previous hardware transcoding job failed, retrying with software transcoding

and this was was killed at 23:54:00 - i cannot tell if you stopped it or it is the problem

Nov 02, 2018 23:41:01.255 [12350] DEBUG - [Universal] Using local file path instead of URL: /storage/SPEEDPORT/deepblue/Videos/Filme/Alien vs Predator 2.mkv

Nov 02, 2018 23:41:01.256 [12350] DEBUG - TPU: hardware transcoding: final decoder: mediacodecndk, final encoder: mediacodecndk

Nov 02, 2018 23:41:03.318 [12350] DEBUG - Started session successfully: cc952d70-1c21-4e2d-bc89-4f52b5488586

Nov 02, 2018 23:54:00.074 [12357] DEBUG - Jobs: '/data/user/0/com.plexapp.mediaserver.smb/Resources/Plex Transcoder' exit code for process 12618 is -9 (signal: Killed)
Nov 02, 2018 23:54:00.082 [12350] WARN - TranscodeJobManager: previous hardware transcoding job failed, retrying with software transcoding

Bushwick = error.
I killed the transcoding of Alien vs. Predator myself.

Wow - that would make problem investigations very hard if i cannot tell if i am looking at an issue or user action to terminate

for the logs you provided - could you tell me what time the issue was and what the issue was?

The latest logile i provided contains another crash (of the split file) - just the last transcoding process. I send you a link to the file asap. Before i just started three jobs which i knew that the crashed before. After the first crash i stopped the two other optimizing jobs. Didnt know this would make it harder for you (sorry).