MediaSDK icon indicating copy to clipboard operation
MediaSDK copied to clipboard

Rendering failed by X or drm

Open lyy-zz opened this issue 3 years ago • 1 comments

System information

  • CPU information(cat /proc/cpuinfo | grep "model name" | uniq): Intel(R) Celeron(R) N5105 @ 2.00GHz
  • GPU information(lspci -nn | grep -E 'VGA|isplay): 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4e61] (rev 01)
  • Display server if rendering to display(X or wayland): wayland (echo $XDG_SESSION_TYPE)
  • OS: debian11

Issue behavior

Describe the current behavior

  1. render by X Command: /opt/intel/mediasdk/share/mfx/samples/sample_decode -hw -vaapi h264 -i /home/andy/test_video/2k_60fps_30s.h264 -rgb4 -r Error: Decoding started DeliverOutput return error = -1 fread_fps: 0.000, fwrite_fps: 23.806 Frame number: 1, fps: 0.125, fread_fps: 0.000, fwrite_fps: 23.806 Decoding finished

  2. render by drm buffer Command: /opt/intel/mediasdk/share/mfx/samples/sample_decode -hw -vaapi h264 -i /home/andy/test_video/2k_60fps_30s.h264 -rgb4 -rdrm Error: Decoding started drmrender: error: failed to get drm mastership during 3 seconds - aborting DeliverOutput return error = -1 Frame number: 1, fps: 0.193, fread_fps: 0.000, fwrite_fps: 0.198 Decoding finished drmrender: error: failed to get drm mastership during 3 seconds - aborting drmrender: warning: failure to restore original mode may lead to application segfault! drmrender: error: failed to get drm mastership during 3 seconds - aborting drmrender: warning: failure to restore original mode may lead to application segfault!

Describe the expected behavior

rendering succeeded

Debug information

  • What's libva/libva-utils/gmmlib/media-driver/Media SDK version? libva/libva-utils=2.14.0;gmmlib=22.1.2;media-driver~=22.4.1;Media SDK~=22.4.0

  • Could you confirm whether GPU hardware exist or not by ls /dev/dri? by-path card0 renderD128

  • Could you attach dmesg log if it's GPU hang by dmesg >dmesg.log 2>&1? dmesg.log

  • Could you provide vainfo log if possible by vainfo -a >vainfo.log 2>&1? vainfo.log

  • Could you provide strace log if possible by strace YOUR_CMD >strace.log 2>&1? strace.log

  • Could you provide libva trace log if possible? Run cmd export LIBVA_TRACE=/tmp/libva_trace.log first then execute the case. 104743.thd-0x0000203c.libva_trace.log 104743.thd-0x0000203d.libva_trace.log 104743.thd-0x0000203e.libva_trace.log 104743.thd-0x00002040.libva_trace.log

  • Media SDK tracer output (https://github.com/Intel-Media-SDK/MediaSDK/blob/master/tools/tracer/README.md)?

  • Do you want to contribute a PR? (yes/no):

lyy-zz avatar Apr 28 '22 11:04 lyy-zz

Have you solved this problem?I'm having the same problem as you.Can you help me with this problem?

liwenlin1 avatar Jul 28 '22 04:07 liwenlin1