Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Loading of VA display was failed.

sam_p_
Beginner
406 Views

I get the following errors on "sample_encode_drm" on a computer running centos 7 and i just installed 2015r5 of the media sdk on an Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz Could I have missed something?

Starting program: /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/__cmake/intel64.make.debug/__bin/debug/./sample_encode_drm h264 -i /data/redacted/.git/objects/pack/pack-60565dd8f58f1f5b6f9bbd65e7280c74d15041ef.pack -o foo.264 -w 1920 -h 1080
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff5b7d700 (LWP 12518)]
[New Thread 0x7ffff537c700 (LWP 12519)]
[New Thread 0x7ffff4b7b700 (LWP 12520)]
[New Thread 0x7ffff437a700 (LWP 12521)]
[New Thread 0x7ffff3b79700 (LWP 12522)]
[New Thread 0x7ffff3378700 (LWP 12523)]
[New Thread 0x7ffff2b77700 (LWP 12524)]
[New Thread 0x7ffff2376700 (LWP 12525)]
[Thread 0x7ffff3378700 (LWP 12523) exited]
[Thread 0x7ffff2376700 (LWP 12525) exited]
[Thread 0x7ffff2b77700 (LWP 12524) exited]
[Thread 0x7ffff3b79700 (LWP 12522) exited]
terminate called after throwing an instance of 'std::invalid_argument'
  what():  Loading of VA display was failed

Program received signal SIGABRT, Aborted.
0x00007ffff67ea5d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	  return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
#0  0x00007ffff67ea5d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff67ebcc8 in __GI_abort () at abort.c:90
#2  0x00007ffff70ee9b5 in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007ffff70ec926 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:38
#4  0x00007ffff70ec953 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#5  0x00007ffff70ecb73 in __cxxabiv1::__cxa_throw (obj=0x5555557c2f80, tinfo=0x7ffff7379190 <typeinfo for std::invalid_argument>, dest=0x7ffff7101050 <std::invalid_argument::~invalid_argument()>) at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:87
#6  0x00005555555868b4 in DRMLibVA::DRMLibVA (this=0x5555557a8e58) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_common/src/vaapi_utils_drm.cpp:199
#7  0x000055555557fcf9 in CVAAPIDeviceDRM::CVAAPIDeviceDRM (this=0x5555557a8e50) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_common/include/vaapi_device.h:27
#8  0x000055555557fc14 in CreateVAAPIDevice () at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_common/src/vaapi_device.cpp:157
#9  0x00005555555756db in CEncodingPipeline::CreateHWDevice (this=0x5555557a0030) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_encode/src/pipeline_encode.cpp:501
#10 0x0000555555576194 in CEncodingPipeline::CreateAllocator (this=0x5555557a0030) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_encode/src/pipeline_encode.cpp:734
#11 0x0000555555577770 in CEncodingPipeline::Init (this=0x5555557a0030, pParams=0x7fffffffd170) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_encode/src/pipeline_encode.cpp:1019
#12 0x000055555557d048 in main (argc=10, argv=0x7fffffffdf18) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_encode/src/sample_encode.cpp:623

 

0 Kudos
3 Replies
Surbhi_M_Intel
Employee
406 Views

Hi Sam, 

This can definitely be an installation issue. For Media Server Studio 2015 R5 release, the officially supported OS are CentOS 7.1 & SLES 12. 
Did you refer to getting started guide for the installation? If you did, then did you follow generic installation for CentOS 7?

There are few checkpoints to make sure the Media Server Studio is installed properly.

cmd : uname –ar
E
nsure you are booted into the correct kernel. The following command should return the kernel with "MSSrN" in the ID (where N is the release number). 

cmd : lspci –nn | grep VGA 
Check if the Intel® Integrated Graphics is being recognized by the PCI on VGA

cmd:  lsmod | grep i915
Check if the i915 DRM module is installed
 

Can you match the results of these cmds mentioned in the getting started guide or send us the results to confirm.

Thanks,
Surbhi

0 Kudos
sam_p_
Beginner
406 Views

Seems that everything is in order.

