Ask Your Question

Revision history [back]

opencv2 crash on Linux ubuntu 3.8.0-29

Hi,

I have several 24bit bitmap image created on the Windows system, then used following line to display it but it failed with following error message: ePadvisionSS: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.

My code: cv::Mat src = cv::Imread(filepath, -1);

Is some special format of bitmap not support? Oliver