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.
3056 Discussions

msdk session init error with MFX_DISP_HANDLE::LoadSelectedDLL in linux dynamic library

yawei_m_
Beginner
300 Views

hello:
I met a strange question. I write a msdk jpeg decode code which refer to "mediasdk-tutorials-0.0.3.tar.gz", and compile it to a dynamic library(*.so). But It's error when I link the dynamic library and run the main code. As follows:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000400 in ?? ()
Missing separate debuginfos, use: debuginfo-install atk-2.14.0-1.el7.x86_64 bzip2-libs-1.0.6-13.el7.x86_64 cairo-1.14.2-1.el7.x86_64 expat-2.1.0-8.el7.x86_64 fontconfig-2.10.95-7.el7.x86_64 freetype-2.4.11-11.el7.x86_64 gdk-pixbuf2-2.31.6-3.el7.x86_64 glib2-2.42.2-5.el7.x86_64 glibc-2.17-105.el7.x86_64 gstreamer1-1.4.5-1.el7.x86_64 gstreamer1-plugins-base-1.4.5-2.el7.x86_64 gtk2-2.24.28-8.el7.x86_64 harfbuzz-0.9.36-1.el7.x86_64 intel-linux-media-16.5.1-59511.el7.x86_64 jasper-libs-1.900.1-29.el7.x86_64 jbigkit-libs-2.0-11.el7.x86_64 libX11-1.6.3-3.el7.x86_64 libXau-1.0.8-2.1.el7.x86_64 libXcomposite-0.4.4-4.1.el7.x86_64 libXcursor-1.1.14-2.1.el7.x86_64 libXdamage-1.1.4-4.1.el7.x86_64 libXext-1.3.3-3.el7.x86_64 libXfixes-5.0.1-2.1.el7.x86_64 libXi-1.7.4-2.el7.x86_64 libXinerama-1.1.3-2.1.el7.x86_64 libXrandr-1.4.2-2.el7.x86_64 libXrender-0.9.8-2.1.el7.x86_64 libXxf86vm-1.1.3-2.1.el7.x86_64 libdrm-2.4.66-59511.el7.x86_64 libffi-3.0.13-16.el7.x86_64 libgcc-4.8.5-11.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64 libpng-1.5.13-7.el7_2.x86_64 libselinux-2.2.2-6.el7.x86_64 libstdc++-4.8.5-11.el7.x86_64 libtiff-4.0.3-25.el7_2.x86_64 libva-1.67.0.pre1-59511.el7.x86_64 libxcb-1.11-4.el7.x86_64 libxshmfence-1.2-1.el7.x86_64 mesa-libEGL-11.2.2-2.20160614.el7.x86_64 mesa-libGL-11.2.2-2.20160614.el7.x86_64 mesa-libgbm-11.2.2-2.20160614.el7.x86_64 mesa-libglapi-11.2.2-2.20160614.el7.x86_64 orc-0.4.22-5.el7.x86_64 pango-1.36.8-2.el7.x86_64 pcre-8.32-15.el7.x86_64 pixman-0.32.6-3.el7.x86_64 xz-libs-5.1.2-12alpha.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0  0x0000000000000400 in  ()
#1  0x00007fffe8d34221 in MFXInitEx () at /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.21
#2  0x00007ffff7186fc3 in MFX_DISP_HANDLE::LoadSelectedDLL(char const*, eMfxImplType, int, int, mfxInitParam&) () at libtranslib.so
#3  0x00007ffff718441c in MFXInitEx () at libtranslib.so
#4  0x00007ffff71855eb in MFXInit () at libtranslib.so
#5  0x00007ffff717d910 in MFXVideoSession::Init(int, mfxVersion*) (this=0x7fffffffdd58, impl=3, ver=0x7fffffffdcd0)
    at /opt/intel/mediasdk/include/mfxvideo++.h:45
#6  0x00007ffff717e269 in Initialize(int, mfxVersion, MFXVideoSession*, mfxFrameAllocator*, bool) (impl=3, ver=..., pSession=0x7fffffffdd58, pmfxAllocator=0x7fffffffde60, bCreateSharedHandles=false) at ../common/common_utils_linux.cpp:28
#7  0x00007ffff717cb6d in JpgDecode::Init() (this=0x7fffffffdd50) at ../jpg_decode/src/jpg_decode.cpp:74
#8  0x00007ffff717c168 in CImageDecoderIG::decode(char const*) (this=0x7fffffffe0c0, src=0x615708 "1000000982328708573014520507643_3090.jpg") at src/translib.cpp:102
#9  0x0000000000401a86 in main(int, char**) (argc=2, argv=0x7fffffffe268) at translib_test.cpp:135
(gdb) q


Makefile link:
LFLAGS=-L$(MFX_HOME)/lib/lin_x64 -lmfx -lva -lva-drm -lpthread -lrt -ldl -lopencv_core


CPU:  Intel(R) Xeon(R) CPU E3-1585L v5 @ 3.00GHz
system: CentOS 7.2.1511 (3.10.0-327.el7.x86_64)
msdk version: MediaServerStudioEssentials2017R2
gcc/g++ version: 4.8.5

0 Kudos
0 Replies
Reply