[redacted@redacted ~]$ uname -ar
Linux redacted 3.10.0-229.1.2.36242.MSSr4.el7.centos.x86_64 #1 SMP Wed May 20 09:56:42 MDT 2015 x86_64 x86_64 x86_64 GNU/Linux
[redacted@redacted ~]$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b)
[redacted@redacted ~]$ lsmod | grep i915
i915                  933912  6 
i2c_algo_bit           13413  1 i915
drm_kms_helper         98226  1 i915
drm                   311336  5 i915,drm_kms_helper
i2c_core               40325  7 drm,i915,i2c_i801,i2c_hid,drm_kms_helper,i2c_algo_bit,videodev
video                  19263  1 i915
[redacted@redacted ~]$ gdb /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/__cmake/intel64.make.debug/__bin/debug/./sample_encode_drm
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-64.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/__cmake/intel64.make.debug/__bin/debug/sample_encode_drm...done.
(gdb) run h264 -i /data/redacted/video_redacted_git/.git/objects/pack/pack-60565dd8f58f1f5b6f9bbd65e7280c74d15041ef.pack -o foo.264 -w 1920 -h 1080
Starting program: /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/__cmake/intel64.make.debug/__bin/debug/./sample_encode_drm h264 -i /data/redacted/video_redacted_git/.git/objects/pack/pack-60565dd8f58f1f5b6f9bbd65e7280c74d15041ef.pack -o foo.264 -w 1920 -h 1080
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff5b7d700 (LWP 2902)]
[New Thread 0x7ffff537c700 (LWP 2903)]
[New Thread 0x7ffff4b7b700 (LWP 2904)]
[New Thread 0x7ffff437a700 (LWP 2905)]
[New Thread 0x7ffff3b79700 (LWP 2906)]
[New Thread 0x7ffff3378700 (LWP 2907)]
[New Thread 0x7ffff2b77700 (LWP 2908)]
[New Thread 0x7ffff2376700 (LWP 2909)]
[Thread 0x7ffff2b77700 (LWP 2908) exited]
[Thread 0x7ffff2376700 (LWP 2909) exited]
[Thread 0x7ffff3b79700 (LWP 2906) exited]
[Thread 0x7ffff3378700 (LWP 2907) exited]
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff003937f in __vaDriverInit_0_32 () from /opt/intel/mediasdk/lib64/iHD_drv_video.so
Missing separate debuginfos, use: debuginfo-install libdrm-2.4.56-36242.el7.x86_64 libva-1.3.1-staging.20130628.36242.el7.x86_64
(gdb) bt
#0  0x00007ffff003937f in __vaDriverInit_0_32 () from /opt/intel/mediasdk/lib64/iHD_drv_video.so
#1  0x00007ffff77a7a18 in va_openDriver () from /lib64/libva.so.1
#2  0x00007ffff77a8736 in vaInitialize () from /lib64/libva.so.1
#3  0x000055555558678b in DRMLibVA::DRMLibVA (this=0x5555557a8e58) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_common/src/vaapi_utils_drm.cpp:180
#4  0x000055555557fcf9 in CVAAPIDeviceDRM::CVAAPIDeviceDRM (this=0x5555557a8e50) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_common/include/vaapi_device.h:27
#5  0x000055555557fc14 in CreateVAAPIDevice () at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_common/src/vaapi_device.cpp:157
#6  0x00005555555756db in CEncodingPipeline::CreateHWDevice (this=0x5555557a0030) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_encode/src/pipeline_encode.cpp:501
#7  0x0000555555576194 in CEncodingPipeline::CreateAllocator (this=0x5555557a0030) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_encode/src/pipeline_encode.cpp:734
#8  0x0000555555577770 in CEncodingPipeline::Init (this=0x5555557a0030, pParams=0x7fffffffd180) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_encode/src/pipeline_encode.cpp:1019
#9  0x000055555557d048 in main (argc=10, argv=0x7fffffffdf28) at /home/redacted/redacted-os/third-party/intel/media_sdk/MediaSamples_Linux_5.0.1604371.71/samples/sample_encode/src/sample_encode.cpp:623
(gdb) 

 

0 Kudos
Surbhi_M_Intel
Employee
406 Views

Seems like you are using quite old samples please download latest package for samples from here - https://software.intel.com/en-us/intel-media-server-studio-support/code-samples .  
can you build the latest samples and  test any sample with the content provided in the package and confirm the result? Also, can you confirm which installation method you have followed?

Thanks,
Surbhi

0 Kudos
Reply