Repository navigation
fix(preview): limit sandbox fsize to software media decoding - #2803
Conversation
Hardware-backend media decoders (such as Vulkan with Mesa ANV) allocate sparse driver state tables (e.g. 1 GiB memfd) during device initialization. The process-wide 512 MiB --fsize limit caused the kernel to kill hardware FFmpeg processes with SIGXFSZ (EFBIG). Scope --fsize to Backend::Software, matching --as. Closes #2793
Review and cleanupMerged Review against the description and #2793. No changes were needed.
Tests. Validation
CI. The earlier |
|
CI: all checks green on |
Description
Scope the process-wide 512 MiB
--fsizelimit toBackend::Softwarein media decode sandboxes, matching the existing--asaddress space limit.Accelerated hardware decoders (such as Vulkan with Mesa ANV or VA-API) reserve sparse
memfdstate tables (e.g. 1 GiB) during device and buffer pool initialization. When constrained by--fsize=536870912,ftruncatereturnsEFBIGand the kernel terminates the FFmpeg process withSIGXFSZ(exit code 153).Visual evidence
N/A (backend process resource limit change for sandbox helper).
How to test
--fsizeand--aswhile retaining--core=0, and software decoding commands retain both--fsize=536870912and--as=2147483648.Expected result:
Hardware video decoders initialize and decode media without failing or being terminated by SIGXFSZ (EFBIG).
Related issue
Closes #2793