Intel-Media-SDK / MediaSDK

The Intel® Media SDK
MIT License
926 stars 457 forks source link

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

Open dyang23 opened 2 years ago

dyang23 commented 2 years ago

System information

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

dyang23 commented 2 years ago

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] omx@1.0-service[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 omx@1.0-service [6355]

wangyan-intel commented 2 years ago

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

dyang23 commented 2 years ago

链接: 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 commented 2 years ago

@dyang23 Could you please share your command line too?

dyang23 commented 2 years ago

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

Thanks,