Open tirlarim opened 2 months ago
Thank you for the bug report.
I can reproduce on my x86 linux machine:
git clone -b v1.1.1 https://github.com/AOMediaCodec/libavif.git
cmake -S libavif -B libavif/build -DAVIF_BUILD_APPS=ON -DAVIF_CODEC_AOM=LOCAL -DAVIF_LIBYUV=LOCAL
cmake --build libavif/build --parallel
libavif/build/avifenc input.jpg output.avif # works
libavif/build/avifenc -q 100 input.jpg output.avif # works
libavif/build/avifenc -y 444 input.jpg output.avif # works
libavif/build/avifenc -q 100 -y 444 input.jpg output.avif # Segmentation fault
libavif/build/avifenc -q 100 -y 444 -j 0 input.jpg output.avif # Segmentation fault
libavif/build/avifenc --lossless input.jpg output.avif # Segmentation fault
The image dimensions are 16637×11603 pixels.
(note that I had to click on "Download all" in Google Drive, direct individual file download did not work)
Stack trace:
#0 __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:540
#1 0x00005555558ae71d in aom_stop_encode (w=0x7fffffffc240) at libavif/ext/aom/aom_dsp/bitwriter.c:31
#2 0x000055555569f94e in av1_pack_tile_info (cpi=0x7ffff7562020, td=0x7ffff7577050, pack_bs_params=0x7fffffffc2e0)
at libavif/ext/aom/av1/encoder/bitstream.c:3783
So it fails at https://aomedia.googlesource.com/aom/+/refs/tags/v3.9.1/aom_dsp/bitwriter.c#31:
memcpy(w->buffer, data, bytes);
This does not seem related to libavif so I filed https://aomedia.g-issues.chromium.org/issues/361552711.
Hi! Got segmentation fault, then try to convert jpg image to avif lossless. Then convert it with default settings it works correctly. I use avifenc downloaded from brew (Version: 1.1.1 (aom [enc/dec]:3.9.1)) Image that I failed to convert applied as input.jpg. It is 80 mb, so I can't attach it here. I left a link to the Google drive with it https://drive.google.com/drive/folders/1ryzjPNWC4qsXEuS0IzTBpkRbnT9HpZc7?usp=sharing.
Also, this is LLDB backtrace:
Also some hardware info here: