Encoder crashes in debug mode when using NNFilterUnified
The encoding crashes in debug mode when using LOP2 loop-filter (NNVC-7.1, it also exists in NNVC-8.0rc3)
terminate called after throwing an instance of 'Exception'
what():
ERROR: In function "getBuf" in /nnvc/source/Lib/CommonLib/Buffer.cpp:790: Trying to access a buf outside of bound!
Stacktrace from NNVC-8.0rc3:
The problem seems to be that invalid positions of the m_scale
buffer are trying to be accessed, e.g. (-8, -8)
JVET_AF0043_AF0205_PADDING
adds padding to the input buffers, e.g. boundary strength, prediction, etc. However, the NN intermediate and output buffers are created with the video original dimensions.
This also happens when compiling the code in release mode, but in this case the application keeps running. The crash happens only on debug mode.
System:
- AMD Ryzen 9 5950X 16-Core Processor
- cmake 3.20.4
- g++ 7.5.0