HW trancoding not work on i5-9600k

Server Version#: 1.13.9.5456
Player Version#:
Hello! If I turn on HW trancoding, PMS will crash with message in /var/log/sysylog:

Nov 12 11:17:07 SERVER sh[8377]: Plex Media Server: intel_memman.c:38: intel_memman_init: Assertion `intel->bufmgr’ failed.
Nov 12 11:17:07 SERVER sh[8377]: ****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.13.9.5456-ecd600442/PLEX MEDIA SERVER/243677c5-6072-3f1b-597b3f82-2e56dd59.dmp

And the folder /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.13.9.5456-ecd600442/PLEX MEDIA SERVER is empty.

Would you please recreate this and supply the entire ZIP file of the logs?
The 9600k is a newly released processor. This might also be a kernel issue.

Plex Media Server Logs_2018-11-13_09-37-52.zip (1.6 MB)

Following this thread closely as I just built a new server with an i5-9600K and an Nvidia Quadro P2000. I was hoping to have the Intel chip do the decoding and the Nvidia do the encoding. So far, I’m only successful with the latter. When I tried to enable and install drivers for the Intel GPU, PMS would crash as soon as it tried to transcode anything (Direct Play and Direct Stream were fine).

Just try execute vainfo on my system and get same error.
Then I build and install:
linux kernel - 4.20.0
libva - 2.4.0
intel va-api - 2.2.1
libva-tools - 2.3.0
Also updated:
mesa-va-drivers 18.2.2-0ubuntu1~ppa1
libdrm-intel1 2.4.95-1~18.04.1~ppa1
And now I get correct output from vainfo:

allex@SERVER:~$ sudo vainfo
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.4 (libva 2.4.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.2.1.pre1 (2.2.0.pre1-11-gdc20b64)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSlice
      VAProfileVP9Profile2            : VAEntrypointVLD

But PMS still crashing with same error.

Are you using a released kernel? I am only now seeing 4.18.16 coming through on both Fedora and Ubuntu systems.

The diagnostics I previously saw and reviewed in the source code show a change in the memory initialization routine is required to work with the Intel -9xxx family chips.

No, I build kernel 4.20 RC only for testing your suggestion about old kernel. In normal I use kernel 4.15.
If now I have correct output of vainfo, is that mean that problem in PMS and it will be fixed in some next release?

I’m going through the Intel -> libva -> ffmpeg information now to track down where the support for the -9xxx processors stands.

The original error code “intel_memman.c:38: intel_memman_init: Assertion `intel->bufmgr’ failed.” it it looking for a supported processor. That immediately tells me the driver, at that level, can’t assert the processor is known and supported.

The chain I am walking through now is:

  1. Intel -> libva support for it
  2. libva -> ffmpeg support for it
  3. ffmpeg support for it.
  4. where do the current kernels stand in recognizing it. (the -8xxx took time before it was released)
  5. updating Plex’s transcoder to incorporate all the above to support it.

Is there any updates on this? I’m having the same issue on a new server built with an Intel i7-9700K. My vainfo output crashes with the same

error: can’t connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
vainfo: intel_memman.c:38: intel_memman_init: Assertion `intel->bufmgr’ failed.
Aborted (core dumped)

/var/log/syslog shows:

Plex Media Server: intel_memman.c:38: intel_memman_init: Assertion `intel->bufmgr’ failed.
****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.14.0.5465-425e4ac90/PLEX MEDIA SERVER/7f270d0d-8cfb-60ed-79234d9c-401019af.dmp

Any other info I can supply to help?

There isn’t anything to reply with yet.

So far, it appears to be two fold.

  1. Kernel support for the drivers. ( not all distros can correctly detect it )
  2. Bump of the i965 driver so PMS can talk to it. ( already in progress )

Thanks @ChuckPa! HW transcoding is huge for me and my users so I guess I’ll wait to migrate to this new server until it’s supported and working.

The -9xxx processor was only released this (Q4) quarter. There is some lag time on all the pieces needed to make it work.

Sorry.

My own curiosity… my i3 8100 works fantastic, transcoding beast. It appears, according to Intel ARK to use the same UHD 630…? I wouldn’t initially think much different for support.


To the OP, all things considered… GPU spec, clock speeds, i3-8100 seems like a far better value for a transcoding plex server.

i5-9600K and i3-8100 GPUs has different Divece id, which means that they are different.
I use my server not only for plex, but also for other tasks where great performance is needed.

Any progress updates on this issue?

Does the kernel show /dev/dri and all the appropriate files?

If it does not, then the kernel itself doesn’t yet detect and support the CPU

allex@SERVER:~$ ls -la /dev/dri/
total 0
drwxr-xr-x  3 root root       100 дек 11 11:20 .
drwxr-xr-x 20 root root      4340 дек 11 11:20 ..
drwxr-xr-x  2 root root        80 дек 11 11:20 by-path
crw-rw----  1 root video 226,   0 дек 19 17:21 card0
crw-rw----  1 root video 226, 128 дек 19 17:21 renderD128

ffmpeg perfectly works with vaapi on this CPU. PMS still craching.

I will forward to the team to look at.
Unfortunately, due to the holiday, There’s nothing any of us can do.
For me, it is now 21-Dec

Yeah, same here, the kernel sees it fine, just PMS that’s crashing.

@ChuckPa thanks for forwarding to the team. Not expecting anything immediately, was just wondering if it was being tracked/worked at all since it has been 6 weeks since the issue was raised.

Same here… Will wait for updated package, but want to bring more attention to this.

Fedora 29 - up to date as of 1/1/2019

Linux stark.roadfeldt.com 4.20.0-1.vanilla.knurd.1.fc29.x86_64 #1 SMP Mon Dec 24 11:02:53 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

i7 9700k Gigabyte Z390 Ultra

HW acceleration on - PMS crash
HW acceleration off - no PMS crash