Closed rageworx closed 5 years ago
Backtracing ...
__GI___libc_free (mem=0x2a00000029) at malloc.c:2951
2951 malloc.c: No such file or directory.
(gdb) backtrace
#0 __GI___libc_free (mem=0x2a00000029) at malloc.c:2951
#1 0x0000000000409847 in libsrcnn::resetImgF32 (img=...)
at src/libsrcnn.cpp:134
#2 0x0000000000409ad5 in libsrcnn::discardImgYCbCr (img=...)
at src/libsrcnn.cpp:188
#3 0x000000000040a518 in libsrcnn::doSRCNN (
This bug was belong to initImgYCbCr(). Solved bug by changing code.
192 void initImgYCbCr( ImgYCbCr &img, unsigned w, unsigned h, unsigned d )
193 {
194 initImgF32( img.Y, w, h );
195 initImgF32( img.Cb, w, h );
196 initImgF32( img.Cr, w, h );
197
198 if ( d == 4 )
199 {
200 img.uA = true;
201 initImgF32( img.A, w, h );
202 }
203 else
204 {
205 memset( &img.A, 0, sizeof( ImgF32 ) );
206 }
207 }
Error occurs on Linux Mint 18.3 from doSRCNN(), belong to resetImgF32().