[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1022870: libsvtav1enc1: Fails to allocate memory on 32-bit arm architectures



Package: libsvtav1enc1
Version: 1.2.1+dfsg-1
Severity: normal

Dear Maintainer,

I uploaded my package libmedia-convert-perl, with an autopkgtest. As
part of the autopkgtest, it calls ffmpeg to encode a very short media
file to av1 using the svt-av1 encoder.

This works fine on my own laptop (amd64), but it fails when run on the
armhf and armel workers for ci.debian.net. At this point, more
architectures are pending, so more failures may occur later.

Relevant logs:

https://ci.debian.net/data/autopkgtest/testing/armhf/libm/libmedia-convert-perl/27553000/log.gz
https://ci.debian.net/data/autopkgtest/testing/armel/libm/libmedia-convert-perl/27552345/log.gz

It shows the following output:

Running: 'ffmpeg' '-loglevel' 'warning' '-y' '-i' 't/testvids/bbb.mp4' '-threads' '1' '-c:v' 'libsvtav1' '-b:v' '1116.207k' '-minrate' '558.1035k' '-maxrate' '1618.50015k' '-r:v' '24/1' '-crf' '25' '-speed' '4' '-c:a' 'libvorbis' '-b:a' '133431' '-ar' '44100' '-t' '0.1' '-pix_fmt' 'yuv420p' './1sec.webm'
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v1.2.0
Svt[info]: SVT [build]  :	GCC 12.2.0	 32 bit
Svt[info]: -------------------------------------------
Svt[info]: Number of logical cores available: 16
Svt[info]: Number of PPCS 71
Svt[info]: [asm level on system : up to c]
Svt[info]: [asm level selected : up to c]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 856 / 480 / 24 / 1
Svt[info]: SVT [config]: bit-depth / color format / compressed 10-bit format		: 8 / YUV420 / 0
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 161 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor / max bitrate (kbps)			: capped CRF / 25 / 1618
Svt[info]: -------------------------------------------
Svt[error]: Failed to create thread: Cannot allocate memory
SvtMalloc[fatal]: allocate memory failed, at ./Source/Lib/Encoder/Globals/EbEncHandle.c:2285
[libsvtav1 @ 0x13366c0] Error initializing encoder: insufficient resources (0x80001000)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libvorbis @ 0x13053a0] 41 frames left in the queue on closing

(this is from the armel build, in case it matters, though the armhf one
is very similar)

The debian-ci maintainers tell me that the armel worker has 32G of
memory available, which is more than most 64-bit architectures (and in
fact, also more than my own laptop has, on which it works perfectly),
leading me to suspect it is rather a bug in svt-av1 rather than a memory
issue.

Thanks,


Reply to: