Open doits opened 1 year ago
I did some tests with different cpu-used
6
and 3
: both finished the encode. Tried 2
again: crashed. Looks like a bug in aomenc then?
Edit: Starting encode with cpu-used 1
right now ...
Failed with cpu-used 1
, too, so seems to be something below 3
that causes the crash. I'll see if I can reproduce it without av1an.
This appears to be a memory safety bug in aomenc, as from your logs, it says that it SIGSEGV-ed on those chunks. Unfortunately there is nothing av1an can do to fix that.
SIGSEGV can indicate a memory safety bug but I've found that with av1 it more often indicates an out-of-memory situation. Check the system log to see if an oom event occurred? It can also be caused by hardware memory errors if you're not using ecc ram but that doesn't seem to be the case here.
an out-of-memory situation [...] Check the system log to see if an oom event occurred
I lowered the worker count to 6 to make sure it was no out of memory situation (and checked the memory usage): that wasn't a problem (256gb of memory are installed)
It can also be caused by hardware memory errors if you're not using ecc ram but that doesn't seem to be the case here.
Yeah, it's ECC memory.
I upgraded to aom 3.6.0 and now I get a failed assertion (for different files though, didn't test the ones I mentioned here), see https://bugs.chromium.org/p/aomedia/issues/detail?id=3384. Behaviour is similar (it goes away withcpu-used>=3
), but maybe it is another bug.
@doits thanks for humoring me at least. It was worth a try! :)
You can try running av1an under gdb with set detach-on-fork off
to get gdb to automatically attach to all spawned processes and see if you can get a meaningful stacktrace. Make sure you build everything non-rust with -O0 -g
or -O1 -g
instead of -O2
/-O3
though (or for CMake stuff with -DCMAKE_BUILD_TYPE=RelWithDebInfo
).
Never mind, I see per your update that you now get an assertion failure which is concrete enough. Subscribed to your upstream issue.
same issue for me with preset 4 Preset 5,6 works Going lower to preset 3 works, but preset 4 crashes
ERROR [av1an_core] Encoder crashed (on chunk 267) 3 times, terminating thread
PS: Using docker
I've the following problem where I cannot encode some chunks. Input is a 4K 50fps HDR video of a camcorder.
This is my av1an command line:
It starts fine, compiles some chunks, but one doesn't want to finish (output is from av1an 0.4.0):
Tested on 0.3.1 and 0.4.0.
How can I debug (and hopefully) fix is? Is this a ffmpeg bug, or a bug in aomenc?