intel / intel/vpl-gpu-rt

[Bug]: GPU_HUNG when both encoder and decoder

Open
#288 16 comments 0 reactions 1 assignee Claimed by @yefeizhou View on GitHub
Dominant language
C++
Stars
157
Forks
104
PR merge metrics
No merged PRs in 30d

Description

### Which component impacted?

Decode, Encode

### Is it regression? Good in old configuration?

Yes, it's good in old version

### What happened?

CPU: 12th Gen Intel(R) Core(TM) i7-12700
kernel: Linux tvu-desktop 5.15.0-69-generic #76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

vpl: 2023Q1(https://github.com/oneapi-src/oneVPL-intel-gpu/releases/tag/intel-onevpl-23.1.5)

Reproduction steps:
console1:
/opt/intel/media/share/vpl/samples/_bin/sample_decode h265 -i v3_1080i5994.h265 -o /dev/null -timeout 10000

console2:/opt/intel/media/share/vpl/samples/_bin/sample_encode h264 -i cnn.yuv -o /dev/null -w 1920 -h 1080 -timeout 10000 -nv12

[ERROR], sts=MFX_ERR_GPU_HANG(-21), SynchronizeFirstTask, SyncOperation fail or timeout at /opt/src/vpl-dispatcher_src/tools/legacy/Sample_encode/src/pipeline_encode.cpp:178

[ERROR], sts=MFX_ERR_GPU_HANG(-21), GetFreeTask, m_TaskPool.SynchronizeFirstTask failed at /opt/src/vpl-dispatcher_src/tools/legacy/Sample_encode/src/pipeline_encode.cpp:2239

[ERROR], sts=MFX_ERR_GPU_HANG(-21), Run, m_pmfxENC->EncodeFrameAsync failed at /opt/src/vpl-dispatcher_src/tools/legacy/Sample_encode/src/pipeline_encode.cpp:2487

[ERROR], sts=MFX_ERR_GPU_HANG(-21), main, pPipeline->Run failed at /opt/src/vpl-dispatcher_src/tools/legacy/Sample_encode/src/Sample_encode.cpp:1970

### What's the usage scenario when you are seeing the problem?

Immersive Media

### What impacted?

After testing, we found that:
When decoding H264/H265 encoded by intel msdk or vpl and encoding at the same time, it can work;
When decoding H265 encoded by our other platform (Amba H2) and encoding at the same time, it is easy to have GPU_HUNG
[v3_1080i5994.zip](https://github.com/oneapi-src/oneVPL-intel-gpu/files/11965209/v3_1080i5994.zip)

### Debug Information

![image](https://github.com/oneapi-src/oneVPL-intel-gpu/assets/51147071/6072cd9e-7226-423d-9c18-4dc37470b2bd)

### Do you want to contribute a patch to fix the issue?

Yes, I'm glad to submit a patch to fix it

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.