Closed monstercy closed 2 years ago
cat /proc/cpuinfo | grep "model name" | uniq
lspci -nn | grep -E 'VGA|isplay
in file https://github.com/Intel-Media-SDK/MediaSDK/blob/51ffdf59f281a8604f6f10cf3775cf276ff1d30d/samples/sample_common/src/vaapi_utils.cpp#L454 it will close fd "close(ctx->fd);" which has not been assign value. most of times the ctx->fd is 0, it will cause trouble, if appellation already open fd 0 for other purpose.
files with fd as 0 will be closed.
ls /dev/dri
dmesg >dmesg.log 2>&1
vainfo -a >vainfo.log 2>&1
strace YOUR_CMD >strace.log 2>&1
export LIBVA_TRACE=/tmp/libva_trace.log
System information
cat /proc/cpuinfo | grep "model name" | uniq
): all cpulspci -nn | grep -E 'VGA|isplay
): all gpuIssue behavior
Describe the current behavior
in file https://github.com/Intel-Media-SDK/MediaSDK/blob/51ffdf59f281a8604f6f10cf3775cf276ff1d30d/samples/sample_common/src/vaapi_utils.cpp#L454 it will close fd "close(ctx->fd);" which has not been assign value. most of times the ctx->fd is 0, it will cause trouble, if appellation already open fd 0 for other purpose.
Describe the expected behavior
files with fd as 0 will be closed.
Debug information
ls /dev/dri
? nodmesg >dmesg.log 2>&1
? novainfo -a >vainfo.log 2>&1
? nostrace YOUR_CMD >strace.log 2>&1
? noexport LIBVA_TRACE=/tmp/libva_trace.log
first then execute the case.