You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you provide libva trace log if possible? Run cmd export LIBVA_TRACE=/tmp/libva_trace.log first then execute the case.
A trace gave me:
LIBVA_TRACE=/tmp/libva-trace firefox libva info: Open new log file /tmp/libva-trace.184600.thd-0x00054cbb for the thread 0x00054cbb
libva info: LIBVA_TRACE is on, save log into /tmp/libva-trace.184600.thd-0x00054cbb
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_13
Sandbox: seccomp sandbox violation: pid 346970, tid 347323, syscall 64, args 1140872792 1 1974 140428001599536 140428001601504 5.
Sandbox: seccomp sandbox violation: pid 346970, tid 347323, syscall 64, args 1140872792 1 438 140428001599536 140428001601504 5.
The backtrace of the core (at least the part of it crashing):
Stack trace of thread 347323:
#0 0x0000000000000000 n/a (n/a + 0x0) #1 0x00007fb7d715dd3b _ZN21OsContextSpecificNext4InitEPv (iHD_drv_video.so + 0x53ad3
b) #2 0x00007fb7d716a3c2 Z25DdiMedia_InitMediaContextP15VADriverContextiPiS1.constpro
p.0 (iHD_drv_video.so + 0x5473c2) #3 0x00007fb7dfe7c3fc va_openDriver (libva.so.2 + 0x43fc) #4 0x00007fb7dfe81dc6 vaInitialize (libva.so.2 + 0x9dc6) #5 0x00007fb80e040cf8 _ZN7mozilla18FFmpegVideoDecoderILi58EE24CreateVAAPIDeviceConte
xtEv (libxul.so + 0x1a2ccf8) #6 0x00007fb80e042c57 _ZN7mozilla18FFmpegVideoDecoderILi58EE16InitVAAPIDecoderEv (li
bxul.so + 0x1a2ec57) #7 0x00007fb80e043d6c _ZN7mozilla18FFmpegVideoDecoderILi58EE4InitEv (libxul.so + 0x1
a2fd6c) #8 0x00007fb80e02474f _ZN7mozilla18MediaChangeMonitor4InitEv (libxul.so + 0x1a1074f) #9 0x00007fb80fb0fe4f _ZN7mozilla6detail21ProxyFunctionRunnableIZNS_21MediaDataDecod
erProxy4InitEvEUlvE_NS_10MozPromiseINS_9TrackInfo9TrackTypeENS_11MediaResultELb1EEEE3RunEv (libxul.so
launching firefox with 'MOZ_DISABLE_CONTENT_SANDBOX=1 firefox' and it works.
Could you attach dmesg log if it's GPU hang by dmesg >dmesg.log 2>&1?
Do you want to contribute a PR? (yes/no): no, not sure where to
I have no idea if this is a intel-media-driver issue, a libva issue, a firefox issue or a seccomp issue.
Feel free to close and point me to the right place if this isn't it. ;)
The text was updated successfully, but these errors were encountered:
Seems like media-driver does NULL pointer (method) access, when seccomp sandbox rejects system call "64", and returns error instead.
Instead media-driver should check for the error [1] and return failure back to libva.
Media still won't work though. That you need to take up with Firefox sandbox authors.
[1] Easier way for media-driver devs to experiment with seccomp filters could be using docker, as it allows one to specify which syscalls get rejected: https://docs.docker.com/engine/security/seccomp/
What the underlying container runtime returns for the application may not match what the Firefox sandbox returns: opencontainers/runc#2151
But if they differ, I think either of the sandboxes is in error. Blocking of syscalls should be done similarly by different sandboxes so that middleware code can act reasonably on the restrictions...
System information
cat /proc/cpuinfo | grep "model name" | uniq
):model name : 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
lspci -nn | grep -E 'VGA|isplay
):00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01)
Wayland
Issue behavior
Describe the current behavior
Firefox tabs with videos crash
Describe the expected behavior
Tabs don't crash
Debug information
libva-2.13.0-1.fc36.x86_64
libva-utils-2.13.0-1.fc36.x86_64
intel-gmmlib-21.3.1-1.fc36.x86_64
intel-media-driver-21.3.5-1.fc36.x86_64
ls /dev/dri
?by-path card1 renderD128
vainfo >vainfo.log 2>&1
?libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 21.3.5 ()
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointFEI
VAProfileHEVCMain : VAEntrypointEncSliceLP
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointEncSliceLP
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointEncSliceLP
VAProfileVP9Profile1 : VAEntrypointVLD
VAProfileVP9Profile1 : VAEntrypointEncSliceLP
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointEncSliceLP
VAProfileVP9Profile3 : VAEntrypointVLD
VAProfileVP9Profile3 : VAEntrypointEncSliceLP
VAProfileHEVCMain12 : VAEntrypointVLD
VAProfileHEVCMain12 : VAEntrypointEncSlice
VAProfileHEVCMain422_10 : VAEntrypointVLD
VAProfileHEVCMain422_10 : VAEntrypointEncSlice
VAProfileHEVCMain422_12 : VAEntrypointVLD
VAProfileHEVCMain422_12 : VAEntrypointEncSlice
VAProfileHEVCMain444 : VAEntrypointVLD
VAProfileHEVCMain444 : VAEntrypointEncSliceLP
VAProfileHEVCMain444_10 : VAEntrypointVLD
VAProfileHEVCMain444_10 : VAEntrypointEncSliceLP
VAProfileHEVCMain444_12 : VAEntrypointVLD
VAProfileHEVCSccMain : VAEntrypointVLD
VAProfileHEVCSccMain : VAEntrypointEncSliceLP
VAProfileHEVCSccMain10 : VAEntrypointVLD
VAProfileHEVCSccMain10 : VAEntrypointEncSliceLP
VAProfileHEVCSccMain444 : VAEntrypointVLD
VAProfileHEVCSccMain444 : VAEntrypointEncSliceLP
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileHEVCSccMain444_10 : VAEntrypointVLD
VAProfileHEVCSccMain444_10 : VAEntrypointEncSliceLP
export LIBVA_TRACE=/tmp/libva_trace.log
first then execute the case.A trace gave me:
LIBVA_TRACE=/tmp/libva-trace firefox libva info: Open new log file /tmp/libva-trace.184600.thd-0x00054cbb for the thread 0x00054cbb
libva info: LIBVA_TRACE is on, save log into /tmp/libva-trace.184600.thd-0x00054cbb
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_13
Sandbox: seccomp sandbox violation: pid 346970, tid 347323, syscall 64, args 1140872792 1 1974 140428001599536 140428001601504 5.
Sandbox: seccomp sandbox violation: pid 346970, tid 347323, syscall 64, args 1140872792 1 438 140428001599536 140428001601504 5.
The backtrace of the core (at least the part of it crashing):
Stack trace of thread 347323:
#0 0x0000000000000000 n/a (n/a + 0x0)
#1 0x00007fb7d715dd3b _ZN21OsContextSpecificNext4InitEPv (iHD_drv_video.so + 0x53ad3
b)
#2 0x00007fb7d716a3c2 Z25DdiMedia_InitMediaContextP15VADriverContextiPiS1.constpro
p.0 (iHD_drv_video.so + 0x5473c2)
#3 0x00007fb7dfe7c3fc va_openDriver (libva.so.2 + 0x43fc)
#4 0x00007fb7dfe81dc6 vaInitialize (libva.so.2 + 0x9dc6)
#5 0x00007fb80e040cf8 _ZN7mozilla18FFmpegVideoDecoderILi58EE24CreateVAAPIDeviceConte
xtEv (libxul.so + 0x1a2ccf8)
#6 0x00007fb80e042c57 _ZN7mozilla18FFmpegVideoDecoderILi58EE16InitVAAPIDecoderEv (li
bxul.so + 0x1a2ec57)
#7 0x00007fb80e043d6c _ZN7mozilla18FFmpegVideoDecoderILi58EE4InitEv (libxul.so + 0x1
a2fd6c)
#8 0x00007fb80e02474f _ZN7mozilla18MediaChangeMonitor4InitEv (libxul.so + 0x1a1074f)
#9 0x00007fb80fb0fe4f _ZN7mozilla6detail21ProxyFunctionRunnableIZNS_21MediaDataDecod
erProxy4InitEvEUlvE_NS_10MozPromiseINS_9TrackInfo9TrackTypeENS_11MediaResultELb1EEEE3RunEv (libxul.so
media_libva: fix iHD decoder dump NV12 format UV error issue. #10 0x00007fb80f34a589 _ZN7mozilla9TaskQueue6Runner3RunEv (libxul.so + 0x2d36589)
Update README.md #11 0x00007fb80f34a28e _ZN12nsThreadPool3RunEv (libxul.so + 0x2d3628e)
Conformance: vaQuerySurfaceAttributes does not adjust num_attribs #12 0x00007fb80f0f7233 _ZN8nsThread16ProcessNextEventEbPb (libxul.so + 0x2ae3233)
libva_caps: adjust numAttribs when max num is exceeded #13 0x00007fb80f0f6ce0 _Z19NS_ProcessNextEventP9nsIThreadb (libxul.so + 0x2ae2ce0)
Allow VA memory type #14 0x00007fb80f114c06 _ZN7mozilla3ipc28MessagePumpForNonMainThreads3RunEPN4base11Mes
sagePump8DelegateE (libxul.so + 0x2b00c06)
vaQueryConfigAttributes should not check input value of num_attribs #15 0x00007fb80f4cff1c _ZN11MessageLoop3RunEv (libxul.so + 0x2ebbf1c)
~2000 test failures in test_va_api #16 0x00007fb80f348eaf _ZN8nsThread10ThreadFuncEPv (libxul.so + 0x2d34eaf)
vaGet/SetDisplayAttributes returns VA_STATUS_ERROR_UNIMPLEMENTED but vaMaxNumDisplayAttributes != 0 #17 0x00007fb818ba3524 _pt_root (libnspr4.so + 0x2c524)
DdiMedia_QueryConfigAttributes: do not check input value of num_attribs #18 0x00007fb818c55657 start_thread (libc.so.6 + 0x8d657)
launching firefox with 'MOZ_DISABLE_CONTENT_SANDBOX=1 firefox' and it works.
dmesg >dmesg.log 2>&1
?I have no idea if this is a intel-media-driver issue, a libva issue, a firefox issue or a seccomp issue.
Feel free to close and point me to the right place if this isn't it. ;)
The text was updated successfully, but these errors were encountered: