Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

GPU Hang when try to playback a video generated by media recorder on Android platform #2971

Open
dyang23 opened this issue Aug 4, 2022 · 5 comments
Labels

Comments

@dyang23
Copy link

dyang23 commented Aug 4, 2022

System information

  • CPU information(cat /proc/cpuinfo | grep "model name" | uniq):
  • TGL
  • GPU information(lspci -nn | grep -E 'VGA|isplay):
  • Gen12
  • Display server if rendering to display(X or wayland):
    not display related.

Issue behavior

Describe the current behavior

We are working on TGL 8K encoding and decoding, for accelerate the encoding speed we enabled the tile feature:
611 if (pInParams->nEncTileRows && pInParams->nEncTileCols) {
612 if (m_mfxEncParams.mfx.CodecId == MFX_CODEC_HEVC) {
613 auto hevcTiles = m_mfxEncParams.AddExtBuffer();
614 hevcTiles->NumTileRows = pInParams->nEncTileRows;
615 hevcTiles->NumTileColumns = pInParams->nEncTileCols;
616 }
617 }

GPU will hang when we try to playback it on Android and on Ubuntu with msdk-simple-decode tool

Describe the expected behavior

Debug information

  • What's libva/libva-utils/gmmlib/media-driver/Media SDK version?
  • Could you confirm whether GPU hardware exist or not by ls /dev/dri?
  • Could you attach dmesg log if it's GPU hang by dmesg >dmesg.log 2>&1?
  • Could you provide vainfo log if possible by vainfo -a >vainfo.log 2>&1?
  • Could you provide strace log if possible by strace YOUR_CMD >strace.log 2>&1?
  • Could you provide libva trace log if possible? Run cmd export LIBVA_TRACE=/tmp/libva_trace.log first then execute the case.
  • 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):
@dyang23 dyang23 added the bug label Aug 4, 2022
@dyang23
Copy link
Author

dyang23 commented Aug 4, 2022

GPU hang log:
08-03 20:15:57.345 0 0 I i915 0000: 00:02.0: [drm] Resetting vcs0 for preemption time out
08-03 20:15:57.353 0 0 I i915 0000: 00:02.0: [drm] HwBinder:611_6[6329] context reset due to GPU hang
08-03 20:15:57.363 0 0 I i915 0000: 00:02.0: [drm] Resetting vcs1 for preemption time out
08-03 20:15:57.371 0 0 I i915 0000: 00:02.0: [drm] [email protected][6355] context reset due to GPU hang
08-03 20:15:57.381 0 0 I i915 0000: 00:02.0: [drm] GPU HANG: ecode 12:4:28fffffd, in HwBinder:611_6 [6329]
08-03 20:15:57.391 0 0 I i915 0000: 00:02.0: [drm] GPU HANG: ecode 12:4:28fffffd, in [email protected] [6355]

@wangyan-intel
Copy link

@dyang23 Could you please share your encoded clip for checking?

@dyang23
Copy link
Author

dyang23 commented Aug 5, 2022

链接: https://caiyun.139.com/m/i?005CiIFbzes43 提取码:absO 复制内容打开中国移动云盘手机APP,操作更方便哦

Can you get the file from caiyun disk, if not please let me know.

@wangyan-intel
Copy link

@dyang23 Could you please share your command line too?

@dyang23
Copy link
Author

dyang23 commented Aug 5, 2022

@wangyan-intel we are using ffmpeg to reproduce this issue on ubuntu:
ffplay -vcodec hevc_qsv xxxx.mp4

Thanks,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants